1.7k views
in Platform Packages by

I use embedded-wizard with STM32F429I-DISCO. I gettingstart by example ClimateCabinet , a result is good. But I need to use System workbench for STM32(AC6) with embeeded-wizard. I can build the project file, it's can compile and build success. The problem is Hardfault in void HardFault_Handler(). Please advise me how to fix this problem. 

This is my code. and my folder struct is below

1. "C:\STM32"

2. "C:\STM32\gcc-arm-none-eabi"

3. "C:\STM32\STM32Cube_FW_F4"

4. "C:\STM32\STM32F429-Discovery"

5. "C:\STM32\workspaceEMz"  (my workspace)   

https://drive.google.com/open?id=10iRcE-ci1zQHVvlQMuN-CdD5ih_gaJYm

1 Answer

0 votes
by
 
Best answer

Hello Nakornthr,

Unfortunately I cannot download the project in your attached link…

By the way, ST is the new owner of Atollic TrueSTUTIO and it is possible to use TrueSTUDIO for free with ST microcontroller. TrueSTUDIO is also eclipse based and really good preconfigured for STM32 microcontrollers. It is almost the same as STM32AC6.

For TrueSTUDIO you can download here an example project with Embedded Wizard for a STM32F429I-DISCO. This project is predefined for the Embedded Wizard Build Environment, I recommend to use this as eclipse reference.

Otherwise, I created a project for STM32AC6 few month ago, this you can download here.

In both project you probably have to edit the linked resources and include paths, don’t forget this.

King regards

Tim

by

Tim, Thanks you for the code. But It's STM32F746G code and I need to know how to make for STM32F429I. 

https://www.4shared.com/rar/S-s5RgtRei/workspaceEMz.html

 

by

Hello Nakornthr,

that was my fault, sorry.

In that situation:

Could you post me your serial output of the start up please?

Kind regards

Tim

by

This is my serial output.

Initialize Display...                        [OK]
Initialize Touch Driver...                   [OK]
Initialize Memory Manager...                 [OK]
MemoryPool at address 0xD004B000 size 0x007B5000
Initialize Graphics Engine...                [OK]
Create Embedded Wizard Root Object...        [FATAL ERROR in ewextbmp_RGB565_RGB
A8888.c:208] The rotation of the bitmap resource 'ChartsLine7x100' doesn't corre
spond to the configuration the Graphics Engine has been built for. Please verify
 whether the attribute 'ScreenOrientation' in your Embedded Wizard project does
correctly conform the value of the define 'EW_SURFACE_ROTATION' used during the
build process (e.g. within your MAKE file, etc.). You can also try to clean/rebu
ild your project.System halted! [HardFault_Handler]

This is my Preprocessor.

__weak=__attribute__((weak))
__packed=__attribute__((__packed__))
USE_HAL_DRIVER
STM32F429xx
USE_STM32F429I_DISCO
EW_MAX_SURFACE_CACHE_SIZE=0x100000
EW_FRAME_BUFFER_COLOR_FORMAT=3
EW_MAX_GLYPH_SURFACE_WIDTH=256
EW_MAX_GLYPH_SURFACE_HEIGHT=256
EW_USE_DOUBLE_BUFFER=1
EW_SURFACE_ROTATION=0
EW_USE_FREE_RTOS=0
EW_CPU_LOAD_MEASURING=1

by
Which library of the Graphics Engine are you using? Please ensure that the ScreenOrientation within your UI project corresponds to the define EW_SURFACE_ROTATION and to the selected library. For every orientation a dedicated library is provided.

Best regards,

Manfred.
by

Hi Manfred, It's screenOrientation in UI Project and I change to other value. But result is same.

By the way, Now I can run the other example UI project with my AC6 template. It's verry exciting.  Thanks you. Manfred and Tim

by
The reported error indicates, that there is some mixture in the used libraries. Please note, that your Build Environment contains a set of four libraries - each one for a dedicated rotation (0, 90, 180 and 270 degrees). If you put all libraries into the project, the linker will take the first one that contains the requested functions. This means, one orientation will work, the other three will fail.

Please ensure, that your project contains always the suitable library.

Best regards,

Manfred.
by

if I use rotation 90 degrees then I will use libewgfx-m4-r90-gcc.a for Libraries and copy only libewgfx-m4-r90-gcc.a, libewgfx-m4-r90-iar.a or libewgfx-m4-r90-keil to my project, right?

 

by
Yes, that's correct. You need only the GCC version, not IAR or KEIL.
by
Hi Manfred, It's work.

Embedded Wizard Website | Privacy Policy | Imprint

...