How to use the Run button of LPXExpresso?

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

How to use the Run button of LPXExpresso?

383 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by zapta on Fri Aug 08 15:08:14 MST 2014
Hi all, my first posting here.

I installed LPC Expresso 7.3.0 on Mac OSX 10.9.4 and am trying to work my way though the provided examples using this board in default setting (I didn't change any jumper)

http://www.digikey.com/product-detail/en/OM13014,598/568-7517-ND/2700004

I am able to build run and debug programs using the LPCExpresso's Debug button but could not figure out how to run using the Run button (I am expecting a simpler process than Debug, without having to switch perspective, resume from the initial breakpoint, etc).

Any idea how to make the Run button to work? I tried both Debug and Release configuration, my board is connected correctly with USB cable (and the Debug button does work), I tried the option 1 and 2 of the Run As menu (what's the difference between 'Local' and 'MCU application'?) but nothing.

Any help will be greatly appreciated, or at least tell me if it works or doesn't work for you.

BTW, I found here a year old non answered question on the topic http://www.lpcware.com/content/forum/starter-project-can-debug-not-run-lpcxpresso-5

Thanks,

zapta.
0 Kudos
6 Replies

357 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by zapta on Sun Aug 10 08:39:40 MST 2014

Quote: TheFallGuy
Do you need first to terminate the old debug session?
Also, I ended up with a list of duplicate entries in the debug window which I cannot delete (please see picture below). What are they? How do I delete?
They are old debug sessions. They are normally removed automatically. There is a button to remove old sessions. Does it not work?



Thanks FallGuy.

Some entries I can remove, others I can't (see picture below).   Restarting LPCExpresso cleared them all.

[img]http://i.imgur.com/lmnEqHu.png[/img]
0 Kudos

357 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by TheFallGuy on Sat Aug 09 10:56:13 MST 2014
Do you need first to terminate the old debug session?
Yes

Which button to use Terminate or Terminate All?
Either. One terminates the current debug session, the other terminates all debug sessions.

Is there a way to have the new debug session automatically terminating the old debug session? (trying to simplify the edit/run cycles)
No

Also, I ended up with a list of duplicate entries in the debug window which I cannot delete (please see picture below). What are they? How do I delete?
They are old debug sessions. They are normally removed automatically. There is a button to remove old sessions. Does it not work?
0 Kudos

357 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by zapta on Sat Aug 09 07:52:19 MST 2014
I disabled the startup breakpoint as you said and now the debug goes through as expected. Thanks LabRat!  I presume it does not incur any significant overhead due to the active debugging session.

Let's say that I run using 'debug' and then modify my program and want to run the new version. Do you need first to terminate the old debug session? Which button to use Terminate or Terminate All? 

Is there a way to have the new debug session automatically terminating the old debug session?  (trying to simplify the edit/run cycles)

Also, I ended up with a list of duplicate entries in the debug window which I cannot delete (please see picture below). What are they? How do I delete?

Thanks,

Zapta

[img]http://i.imgur.com/U4lCVXX.png[/img]
0 Kudos

357 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by LabRat on Sat Aug 09 01:43:21 MST 2014

Quote: zapta
Also, does the Run button work for you?



I don't use 'Run'...

Usually 'Debug' is the right choice for me (=Storing, Build, Flash, Debug)  :)

The Initial Breakpoint can be removed:

http://www.lpcware.com/content/faq/lpcxpresso/changing-initial-breakpoint

So I can decide later if I really want to debug or stop debug session...

If I don't want to debug I'm using my own tools to flash the target  :bigsmile: 
0 Kudos

357 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by zapta on Fri Aug 08 20:20:00 MST 2014
Yes, this does work, thanks!

Is there a way to make it a single click operation?  (save modified workspace files, build current project, flash and restart target). This is what I expect the Run button to do.

Also, does the Run button work for you?
0 Kudos

357 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by LabRat on Fri Aug 08 15:36:54 MST 2014

Quote: zapta
(I am expecting a simpler process than Debug, without having to switch perspective, resume from the initial breakpoint, etc).



Just flash the target with ''Program Flash' button?
0 Kudos