How to (only) Run program (not debug and run)?

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

How to (only) Run program (not debug and run)?

3,949 Views
jordi_becares
Contributor III

Dear All,

I'm working with MCUxpresso 10.2, SDK 2.5.

I'm trying to config "Run" to only download and run... But I didn't find the solution.

I can debug (download and debug) and after stop debugger and so board runs the program, but it is very slow ...

So, What is the way to Run program (download and run)? For example, CCS has this option.

Thanks!

Jordi

Tags (3)
15 Replies

3,647 Views
brendonslade
NXP TechSupport
NXP TechSupport

Responding here as it seems Jordi didnt get a final answer. The Quickstart panel includes a shortcut to program and run the target with the currently selected project. I believe this was introduced in 10.2, but there was a bug fix in 11.0.1 related to it. See https://www.nxp.com/docs/en/user-guide/MCUXpresso_IDE_User_Guide.pdf Section 11.3.1). You just need to select the "Program flash action" option, then every subsequent time you click on the PE server icon it will program the target then reset it (thus running it) without connecting a debug session.

brendonslade_0-1599692890225.png

 

0 Kudos

3,654 Views
jordi_becares
Contributor III

Hi,

I tested all methods commented above but I didn't reach the solution.

Did anyone "only program" before?

In other platforms and IDE, I always found a method to only program device.

I'm using MCUXpresso 10.2.0_759 and Multilink and SDK 2.5.0

If someone have any idea... It will be very useful for me.

Thanks

Jordi

0 Kudos

3,654 Views
Alexis_A
NXP TechSupport
NXP TechSupport

Hi Jordi,

I found very strange that you could not use the MCUXpresso programming only option. Maybe this is due your using a MCUXpresso previous version, could you try updating to the latest MCUXpresso version?

0 Kudos

3,654 Views
jordi_becares
Contributor III

Hi Alexis,

thanks! Your solution works! I don't understand why older versions don't work.

I checked with MCUXpresso IDE v11.0.1_2563 and Multilink FX and Gui Flash Tool works.

But... I enabled  "Reset target on completion" but device not run after program. I have to do hand made reset....

pastedImage_1.png

Any idea?

Regards

Jordi

0 Kudos

3,654 Views
Alexis_A
NXP TechSupport
NXP TechSupport

Hello Jordi,

The board that you're using is one the FRDM boards or is a custom board? In the case the board is custom, check if in the SWD connector the reset is connected correctly.

Best Regards,

Alexis Andalon

0 Kudos

3,654 Views
jordi_becares
Contributor III

Hi Alexis,

good idea! but...

It is a custom board. I checked the signal with oscilloscope and it is ok. I can see the reset before and after.

Any idea?

Thanks for your support

Jordi

0 Kudos

3,654 Views
Alexis_A
NXP TechSupport
NXP TechSupport

So the reset signal is toggled but the MCU doesn't resets?

Best Regards,

Alexis Andalon

0 Kudos

3,654 Views
jordi_becares
Contributor III

Hi Alexis,

yes... I know that is very strange. But I can see the reset signal with osciloscope.

I don't know if the reset is not done at the correct moment.

Any idea? Or some other signal to check?

Regards

Jordi

0 Kudos

3,654 Views
Alexis_A
NXP TechSupport
NXP TechSupport

Hi Jordi,

Would be possible to share the reset circuit schematic and the a capture of the reset toggling?

Best Regards,

Alexis Andalon

0 Kudos

3,654 Views
lpcxpresso_supp
NXP Employee
NXP Employee

Simplest way to do this is probably  to use the "Program flash action" on the "Debug Quickstart Shortcuts". See the supplied MCUXpresso IDE User Guide for more details.

Regards,

MCUXpresso IDE Support

0 Kudos

3,654 Views
jordi_becares
Contributor III

Hi,

do you refer to "GUI Flash tool". I tried it, but at the end show:

Warning: No data was programmed in FLASH
All Servers Running
Target Disconnected.

As the console says, the uC has not the new program.

Any help?

Thanks

Jordi

0 Kudos

3,654 Views
Alexis_A
NXP TechSupport
NXP TechSupport

Hello Jordi,

Could you let me know which MCU and debugger are you using?

For example, if you're using an LPC you could try using Flash Magic to flash the binary through ISP.

Or If you are using a Segger debugger there's options like the J-Flash for J-Link Pro and better version, and if you have a J-link base or EDU version you could try using the command console to download your program.

Also I found strange that you could not use the Program flash action in MCUXpresso. Could you try using the Clean up Debug first before using the program flash:

pastedImage_1.png

Let me know if this helps you.

Best Regards,

Alexis Andalon

0 Kudos

3,654 Views
jordi_becares
Contributor III

Hi Alexis,

thanks for the feedback.

I'm working with Kinets and MultiLink.

My idea is improve the developer experience and reduce time. I need an easy action integrated in IDE. A developer can program a device more than 50 times at day, developing and testing source.

Regards

Jordi

0 Kudos

3,654 Views
ErichStyger
Senior Contributor V

Hi Jordi,

See Emulating Eclipse ‘Run’ with ‘Debug’ Configuration | MCU on Eclipse 

Same principle applies to MCUXpresso. E.g. for the J-Link connection I use

monitor reset
monitor go
disconnect

I hope this helps,

Erich

3,654 Views
jordi_becares
Contributor III

Hi Erich,

thanks for feedback.

I tried this option before post message. I didn't get to work fine.

Further, it is a very slow solution. This option is the same of debug and click stop button. At the end is very slow and kill me.

I'm using multilink, if you know another option...

Regards

Jordi