STM32L0 new series support plan in HAL

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderators: RoccoMarco, barthess

josesimoes
Posts: 91
Joined: Sat Feb 18, 2017 11:50 am
Has thanked: 43 times
Been thanked: 23 times

Re: STM32L0 new series support plan in HAL

Postby josesimoes » Thu Jul 19, 2018 11:12 am

Just for the record: the expected behaviour of setting the VTOR for Cortex-M0+ can be accomplished by adding a define of DCRT0_VTOR_INIT to TRUE when compiling crt0_v6m.S. Now the sequence bootloader -> application is running as expected.


A few comments/thoughts:
- on the other series that have VTOR, this one has define to TRUE on CRT_0, that is quite all right
- on Cortex-M0 (on which only the PLUS devices have VTOR) the define is always set to FALSE
- despite a comment explaining this in the crt0_v6m it's hard to find and having to set it just for the asm files feels a bit awkward

Shouldn't this define exist at the board level for devices that have VTOR so this "just" works without having to tweak the build defines? Just an idea to save frustration to others that may bump into this too.


Return to “STM32 Support”

Who is online

Users browsing this forum: No registered users and 11 guests