7 years, 1 month ago.

struct flash_s redefined

i create a UART demo project in mbed online complier and export it.(keil5)

then i download a mbed source code from github.

i want to replace the .o file with .cpp file , but keil5 hint me the struct flash_s redefined.

i find file in files then i found [/mbed/TARGET_NUCLEO_F446RE/TARGET_STM/TARGET_STM32F4/common_objects.h] and [/mbed/hal/flash_data.h] both have defined flash_s.

so how can i resoved this problem?

1 Answer

7 years, 1 month ago.

Lu wang,

you could instead swap out mbed.lib for mbed-src library, then pull it to your computer with mbed cli `mbed import <URL>`, then export it to Keil `mbed export UVISION`

-Austin

Accepted Answer

Thank you!

posted by lu wang 13 Nov 2017