VIPPER
VIPPER

Reputation: 352

CubeMX STM32 HAL + FreeRTOS

I've would like to check whether STM32 Workbench works properly or not.

So, I've created new project for my F7 Discovery. I am using the HAL library and also enabled FreeRTOS. As FreeRTOS needs an independent timer, I enabled TIM1 for HAL and SysTick works for FreeRTOS.

Unfortunately, while debugging the project in Workbench, the program each time ends in the TIM1 interrupt routine, again and again, but I did NOT set any breakpoints here. How can I debug my code if everything I can see during debugging is TIM1 ISR?

Upvotes: 0

Views: 1267

Answers (1)

MathiasE
MathiasE

Reputation: 516

As I understand it this is a feature of the r0p1 M7 core. ST only licensed the r0p1 core. Unsure if newer versions or model of the chip will be any better.

I read on another forum that this could perhaps mitigate the problem:

  (DBGMCU)->APB1FZ = 0x7E01BFF;
  (DBGMCU)->APB2FZ = 0x70003;

Upvotes: 0

Related Questions