MKL26 - Do not exit from Run Mode

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

MKL26 - Do not exit from Run Mode

Jump to solution
715 Views
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 Kudos
1 Solution
711 Views
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.

View solution in original post

0 Kudos
3 Replies
691 Views
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 Kudos
712 Views
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 Kudos
698 Views
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 Kudos