LPC11 & Crossworks

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

LPC11 & Crossworks

685 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by stuart51021 on Sat Jun 06 00:53:38 MST 2015
Hello

I am currently evaluating Crossworks with a basic LPC11U board.

The simple crossworks code I have created, compiles and runs OK with a J-Link probe without any issues.

I am now trying to run the same code via ISP - USB connection

ISP mode is entered as a CRP DISABLED window opens.

I have deleted "firmware.bin" file and replaced with the .bin file from crossworks.

The board is then resstarted, however the BIN code doesn't run.

Suggestions as to why the BIN code doesn't run, or avenues to investigate, would be appreciated.

Thanks
Labels (1)
0 Kudos
6 Replies

648 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by stuart51021 on Sat Jun 06 03:17:07 MST 2015

If that's in your test.bin too, it's a correct checksum  :)

Is your code (after flashing it with J-link) running without problems (without Debug-connection) ?[/quote]


Having compared the bin files before and after running the Checksum utility, it seems CW is adding the checksum !...

Your next suggestion helped me look elsewhere !....

The BIN file was accepted when transfering with CRP DISABLED, however the code wasn't running becasue the J-Link was still connected..!, disconneting and eveything is fine !

Thanks for your suggestions !
0 Kudos

648 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by R2D2 on Sat Jun 06 02:46:58 MST 2015

Quote: stuart51021

Quote: R2D2

Quote: stuart51021
...therefore for ease I ran my bin file through the LPCXpresso checksum utility.....



And now what's in 0x1C of your bin  :~  A valid checksum  :quest:



I belive so...output as below

Checksum utility for NXP LPC MCUs
(C) Code Red Technologies 2009-12
Using checksum algorithm for LPC1xxx (7 words)
Adding 0x10000390
Adding 0x20d
Adding 0x21d
Adding 0x21f
Adding 0x221
Adding 0x223
Adding 0x225
Validation 0x10000390
Validation 0x20d
Validation 0x21d
Validation 0x21f
Validation 0x221
Validation 0x223
Validation 0x225
Validation 0xefffefbe
Validation checksum = 0x0
Created checksum 0xefffefbe at offset 0x1c in file test.bin



If that's in your test.bin too, it's a correct checksum  :)

Is your code (after flashing it with J-link) running without problems (without Debug-connection) ?
0 Kudos

648 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by stuart51021 on Sat Jun 06 02:34:03 MST 2015

Quote: R2D2

Quote: stuart51021
...therefore for ease I ran my bin file through the LPCXpresso checksum utility.....



And now what's in 0x1C of your bin  :~  A valid checksum  :quest:



I belive so...output as below

Checksum utility for NXP LPC MCUs
(C) Code Red Technologies 2009-12
Using checksum algorithm for LPC1xxx (7 words)
Adding 0x10000390
Adding 0x20d
Adding 0x21d
Adding 0x21f
Adding 0x221
Adding 0x223
Adding 0x225
Validation 0x10000390
Validation 0x20d
Validation 0x21d
Validation 0x21f
Validation 0x221
Validation 0x223
Validation 0x225
Validation 0xefffefbe
Validation checksum = 0x0
Created checksum 0xefffefbe at offset 0x1c in file test.bin
0 Kudos

648 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by R2D2 on Sat Jun 06 02:11:14 MST 2015

Quote: stuart51021
...therefore for ease I ran my bin file through the LPCXpresso checksum utility.....



And now what's in 0x1C of your bin  :~  A valid checksum  :quest:
0 Kudos

648 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by stuart51021 on Sat Jun 06 01:59:35 MST 2015

Quote: R2D2

Quote: stuart51021
Suggestions as to why the BIN code doesn't run, or avenues to investigate, would be appreciated.



Is a checksum included?

http://www.lpcware.com/content/faq/lpcxpresso/image-checksums



Thanks for the valid suggestion - from what I can see, as default,  CW doesn't add a checksum, therefore for ease I ran my bin file through the LPCXpresso checksum utility.....

Unfortunally, this still didn't resolve the problem.
0 Kudos

648 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by R2D2 on Sat Jun 06 01:14:08 MST 2015

Quote: stuart51021
Suggestions as to why the BIN code doesn't run, or avenues to investigate, would be appreciated.



Is a checksum included?

http://www.lpcware.com/content/faq/lpcxpresso/image-checksums
0 Kudos