cancel
Showing results for 
Search instead for 
Did you mean: 

cubeMX bug:Import STM32F769 project into SW4STM32

miluo
Associate
Posted on June 03, 2016 at 23:29

When import

an STM32CubeMX generated project under System Workbench for STM32 follow the instruction of

http://www.openstmorg/Importing+a+STCubeMX+generated+project

. Numerous errors shown:

unknown type name 'GPIO_TypeDef'
'GPIOC' undeclared (first use in this function) 

and so on.

In order to solve this problem, a macro definition

#define STM32F769XX

should be added

manually

Meanwhile, the STM32F769NIHx_FLASH.ld can't be complied because their is a error in line 55

_estack = %stack%; /* end of RAM */

it should be replaced to

_estack = 0x20080000; /* end of RAM */

then the project cancomplieswell.
2 REPLIES 2
slimen
Senior
Posted on June 06, 2016 at 13:36

Hello,

Can you please indicate which STM32CubeMX version are you using?

Thanks.
slimen
Senior
Posted on June 06, 2016 at 14:08

Hi,

The .ld file that the CubeMx generates for me (STM32F769NIHx_FLASH.ld) contains:

_estack = 0x20080000;    /* end of RAM */

I suggest you to use the last version of CubeMx v4.15 and update the toolchain. 

Please let me know if this workaround resolves your issue or you still have error.

Regards