stm32g491 crashes in HAL_Init when using timer1!
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-02-02 3:43 AM
I select tim1 for sys source in STM32CubeMX and generate code.
I use STM32CubeMX V6.4.0.
I added a stripped example of the code that crashes. HAL_NVIC_EnableIRQ crashes.
Solved! Go to Solution.
Labels:
- Labels:
-
STM32CubeMX
-
STM32G4 Series
-
SysTick
-
TIM
10 REPLIES 10
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-02-14 1:13 PM
> SCB->VTOR should be cleared at reset.
It *is* cleared, but as initial boot was probably from system memory (dangling BOOT0) just overriden by the debugger, the system memory is still mapped at 0 instead of the user FLASH.
Reading memory from 0x0000'0000 and/or SYSCFG_MEMRMP.MEM_MODE would tell the truth.
JW

- « Previous
-
- 1
- 2
- Next »