I want to know which .s file the STM32 board uses to access the main function after booting. #15419
Unanswered
mong87suk
asked this question in
STM32 / Pyboard
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I checked the micropython/ports/stm32/resethandler.s file and found that g_pfnVectors is not defined there. Upon further investigation, I found it defined in stm32lib/CMSIS/STM32F4xx/Source/Templates/gcc/startup_stm32f405xx.s.
Both .s files have a main function defined.
I checked the firmware.map file of the STM32 and found two main functions as shown below. Which main function is accessed first after booting?
main build-PYBV11/lib/stm32lib/CMSIS/STM32F4xx/Source/Templates/gcc/startup_stm32f405xx.o
stm32_main build-PYBV11/main.o
Beta Was this translation helpful? Give feedback.
All reactions