LPC1769 - board reset after flash programming

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

LPC1769 - board reset after flash programming

1,695 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Lumos on Mon Jun 11 00:56:08 MST 2012
I just installed LPCXpresso and I created my dirst demo project (LED blinking :)).
For flash programming I used "Program flash" button with "Reset target on completion" option set.
After successfull programming, processor does not start to execute program.
But when I made a reset (unplug/plug USB cable), execution of program started.
When "Reset target on completion" option was set I expected that after flash programming, target will be reseted and program will be executet immediatelly.

Is my expectation incorect?
Or is there some another option that has to be set?
Thak you for answer.
0 Kudos
Reply
8 Replies

1,552 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Lumos on Tue Jun 12 05:03:47 MST 2012

Quote: CodeRedSupport
Please update to LPCXpresso 4.2.3. Then report back on the behaviour that you see.


So I updated my LPCXpresso to version 4.2.3 and changed SWD frequency to 3000 KHz (according  [B]kayoda [/B][B][B]:)[/B][/B]).
IT is working correctly according expectation now.
So thank you for your help gentleman.
0 Kudos
Reply

1,552 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Tue Jun 12 02:30:14 MST 2012
Please update to LPCXpresso 4.2.3. Then report back on the behaviour that you see.

In particular please confirm exactly which options you have enabled/disabled in the flash programmer GUI dialog, the log file generated, and also the command line that was executed (which is displayed in the top of the log file window).

Note that in relation to kayoda comment about SWD speed, when using the flash programmer GUI, the wire speed setting will default to 250KHz. This is actually of no consequence when using LPC-Link - but is if you use Red Probe+.

And as Rob65 comments, the "normal" way to program flash (certainly when you are just getting started) is to use the Debug entry in the Quickstart panel. This will program flash then automatically launch a debug session.

Regards,
CodeRedSupport.
0 Kudos
Reply

1,552 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by ex-kayoda on Tue Jun 12 01:12:07 MST 2012
Perhaps you should update your version to V4.2.3.

What's obviously different is your slow SWD speed :eek:
0 Kudos
Reply

1,552 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Lumos on Tue Jun 12 00:36:56 MST 2012

Quote: kayoda
Are we talking about a standard LPCXpresso1769 board?

Yes, I am working with standard LPCXpresso1769 board.


Quote: kayoda
Did you change your Debugger setting?


No, I am using default settings. I only installed LPCXpresso and edit GPIO example project to blinking LED2 on LPC1769 board. Any other change in configuration.
Same action I repeated on different computer with same result and also same result if release or debug version was inserted.
0 Kudos
Reply

1,552 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by ex-kayoda on Mon Jun 11 13:35:16 MST 2012
Are we talking about a standard LPCXpresso1769 board?

Did you change your Debugger setting?


Quote:

Right click on the project in the Project Explorer view

Select "Launch Configurations -> Open current launch configuration" from the context sensitive menu.
Click on the "Debugger" tab.

0 Kudos
Reply

1,552 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Lumos on Mon Jun 11 12:54:17 MST 2012

Quote: kayoda
No, it's usually working as expected. What's your log showing?



My log is showing this:

Quote:
Pc: (  0) Reading remote configuration
Ni: LPCXpresso Debug Driver v4.0 (Mar 24 2012 17:40:00)
Nc: Looked for chip XML file in C:/nxp/LPCXpresso_4.2.2_275/lpcxpresso/bin/LPC1769.xml

Nc: Looked for vendor directory XML file in C:/nxp/LPCXpresso_4.2.2_275/lpcxpresso/bin/nxp_directory.xml

Nc: Found generic directory XML file in C:/nxp/LPCXpresso_4.2.2_275/lpcxpresso/bin/crt_directory.xml

Pc: (  5) Remote configuration complete
Pc: ( 30) Emulator Connected
Pc: ( 40) Debug Halt
Pc: ( 50) CPU ID
Nc: Emu(0): Conn&Reset. DpID: 2BA01477. Info: T1S6RGRIA
Nc: SWD Frequency: 250 KHz. RTCK: False. Vector catch: False.
Nc: Packet delay: 0  Poll delay: 0.
Nc: NXP: LPC1769  Part ID: 0x26113F37
Pc: ( 65) Chip Setup Complete
Nt: Connected: was_reset=true. was_stopped=false
Cr:v Registered license, download limit of 128K
Pc: ( 70) License Check Complete
Nt: Loading ELF file 'GPIO.axf' at location 00000000
Nt: Writing 3836 bytes to 0000 in Flash (assumed clock: 72.0MHz)
Pb: 1 of 1 (  0) Writing pages 0-0 at 0x00000000 with 3836 bytes
Ps: (  0) Page  0 at 00000000
Ps: (100) Page  0 at 00000000: 3836 bytes
Nt: Erased/Wrote page  0-0 with 3836 bytes in 914msec
Pb: (100) Finished writing Flash successfully.
Nt: Flash write Done

my log does not contain your last two entries:

Nc: nSRST assert (if available)
Nc: Executing in user flash.

But how can I change it? Option "Reset target on completion" is set :(.
0 Kudos
Reply

1,552 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by ex-kayoda on Mon Jun 11 11:07:32 MST 2012

Quote:

Is my expectation incorect?
Or is there some another option that has to be set?

No, it's usually working as expected. What's your log showing?


Quote:

Pc: (  0) Reading remote configuration
Ni: LPCXpresso Debug Driver v4.0 (May 21 2012 21:42:41)
Nc: Looked for chip XML file in C:/nxp/LPCXpresso_4.2.3_292/lpcxpresso/bin/LPC1768.xml

Nc: Looked for vendor directory XML file in C:/nxp/LPCXpresso_4.2.3_292/lpcxpresso/bin/nxp_directory.xml

Nc: Found generic directory XML file in C:/nxp/LPCXpresso_4.2.3_292/lpcxpresso/bin/crt_directory.xml

Pc: (  5) Remote configuration complete
Pc: ( 30) Emulator Connected
Pc: ( 40) Debug Halt
Pc: ( 50) CPU ID
Nc: Emu(0): Conn&Reset. DpID: 2BA01477. Info: T1S6RGRIA
Nc: SWD Frequency: 3000 KHz. RTCK: False. Vector catch: False.
Nc: Packet delay: 0  Poll delay: 0.
Nc: NXP: LPC1768  Part ID: 0x26113F37
Pc: ( 65) Chip Setup Complete
Nt: Connected: was_reset=false. was_stopped=false
Cr:v Registered license, download limit of 128K
Pc: ( 70) License Check Complete
Nt: Loading ELF file 'LPCX176x_cmsis2_systick.axf' at location 00000000
Nt: Writing 3384 bytes to 0000 in Flash (assumed clock: 100.0MHz)
Pb: 1 of 1 (  0) Writing pages 0-0 at 0x00000000 with 3384 bytes
Ps: (  0) Page  0 at 00000000
Ps: (100) Page  0 at 00000000: 3384 bytes
Nt: Verified-same page 0-0 with 3384 bytes in 289msec
Pb: (100) Finished writing Flash successfully.
Nt: Flash write Done
Nc: nSRST assert (if available)
Nc: Executing in user flash.

0 Kudos
Reply

1,552 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Rob65 on Mon Jun 11 07:59:46 MST 2012
When connected to the LPCXpresso IDE the most used way of downloading and running your application is to start using debug (from the quick start menu). The program flash button is the least used button on the IDE (at least IMHO it is).

It's OK to use if you want to program a number of targets one after another but that smells like production use - and there are other/better tools for programming the LPCXpresso chips during production.

The nice thing of pressing "Debug" from the quick start menu is that it downloads your program, places a breakpoint at the main() and stops there so you can start placing other breakpoints or single step through your code.

Rob
0 Kudos
Reply