Dear Forum,
I have a very strange situation with debugging a PWM input function in my firmware via STLINK/V2 and TrueSTUDIO and I only have 2 hints.
MCU: Cortex-M0
Atollic: 8.0
1. While debugging, the external inputs are not triggered (ex: EXTI0_1_IRQHandler). If I disconnect it is triggered normally.
2. Well actually it is triggered, but only once between 10 and 30 seconds after debugging starts as confirmed from a timer incremented counter.
Using visual outputs connected to the hardware I can confirm that everything works fine when I disconnect the debugger.
The debugger also works well otherwise, steps and restarts without any problem.
Other functionalities in the firmware also seem normal.
If anyone could help point me to a general direction where this type of issue is likely to be cause, I would greatly appreciate.
Thank you
External Input not triggered while debugging
Moderators: Markus Girdland, Mattias Norlander
Re: External Input not triggered while debugging
Hello,
Does the PWM input interrupt flag get set while debugging?
Does the PWM input interrupt flag get set while debugging?
Re: External Input not triggered while debugging
frank_ee wrote:Hello,
Does the PWM input interrupt flag get set while debugging?
Actually is was something related. The problem is solved now and I should have updated.
The an input flag was actually not set, but it still worked "in some conditions" which just turned out to not be the condition when the debugger was used, due to probably some voltage floating close to the TTL on/off level.
Forcing the input pin to a determined value solved the issue.
Thank you for your feedback.
Return to “Atollic TrueSTUDIO tool discussions”
Who is online
Users browsing this forum: No registered users and 1 guest