Datasheet

UM10398 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2014. All rights reserved.
User manual Rev. 12.3 — 10 June 2014 434 of 547
NXP Semiconductors
UM10398
Chapter 26: LPC111x/LPC11Cxx Flash programming firmware
26.6 C_CAN communication protocol
Remark: The C_CAN interface is available on LPC11Cxx parts only.
The C_CAN bootloader is activated by the ROM reset handler automatically if PIO0_3 is
LOW on reset and the ISP entry enabled (PIO0_1 LOW). The C_CAN bootloader
initializes the on-chip oscillator and the CAN controller for a CAN bit rate of 100 kbit/s and
sets its own CANopen Node ID to a fixed value. The bootloader then waits for CANopen
SDO commands and responds to them. These commands allow to read and write
anything in a so-called Object Dictionary (OD). The OD contains entries that are
addressed via a 16-bit index and 8-bit subindex. The command interface is part of this
OD.
The C_CAN ISP command handler allows to perform all functions that are otherwise
available via the UART ISP commands, see Table 392
.
The SDO commands are received, processed and responded to “forever” until the
command to jump to a certain execution address (“Go”) has been received or the chip is
reset.
The C_CAN ISP handler occupies the fixed CANopen node ID 125 (0x7D).
10 COMPARE_ERROR Source and destination data not equal.
11 BUSY Flash programming hardware interface is busy.
12 PARAM_ERROR Insufficient number of parameters or invalid
parameter.
13 ADDR_ERROR Address is not on word boundary.
14 ADDR_NOT_MAPPED Address is not mapped in the memory map. Count
value is taken in to consideration where applicable.
15 CMD_LOCKED Command is locked.
16 INVALID_CODE Unlock code is invalid.
17 INVALID_BAUD_RATE Invalid baud rate setting.
18 INVALID_STOP_BIT Invalid stop bit setting.
19 CODE_READ_PROTECTION_
ENABLED
Code read protection enabled.
Table 391. UART ISP Return Codes Summary
Return
Code
Mnemonic Description
Table 392. C_CAN ISP and UART ISP command summary
ISP Command C_CAN usage UART usage
Unlock Section 26.6.3
Table 376
Set Baud Rate n/a Table 377
Echo n/a Table 378
Write to RAM Section 26.6.4 Table 379
Read Memory Section 26.6.5 Table 380
Prepare sector(s) for write operation Section 26.6.6 Table 381
Copy RAM to flash Section 26.6.7 Table 382