MKL26 - Do not exit from Run Mode

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

MKL26 - Do not exit from Run Mode

跳至解决方案
752 次查看
therealpaulie
Contributor I

Hi everybody,

 

I'm working with a MKL26 in Kinetis Design Studio 3.2.0. I use a Segger J-Link as debugger. This is my very first project with Kinetis and MKL26/ARM.

I noticed that when I remove the Segger J-Link the MCU exits from the Run Mode. If Segger is connected then the MCU stays in Run Mode. I found this behaviour in the reference manual: "1. If debug is enabled, the core clock remains to support debug."

 

What I didn't find is how to configure the MCU to remain continuously in Run Mode. 

I have a complex system (with other programable devices) and the MKL26 performs some very simple but critical safety functions and it MUST NOT exit from RUN mode. No transition to WAIT or STOP  or any other mode is allowed. It must work continuously. 

I'm pretty sure I miss something in documentation, but I simply cannot find hot to set it continuously to RUN mode.

 

Thank you for you input!

Paul

0 项奖励
1 解答
748 次查看
therealpaulie
Contributor I

I got it. It had nothing to do with Run mode.

External perturbations generated a reset signal on RESET_B port. When Segger was connected, it holds the reset level correctly. We have no pull-up/down on the PCB for RESET_B and the external perturbation were driving the MCU in reset.

I disabled the RESET control and problem solved. At least the problem with what I thought that is a change in Modes.

在原帖中查看解决方案

0 项奖励
3 回复数
728 次查看
myke_predko
Senior Contributor III

@therealpaulie 

What are you currently using for your reset circuit?  I'm hoping you're not going to say an RC time delay network.  

If this application performs "critical safety functions" then you should ensure that you are monitoring power to the MCU and handling reset appropriately.  Look at using a power line supervisor for reset (I use the APX803S-31SA-7) as this will give you start up delay and hold the MCU in reset if you have a +3V3 rail problem.  

It costs about 3x an RC network, but it's worth it.  

0 项奖励
749 次查看
therealpaulie
Contributor I

I got it. It had nothing to do with Run mode.

External perturbations generated a reset signal on RESET_B port. When Segger was connected, it holds the reset level correctly. We have no pull-up/down on the PCB for RESET_B and the external perturbation were driving the MCU in reset.

I disabled the RESET control and problem solved. At least the problem with what I thought that is a change in Modes.

0 项奖励
735 次查看
bobpaddock
Senior Contributor III

If this is a safety critical device then the cause of the problem needs addressed at the source, not covering up the symptom by disabling reset.  Lets say the problem is the power source, it could just as easily corrupt RAM while things are running just as well as forcing an undesired mode change.

 

0 项奖励