STMicroelectronics / cmsis_device_f1

Provides the STM32Cube MCU Component "cmsis_device_f1" of the STM32F1 series.
Apache License 2.0
36 stars 4 forks source link

An issue with flash offset on PlatformIO #5

Open moustafine opened 1 month ago

moustafine commented 1 month ago

Could not set proper VECT_TAB_OFFSET in a case with a bootloader.

Compiling .pio/build/genericSTM32F103C8/src/display.o
/home/marat/.platformio/packages/framework-cmsis-stm32f1/Source/Templates/system_stm32f1xx.c:95:0: warning: "VECT_TAB_OFFSET" redefined
 #define VECT_TAB_OFFSET  0x00000000U /*!< Vector Table base offset field.

<command-line>:0:0: note: this is the location of the previous definition

A possible solution in the attachment:

fix-flash-offset.zip

TOUNSTM commented 1 month ago

Hello @moustafine,

Thank you for this proposal. The point has been reported to our development teams. I will ensure to keep you informed with any updates.

With regards,

TOUNSTM commented 1 month ago

ST Internal Reference: 116475

TOUNSTM commented 1 month ago

See also https://github.com/STMicroelectronics/STM32CubeF4/pull/146