SWRA466D February 2015 – August 2021 CC1310 , CC1310 , CC1352R , CC1352R , CC2538 , CC2538 , CC2620 , CC2620 , CC2630 , CC2630 , CC2640 , CC2640 , CC2640R2F , CC2640R2F , CC2640R2F-Q1 , CC2640R2F-Q1 , CC2642R , CC2642R , CC2642R-Q1 , CC2642R-Q1 , CC2650 , CC2650 , CC2650MODA , CC2650MODA , CC2652R , CC2652R , CC2652R7 , CC2652R7 , CC2652RB , CC2652RB , CC2652RSIP , CC2652RSIP
An overview of the SBL API is shown in Table 3-2. API functions that directly map to a bootloader command are marked with an X.
SBL Function Name | Bootloader CMD | Description | ||
---|---|---|---|---|
CC2538 | CC26x0 | CC26x2 | ||
Create | NA | NA | NA | Static function for creating a SBL device object. |
calculateCrc32 | X | X | X | Calculate CRC32 over the specified range. |
connect | Initialize connection with ROM bootloader | |||
enumerate | NA | NA | NA | Static function for enumerating COM ports on PC. |
eraseFlashBank | X | X | Erases the entire flash. Not supported by CC2538. | |
eraseFlashRange | X | X | X | Erase the sectors in the specified range. Uses CMD_SECTOR_ERASE. |
ping | X | X | X | Sends ping command. |
readDeviceId | Uses CMD_MEMORY_READ to read device ID. | |||
readFlashSize | Uses CMD_MEMORY_READ to read flash size. | |||
readMemory32 | X | X | X | Reads 32 bit word from device memory device memory. |
readMemory8 | Uses CMD_MEMORY_READ to read 8 bit from device memory. | |||
readRamSize | Uses CMD_MEMORY_READ to read RAM size. | |||
readStatus | X | X | X | Reads bootloader status. |
reset | X | X | X | Resets device using CMD_RESET. |
run | X | Runs the device CPU from the specified address. Not supported by CC26xx. | ||
setCCFG | X | X | Set CC26xx CCFG. Not supported by CC2538. | |
setXosc | X | Switch to external oscillator. Not supported by CC26xx. | ||
writeFlashRange | X | X | X | Writes FLASH using CMD_DOWNLOAD and CMD_DATA_SEND. |
writeMemory32 | X | X | X | Writes 32-bit word to device memory using CMD_MEMORY_WRITE. |
writeMemory8 | Implements 8-bit write to device memory using CMD_MEMORY_READ and CMD_MEMORY_WRITE. |