KL03Z enters unknown state

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

KL03Z enters unknown state

跳至解决方案
1,536 次查看
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

标签 (1)
0 项奖励
回复
1 解答
1,384 次查看
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 项奖励
回复
4 回复数
1,384 次查看
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

1,384 次查看
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 项奖励
回复
1,384 次查看
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 项奖励
回复
1,385 次查看
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 项奖励
回复