SWCU194 March 2023 CC1314R10 , CC1354P10 , CC1354R10 , CC2674P10 , CC2674R10
The COMMAND_MEMORY_READ command requests the bootloader to read one or multiple 8- or 32-bit memory elements. The command sends the number of elements, the access type (8 or 32 bits), the start address and returns the read data in the subsequent communications packets. The requested amount of data must be less than the maximum size of a communication packet. The specified Access Type must be either a 0 or 1. The value of 0 forces 8-bit read accesses. The value of 1 forces 32-bit read accesses. The specified Number of Accesses gives the number of 8- or 32-bit read accesses. Maximum value of Number of Accesses is 253 for Access Type = 0. Maximum value for Number of Accesses is 63 for Access Type = 1. The format of the packet including the command is as follows:
The format of the packet including the command ID is as follows:
unsigned char ucPacket[9];
ucPacket[0] = <size=9>;
ucPacket[1] = <checksum>;
ucPacket[2] = COMMAND_MEMORY_READ;
ucPacket[3] = <Memory Mapped Address [31:24]>;
ucPacket[4] = <Memory Mapped Address [23:16]>;
ucPacket[5] = <Memory Mapped Address [15:8]>;
ucPacket[6] = <Memory Mapped Address [7:0]>;
ucPacket[7] = <Access Type [7:0]>;
ucPacket[8] = <Number of Accesses [7:0]>;