2023-02-23 02: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.
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
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
2023-02-24 01:13 AM
@DM.7 You can find more information e.g. here.
Good luck!
Regards
/Peter
2023-02-27 12:09 PM
Thanks. This was the issue
2023-02-27 12:10 PM
Hi. Thanks. Should this information not be included in the chip's errata document?