Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to redefine VECT_TAB_OFFSET by user (system_stm32f4xx.c) #64

Closed
wants to merge 1 commit into from

Conversation

DenDeg
Copy link

@DenDeg DenDeg commented Feb 25, 2021

Unlike HSE_VALUE or HSI_VALUE, VECT_TAB_OFFSET value defined in STM32CubeF4/Drivers/CMSIS/Device/ST/STM32F4xx/Source/Templates/system_stm32f4xx.c can't be redefined by user. Some building scripts (like Platformio ststm32 platform with stm32cube framework script) and libs depends on default system_stm32f4xx.c, so I can't just create my own system_stm32f4xx.c file. This becomes a problem when writing firmware that uses a bootloader, because there's no way to change VECT_TAB_OFFSET without modifying default file.
Suggested small code change adds ability to redefine VECT_TAB_OFFSET by user.

@theadib
Copy link

theadib commented Feb 28, 2021

Hi DenDeg,
you proposed the identical solution than original on
#30

However the ST team propose a USER_xxx define.
I dont know how that will look like ...

Adib.

@DenDeg DenDeg closed this Mar 4, 2021
stm32cube-mcu-fw-dashboard automation moved this from To do to Done Mar 4, 2021
@RKOUSTM RKOUSTM added this to the v1.26.0 milestone Mar 4, 2021
@RKOUSTM RKOUSTM added the cmsis CMSIS-related issue or pull-request. label Mar 8, 2021
@ALABSTM ALABSTM added duplicate This issue or pull request already exists enhancement New feature or request labels Oct 25, 2021
@ALABSTM
Copy link
Contributor

ALABSTM commented Oct 25, 2021

Duplicate of #30.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cmsis CMSIS-related issue or pull-request. duplicate This issue or pull request already exists enhancement New feature or request
Projects
Development

Successfully merging this pull request may close these issues.

STM32F4 1.26 Vector table position can not be defined by compiler define
4 participants