Want my -exec back!

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

Want my -exec back!

2,459 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Fri Sep 30 07:46:11 MST 2011
If I use 'Program Flash' with options 'Reset target on completion' and 'Erase only required pages' '-exec' isn't added :eek:

And, of course, program isn't executed after programming. Log shows '-flash-load-partial'.

With option 'Mass erase' everything is working ('flash-load[COLOR=Red]-exec[/COLOR]').

How can I get my -exec back :confused:

Version: LPCXpresso v4.1.0 [Build 190] [27/09/2011]  / Windows
0 Kudos
Reply
13 Replies

2,428 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by andrea-peter on Mon Jun 04 10:11:22 MST 2012
I think this is important, so I'll post it here as well.

Wiki about dual core projects on LPC4350:

http://support.code-red-tech.com/CodeRedWiki/LPC43DualCoreProjects
0 Kudos
Reply

2,428 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by andrea-peter on Mon Jun 04 07:52:06 MST 2012
mh, not good...

thanks for that.
0 Kudos
Reply

2,428 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Mon Jun 04 02:54:25 MST 2012

Quote: andrea-peter
Yes,
thanks.

The support pointed me to this site:
.....
I will look into that later.
Andrea.



You've linked a part of your mail (https....) :eek:
0 Kudos
Reply

2,428 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by andrea-peter on Mon Jun 04 02:26:33 MST 2012
Yes,
thanks.

The support pointed me to this site:

http://support.code-red-tech.com/CodeRedWiki/LPC43DualCoreProjects


I will look into that later.
Andrea.
0 Kudos
Reply

2,428 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Wed May 30 07:15:38 MST 2012

Quote: andrea-peter
Hi Jon,
sorry for interfering in this post,
have you actually managed to run code on both cores on the LPC4350?


Did you read our previous response to you in another thread??

http://knowledgebase.nxp.com/showpost.php?p=16591&postcount=2

Regards,
CodeRedSupport
0 Kudos
Reply

2,428 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by andrea-peter on Wed May 30 06:13:03 MST 2012
Hi Jon,
sorry for interfering in this post,
have you actually managed to run code on both cores on the LPC4350?
0 Kudos
Reply

2,428 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by JohnR on Tue Apr 24 07:21:20 MST 2012
I am having problems flashing separate sections of flash memory for the Diolan LPC4300 board with M0 and M4 code.

In the earlier message in this thead from CodeRed support, there is a output listing from the flash driver. What are the meanings of the Pc: Ps etc headers on each line?

The command line in my case is

crt_emu_lpc18_43_nxp -g -2 -vendor=NXP -pLPC4350-M0 -s100 -flash-load-partial="C:\Users\John\Documents\LPCXpresso_4.2.2_275\workspace\IPC_M0\Release\IPC_M0.axf"  -wire=hid -flash-driver=SST39VF3201B_Hitex_LPC1850A_4350A.cfx -xC:/Users/John/Documents/LPCXpresso_4.2.2_275/workspace/IPC_M0/Debug

The output is
Pc: (  0) Reading remote configuration
Ni: LPCXpresso Debug Driver v4.0 (Mar 24 2012 17:39:52)
Nc: Found chip XML file in C:/Users/John/Documents/LPCXpresso_4.2.2_275/workspace/IPC_M0/Debug/LPC4350-M0.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: 100 KHz. RTCK: False. Vector catch: False.
Nc: Packet delay: 16  Poll delay: 0.
Nc: Loaded SST39VF3201B_Hitex_LPC1850A_4350A.cfx: SST39VF3201B (4MB) Hitex_LPC1850A_4350A Jan 10 2012 12:26:21  External Flash Device on 16-bit Bus
Nc: NXP: LPC4350-M0  Part ID: 0x00000000
Pc: ( 65) Chip Setup Complete
Nt: Connected: was_reset=false. was_stopped=true
Cr:v Registered license, download limit of 128K
Pc: ( 70) License Check Complete
Nt: Loading ELF file 'IPC_M0.axf' at location 1C100000
Nt: Writing 1460 bytes to 1C100000 in Flash (assumed clock: 72.0MHz)
Pb: 1 of 1 (  0) Writing pages 256-256 at 0x1C100000 with 1460 bytes
Ps: (  0) Page 256 at 1C100000
Ec: Flash driver command failure 100003EA, 2
Pb: (100) Writing Flash ended with an error.
Ed:05: File 'IPC_M0.axf' load failure: Ef(1). Timed-out writing to flash.
Pc: (100) Target Connection Failed

What am I doing wrong?  Sometimes (occasionally) it does work.

JohnR
0 Kudos
Reply

2,428 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Fri Sep 30 17:00:00 MST 2011
Can't find information about partial in http://support.code-red-tech.com/CodeRedWiki/CommandLineFlashProgramming.

So I assume it's the 'Erase only required pages' option.

The confusing part is that 'Reset target on completion' is adding -exec in 'Mass erase' mode. So I thought execution after programming is still enabled in 'Erase only required pages' mode. Otherwise I would expect that 'Reset target...' option is automatically disabled after switching to 'Erase only...' mode.

But that's obviously not the case. Thanks for pointing that out, now I know that I've to use 'Mass erase' mode :)
0 Kudos
Reply

2,428 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Fri Sep 30 16:30:38 MST 2011
We're sorry for the inconvenience. At the present time, the '-flash-load-exec=' and '-flash-load-partial=' options are mutually exclusive.

Regards,

CodeRedSupport

Edit:

Zero, you might want to verify the flash dialog operation is what you expect when you select 'mass' erase. The debug utility may not actually have 'mass' erased the part. For example, if the image you're trying to program is already in flash, the programming operation does nothing (i.e. see 'Verified-same' in output log below). If you select the check box for 'Erase only required pages', it also shows 'Verified-same'. No program or erase operation was performed in either case. To guarantee the part gets erased, you should use the 'Erase flash memory' tab.

Pc: (  0) Reading remote configuration
Ni: Code Red Technologies Debug Driver v4.0 (Sep 26 2011 08:36:21)
Nc: Looked for chip XML file in C:/code_red/RedSuite_4.1.0_281/redsuite/bin/LPC1114/301.xml

Nc: Looked for vendor directory XML file in C:/code_red/RedSuite_4.1.0_281/redsuite/bin/nxp_directory.xml

Nc: Found generic directory XML file in C:/code_red/RedSuite_4.1.0_281/redsuite/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:  BB11477. Info: T1S6RGRIA
Nc: SWD Frequency: 250 KHz. RTCK: False. Vector catch: False.
Nc: Packet delay: 0  Poll delay: 0.
Nc: NXP: LPC1114/301  Part ID: 0x0444102B
Pc: ( 65) Chip Setup Complete
Nt: Connected: was_reset=false. was_stopped=false
Cf:v Full license, no download limit
Pc: ( 70) License Check Complete
Nt: Loading ELF file 'LPCXpresso1114_systick_twinkle.axf' at location 00000000
Nt: Writing 2640 bytes to 0000 in Flash (assumed clock: 48.0MHz)
Pb: 1 of 1 (  0) Writing pages 0-0 at 0x00000000 with 2640 bytes
Ps: (  0) Page  0 at 00000000
Ps: ( 38) Page  0 at 00000000: 1024 bytes
Ps: ( 77) Page  0 at 00000400: 1024 bytes
Ps: (100) Page  0 at 00000800: 592 bytes
Nt: Verified-same page 0-0 with 2640 bytes in 516msec
Pb: (100) Finished writing Flash successfully.
Nt: Flash write Done
Nc: nSRST assert (if available)
Nc: Executing in user flash.
0 Kudos
Reply

2,428 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Fri Sep 30 15:58:14 MST 2011

Quote: CodeRedSupport
It sounds like you expect the "Reset target upon completion" check box to offer this functionality...



Yes :)

And if I select 'Mass erase' instead 'Erase only required pages' exactly that's happening (because -exec is added and -partial disappears, as enabled log shows) :eek:

I'm not talking about command line version. With command line version I would of course add this -exec and my program is executed after programming..

So flashing and executing my program isn't possible without 'Mass erase', which makes no sense for me.
0 Kudos
Reply

2,428 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Fri Sep 30 15:38:42 MST 2011
The dialog doesn't explicitly offer a "flash and execute" option. It sounds like you expect the "Reset target upon completion" check box to offer this functionality, and it may have served that (unadvertised) purpose in the past. Try using the following command-line from a cmd window.

crt_emu_lpc11_13_nxp -g -2 -pLPC1114/301 -flash-load-exec="C:\Users\Steve\Documents\RedSuite_4.0.0\workspace\LPCXpresso1114_systick_twinkle\Debug\LPCXpresso1114_systick_twinkle.axf" -wire=winUSB  -s250

Is this the behavior you expect from the check box?

Regards,

CodeRedSupport


Quote: Zero
If I use 'Program Flash' with options 'Reset target on completion' and 'Erase only required pages' '-exec' isn't added :eek:

And, of course, program isn't executed after programming. Log shows '-flash-load-partial'.

With option 'Mass erase' everything is working ('flash-load[COLOR=Red]-exec[/COLOR]').

How can I get my -exec back :confused:

Version: LPCXpresso v4.1.0 [Build 190] [27/09/2011]  / Windows

0 Kudos
Reply

2,428 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Fri Sep 30 09:50:14 MST 2011

Quote: CodeRedSupport
Do you see this behavior using the flash dialog, or are you using the debug command-line utility?



Flash dialog


Quote: CodeRedSupport
Can you provide details on your exact test  setup (LPCXpresso or other, LPC-Link, etc)?



Original LPCXpresso1114, simple 3k LPC1114 timer sample

Made a test with v4.0.6, same result :)
0 Kudos
Reply

2,428 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Fri Sep 30 09:37:58 MST 2011
Zero,

Do you see this behavior using the flash dialog, or are you using the debug command-line utility? Can you provide details on your exact test setup (LPCXpresso or other, LPC-Link, etc)?

Regards,

CodeRedSupport
0 Kudos
Reply