KL03Z enters unknown state

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

KL03Z enters unknown state

Jump to solution
644 Views
gnichimohamed
Contributor III

Hello

I have a custom pcb made out of KL03z microcontroller. I was debugging my application quite ok then suddenly the board is not debuggable anymore. I am using segger jlink to debug my app, flashing works ok but the program starts not in main.152542_152542.PNGdebug.PNG

As soon as i pause the debugging, things get weird.

152546_152546.PNGdebug2.PNG

Thanks for any help

Labels (1)
0 Kudos
1 Solution
492 Views
gnichimohamed
Contributor III

it turned out to be an nmi_b interrupt that's causing  the problem. I had one pot at that pin, if the pot is low, that will cause an interrupt which stops everything. I had to disable the nmi interrupt from flash.

View solution in original post

0 Kudos
4 Replies
492 Views
DavidS
NXP Employee
NXP Employee

Hi Gnichi,

Try removing all breakpoints and try again.

https://mcuoneclipse.com/2014/10/11/failed-to-debug-with-gdb-breakpoints-or-expressions-on-non-exist...

Regards,

David

492 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

Maybe reloading the KDS tools/powering off/on the chip can make it work.

Regards

xiangjun Rong

0 Kudos
492 Views
gnichimohamed
Contributor III

Thank you guys for the answers, it seems that weird issues keep coming.

After two days leaving the boards, they are back working normally, i don't know what happened

0 Kudos
493 Views
gnichimohamed
Contributor III

it turned out to be an nmi_b interrupt that's causing  the problem. I had one pot at that pin, if the pot is low, that will cause an interrupt which stops everything. I had to disable the nmi interrupt from flash.

0 Kudos