cancel
Showing results for 
Search instead for 
Did you mean: 

F746 Disco - Why does TIM6 trigger and stop application running in init

DM.7
Associate III

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.

1 ACCEPTED SOLUTION

Accepted Solutions
KnarfB
Principal III

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

View solution in original post

4 REPLIES 4
KnarfB
Principal III

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

Peter BENSCH
ST Employee

@DM.7​ You can find more information e.g. here.

Good luck!

Regards

/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
DM.7
Associate III

Thanks. This was the issue

Hi. Thanks. Should this information not be included in the chip's errata document?