530 views
in Platform Packages by
Hi

I downloaded the provided STM32L496-Discovery package, opened the HelloWorld.ewp example and built it with the Embedded Wizard studio.

I have the newest ST-Link and drivers installed on my computer.

I opened the StartGccBuildEnvironment.bat inside the STM32L496-Discovery folder and ran first "make" and then connected my discovery board to computer with programming enabled and I ran "make install".

Make was succesfull:

"EmbeddedWizard-STM32L496-Discovery successfully built !!"

Make install was succesfull:

"EmbeddedWizard-STM32L496-Discovery successfully flashed !!"

 

The board turns on and opens the LCD but after this, it is stuck and only shows a white screen.

I then opened a Putty terminal and connected to the device, after I press the reset button on the board, it sends the following:

Create UI thread...                          [OK]
Initialize Realtime Clock...                 [OK]
Initialize Display...                        [OK]
Initialize Touch Driver...                   [OK]
Initialize Memory Manager...                 [OK]
Initialize Graphics Engine...                [OK]
Create Embedded Wizard Root Object...        System halted! [HardFault_Handler]

 

I tested the board before this with the already flashed demos and all the functions worked (screen, touch etc..)

I also did a firmware update with the ST-Link Utility and tried again without a success.

How should I proceed?

1 Answer

0 votes
by
Hi venim1103,

I asume, that you are using the lates release of Embedded Wizard (V9.20).

The STM32L496-Discovery build environment V9.20 was veryfied using following components:
* STM32CubeL4 Firmware Package V1.13.0
* GCC ARM Embedded Toolchain 8-2018-q4-major
* The STM32L496-Discovery board MB1261 A-02

Please tell me, which versions are you using?

Kind regards,
Martin
by
Hi, thank you for a fast reply!

Yes, I'm using the latest Embedded Wizard V9.20

1) From the /STM32L496-Discovery/ThirdParty/STM32Cube_FW_L4/Release_Notes.html it says STM32CubeL4 version is V1.13.0 so that's the same.

2) I checked the GCC version that the StartGccBuildEnvironment.bat uses and it said: "gcc version 7.3.1 20180622 (release) [ARM/embedded-7-branch revision 261907] (GNU Tools for Arm Embedded Processors 7-2018-q2-update)"

3) From the back of the board I have it seems it is a MB1261 B-01 version.

Do you think I need to update my compiler and change certain options for this never hardware version?

 

Kind regards,

venim
by

Hi venim,

thank you for your information.
I attached a hex file, that is running on my STM32L496-Discovery board.

Please try to run following hexfile (HelloWorld) on your board?
https://ask.embedded-wizard.de/?qa=blob&qa_blobid=17709744864251072966

You can use STM32 ST-Link Utility for eample to download to the target.

Kind Regards,
Martin

by
Hi, thank you for your help!

 

Yes, this hexfile works!

 

I actually managed to get the program to work using IAR compiler. I attached the EWARM_ew_post_process.cmd into the Embedded Wizard project and rebuild it. I then opened the IAR project and imported some missing CubeL4 source files and then recompiled the project after which the board started working.

I am not sure why the original setup with the StartGccBuildEnvironment (gcc + make) didn't work for me, I think it has something to do with the Cube files not found or not linking correctly.

Kind regards,

venim
by

Hi venim,

The hex file of 'Hello World' I provided was build with 'EXTERNAL_FLASH = 0'.
On default, using the makefile project, the Embedded Wizard application is build with 'EXTERNAL_FLASH = 1'.

Please set 'EXTERNAL_FLASH = 0' in the 'makefile', rebuild the project and retry to find out, if there is some problem accessing the external QSPI flash. Using my STM32L496-Discovery board both variants, with and w/o external flash are working. 

I also checked the IAR EWARM project and I found, that the pathes to some of the STM32L4xx_HAL_Driver files are wrong.
Please use following project file instead:
https://ask.embedded-wizard.de/?qa=blob&qa_blobid=18284353481998260044

Sorry for the inconveniences!

Kind Regards,
Martin

Embedded Wizard Website | Privacy Policy | Imprint

...