I am using the stm32g473mbt I generate a project with cube mx I only confirm the communication with the 5-pin jtag, from the main I read Systiks timer, with the library running_boot1 = HAL_GetTick (); i the reading is always 0
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-11-12 5:49 AM
This discussion is locked. Please start a new topic to ask your question.
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-11-12 6:39 AM
If SysTick isn't being called, perhaps you have interrupts disabled. Hard to know what's going on without any code.
If you feel a post has answered your question, please click "Accept as Solution".
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-11-12 6:54 AM
Has this function been generated by MX: SysTick_Handler()
It calls HAL_IncTick() which is the counter returned by HAL_GetTick()
Should be enabled in MX:
- Pinout & Config > System Core > NVIC > NVIC > Time base > Ensure its enabled
- Pinout & Config > System Core > NVIC > Code Generation > Time base > Ensure [Generate IRQ Handler] and [Call HAL handler] are enabled
- If they aren't all enabled try to figure out how that happened, as I think these are enabled by default in new projects.
Paul
