Debugger restart issue

Discussions concerning TrueSTUDIO for STM32 9.0.0 and later versions.

Moderators: Markus Girdland, Mattias Norlander

RockDeng
Posts: 6
Joined: Fri Jul 20, 2018 8:33 am

Debugger restart issue

Postby RockDeng » Tue Jul 31, 2018 7:10 am

Every time I clicked restart while debugging, it will go to hardfault ISR.
I have never got this kinda issue on Keil MDK. Perhaps it should be fixed on TrueStudio platform.

RockDeng
Posts: 6
Joined: Fri Jul 20, 2018 8:33 am

Re: Debugger restart issue

Postby RockDeng » Fri Aug 03, 2018 2:47 am

It's IMPRECISERR hardfault error. The hardfault exception occured when set a value to htim2 (htim->Channel = HAL_TIM_ACTIVE_CHANNEL_3) in the TIM2_IRQHandler.
It very weird, after I terminate the debug and debug again, it will not go to the TIM2_IRQHandler and everything goes well.

I don't what's going on. Perhaps it's something wrong with NVIC or interrupt configuration.



MCU: STM32F103C8T6
Project made by cubeMX and HAL system timebase is TIM2.

Mattias Norlander
Posts: 198
Joined: Fri Apr 29, 2016 10:01 am

Re: Debugger restart issue

Postby Mattias Norlander » Wed Aug 08, 2018 1:20 pm

Does this happen also if you create a stock TrueSTUDIO project wizard project for this MCU?
What if you create a clean CubeMx project of this MCU?
Is it reproducible? Which CubeF1 firmware version?


Return to “TrueSTUDIO for STM32 discussions”

Who is online

Users browsing this forum: No registered users and 1 guest