LPC11C1x CAN bootloader procedure

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

LPC11C1x CAN bootloader procedure

2,029 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CH Wu on Thu May 22 02:48:51 MST 2014
Hello,

I would like to program LPC11C14FBD48 using CAN bootloader.
Due to it needs Flash Magic but if I want to write software by ourself.
The user manual is just descripted commands. Where can I find more detialed documents? such as flowchart, etc....

CH Wu
Labels (1)
0 Kudos
Reply
8 Replies

1,956 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mc8ain on Thu Nov 19 15:34:08 MST 2015
Yep, that's what I thought.. no encoding..  and yes we are talking about 0x1F50 :D
0 Kudos
Reply

1,956 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by R2D2 on Wed Nov 18 16:55:01 MST 2015

Quote: mc8ain

Quote: Wouter

[list]
  [*] Data formatting is explained (UU-encoded, checksum, etc.)
[/list]



the UU encoding is used as well for CAN ISP mode? E.g. when I write data into RAM with CAN SDO command 0x501f ?



No  :)

BTW: We are talking about 0x1F50, aren't we?
0 Kudos
Reply

1,956 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mc8ain on Wed Nov 18 16:16:36 MST 2015

Quote: Wouter

[list]
  [*] Data formatting is explained (UU-encoded, checksum, etc.)
[/list]



the UU encoding is used as well for CAN ISP mode? E.g. when I write data into RAM with CAN SDO command 0x501f ?
0 Kudos
Reply

1,956 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by R2D2 on Thu May 29 09:24:24 MST 2014

Quote: Wouter
If you understand CANopen, it's quite easy to implement a programmer...



:quest:

Perhaps you can provide an actual (LPCOpen / LPCXpresso7) and working (with segmented SDO) C or C++ CANOpen example?

Otherwise I would insist that it's not quite easy  ;-)
0 Kudos
Reply

1,956 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Wouter on Tue May 27 16:16:43 MST 2014
Hi Ch Wu,

All information for writing your own CAN programmer is provided in the LPC11Cxx user manual:
[list]
  [*] CANopen is used as high level protocol.
  [*] Writing directly to Flash is not supported, so you should write first to RAM, then issue a write-RAM-to-Flash command.
  [*] Details on how to write to RAM are provided in the UM.
  [*] Data formatting is explained (UU-encoded, checksum, etc.)
  [*] Details on how to initiate a write from RAM to Flash are provided in the UM.
[/list]

If you understand CANopen, it's quite easy to implement a programmer (especially when using another LPC11C2x and making use of the on-chip CANopen driver).

Regards,
Wouter
0 Kudos
Reply

1,956 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by R2D2 on Fri May 23 02:39:06 MST 2014
Unfortunately CAN-ISP requires a device which can communicate via CAN with CAN-bootloader.

So it's important to be familiar with this CAN stuff like 'expedited SDO transfer' and 'segmented SDO transfer'.

Not sure which hardware you want to use, but probably it's an external device (USB<->CAN) like LPC11Cxx, LPC15xx or LPC17xx.

So you have to program a serial communication to read the program image (from PC) or read it from SD...

That's a lot of work and usually ending in buying a PEAK-PCAN (which is working with FlashMagic)  :)


0 Kudos
Reply

1,956 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by starblue on Thu May 22 06:27:43 MST 2014
You could look at the lpc21isp source code. It is only for ISP via UART, but since these are the same commands as for CAN you could get an idea of the general program flow.
0 Kudos
Reply

1,956 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by R2D2 on Thu May 22 02:57:53 MST 2014
I fear that's not Open Source and you will not find documents...
0 Kudos
Reply