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