XCP

XCP Commands

 

 

STD_CONNECT

0xFF

 

STD_DISCONNECT

0xFE

 

STD_GET_STATUS

0xFD

 

STD_SYNCH

0xFC

 

OPT_GET_COMM_MODE_INFO

0xFB

 

OPT_GET_ID

0xFA

 

OPT_SET_REQUEST

0xF9

 

OPT_GET_SEED

0xF8

 

OPT_UNLOCK

0xF7

 

OPT_SET_MTA

0xF6

 

OPT_UPLOAD

0xF5

 

OPT_SHORT_UPLOAD

0xF4

 

OPT_BUILD_CHECKSUM

0xF3

 

OPT_TRANSPORT_LAYER_CMD

0xF2

 

OPT_USER_CMD

0xF1

 

 

 

 

STD_DOWNLOAD

0xF0

 

OPT_DOWNLOAD_NEXT

0xEF

 

OPT_DOWNLOAD_MAX

0xEE

 

OPT_SHORT_DOWNLOAD

0xED

 

OPT_MODIFY_BITS

0xEC

 

 

 

 

STD_SET_CAL_PAGE

0xEB

 

STD_GET_CAL_PAGE

0xEA

 

OPT_GET_PAG_PROCESSOR_INFO

0xE9

 

OPT_GET_SEGMENT_INFO

0xE8

 

OPT_GET_PAGE_INFO

0xE7

 

OPT_SET_SEGMENT_MODE

0xE6

 

OPT_GET_SEGMENT_MODE

0xE5

 

OPT_COPY_CAL_PAGE

0xE4

 

 

 

 

STD_CLEAR_DAQ_LIST

0xE3

 

STD_SET_DAQ_PTR

0xE2

 

STD_WRITE_DAQ

0xE1

 

STD_SET_DAQ_LIST_MODE

0xE0

 

STD_GET_DAQ_LIST_MODE

0xDF

 

STD_START_STOP_DAQ_LIST

0xDE

 

STD_START_STOP_SYNCH

0xDD

 

OPT_GET_DAQ_CLOCK

0xDC

 

OPT_READ_DAQ

0xDB

 

OPT_GET_DAQ_PROCESSOR_INFO

0xDA

 

OPT_GET_DAQ_RESOLUTION_INFO

0xD9

 

OPT_GET_DAQ_LIST_INFO

0xD8

 

OPT_GET_DAQ_EVENT_INFO

0xD7

 

OPT_FREE_DAQ

0xD6

 

OPT_ALLOC_DAQ

0xD5

 

OPT_ALLOC_ODT

0xD4

 

OPT_ALLOC_ODT_ENTRY

0xD3

 

 

 

 

STD_PROGRAM_START

0xD2

 

STD_PROGRAM_CLEAR

0xD1

 

STD_PROGRAM

0xD0

 

STD_PROGRAM_RESET

0xCF

 

OPT_GET_PGM_PROCESSOR_INFO

0xCE

 

OPT_GET_SECTOR_INFO

0xCD

 

OPT_PROGRAM_PREPARE

0xCC

 

OPT_PROGRAM_FORMAT

0xCB

 

OPT_PROGRAM_NEXT

0xCA

 

OPT_PROGRAM_MAX

0xC9

 

OPT_PROGRAM_VERIFY

0xC8

 

 

XCP Error Codes

 

 

ERR_CMD_SYNCH

0x00

Command processor synchronization

ERR_CMD_BUSY

0x10

Command was not executed

ERR_DAQ_ACTIVE

0x11

Command rejected because DAQ is running

ERR_PGM_ACTIVE

0x12

Command rejected because PGM is running

ERR_CMD_UNKNOWN

0x20

Unknown command or not implemented optional command

ERR_CMD_SYNTAX

0x21

Command syntax invalid

ERR_OUT_OF_RANGE

0x22

Command syntax valid but command parameter(s) out of range

ERR_WRITE_PROTECTED

0x23

The memory location is write protected

ERR_ACCESS_DENIED

0x24

The memory location is not accessible

ERR_ACCESS_LOCKED

0x25

Access denied Seed & Key is required

ERR_PAGE_NOT_VALID

0x26

Selected page not available

ERR_MODE_NOT_VALID

0x27

Selected page mode not available

ERR_SEGMENT_NOT_VALID

0x28

Selected segment not valid

ERR_SEQUENCE

0x29

Sequence error

ERR_DAQ_CONFIG

0x2A

DAQ configuration not valid

ERR_MEMORY_OVERFLOW

0x30

Memory overflow error

ERR_GENERIC

0x31

Generic error

ERR_VERIFY

0x32

The slave internal program verify routine detects an error

CCP

CCP Commands

 

 

STD_CONNECT

0x01

 

STD_SET_MTA

0x02

 

STD_DNLOAD

0x03

 

STD_UPLOAD

0x04

 

OPT_TEST

0x05

 

STD_START_STOP

0x06

 

STD_DISCONNECT

0x07

 

OPT_START_STOP_ALL

0x08

 

OPT_GET_ACTIVE_CAL_PAGE

0x09

 

OPT_SET_S_STATUS

0x0C

 

OPT_GET_S_STATUS

0x0D

 

OPT_BUILD_CHKSUM

0x0E

 

OPT_SHORT_UP

0x0F

 

OPT_CLEAR_MEMORY

0x10

 

OPT_SELECT_CAL_PAGE

0x11

 

OPT_GET_SEED

0x12

 

OPT_UNLOCK

0x13

 

STD_GET_DAQ_SIZE

0x14

 

STD_SET_DAQ_PTR

0x15

 

STD_WRITE_DAQ

0x16

 

STD_EXCHANGE_ID

0x17

 

OPT_PROGRAM

0x18

 

OPT_MOVE

0x19

 

STD_GET_CCP_VERSION

0x1B

 

OPT_CCP_1E

0x1E

 

OPT_CCP_1F

0x1F

 

OPT_DIAG_SERVICE

0x20

 

OPT_ACTION_SERVICE

0x21

 

OPT_PROGRAM_6

0x22

 

OPT_DNLOAD_6

0x23

 

OPT_EEPROM_SET_REBOOT

0x33

reboot with EEPROM with 0=boot 1=boot unlock or 2=app

OPT_READ_FLASH

0x34

use set MTA to read four bytes from FLASH

 

CCP Error Codes

 

NO_CCP_ERROR

0x00

DAQ_PROCESSOR_OVERLOAD

0x01

COMMAND_PROCESSOR_BUSY

0x10

DAQ_PROCESSOR_BUSY

0x11

INTERNAL_TIMEOUT

0x12

KEY_REQUEST

0x18

SESSION_STATUS_REQUEST

0x19

COLD_START_REQUEST

0x20

CAL_DATA_INIT_REQUEST

0x21

DAQ_LIST_INIT_REQUEST

0x22

CODE_UPDATE_REQUEST

0x23

UNKNOWN_COMMAND

0x30

COMMAND_SYNTAX

0x31

PARAMETER_OUT_OF_RANGE

0x32

ACCESS_DENIED

0x33

OVERLOAD

0x34

ACCESS_LOCKED

0x35

RESOURCE_NOT_AVAILABLE

0x36

FLASH_CRC_ERROR

0x56

Related Topic:

CCP/XCP