F746 Disco - Why does TIM6 trigger and stop application running in init
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-02-23 2:46 PM
I have used CubeMX to generate an application structure for the STM32F746 DISCO board.
When trying to run the most basic application, during the initialisation, TIM6 is set to be the HAL tick source, when it is enabled, it immediately jumps to its interrupt, and then gets repeated called, stopping any further progress.
This is also happening with the TouchGFX code taken from the example library.
Solved! Go to Solution.
- Labels:
-
STM32F7 Series
-
TIM
-
TouchGFX
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-02-24 12:45 AM
Add few lines in main after HAL_Init();
/* USER CODE BEGIN Init */
// configure peripherals to pause when a debugger is paused
// this also mitigates an erratum of the Cortex-M7 r0p1 core: https://developer.arm.com/documentation/ka002944/latest
(DBGMCU)->APB1FZ = 0xFFFFFFFF;
(DBGMCU)->APB2FZ = 0xFFFFFFFF;
/* USER CODE END Init */
this has been discussed here before, so you might search for more detailed explanations.
hth
KnarfB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-02-24 12:45 AM
Add few lines in main after HAL_Init();
/* USER CODE BEGIN Init */
// configure peripherals to pause when a debugger is paused
// this also mitigates an erratum of the Cortex-M7 r0p1 core: https://developer.arm.com/documentation/ka002944/latest
(DBGMCU)->APB1FZ = 0xFFFFFFFF;
(DBGMCU)->APB2FZ = 0xFFFFFFFF;
/* USER CODE END Init */
this has been discussed here before, so you might search for more detailed explanations.
hth
KnarfB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-02-24 1:13 AM
@DM.7​ You can find more information e.g. here.
Good luck!
Regards
/Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-02-27 12:09 PM
Thanks. This was the issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-02-27 12:10 PM
Hi. Thanks. Should this information not be included in the chip's errata document?
