This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2340R5: Which definition is correct?

Part Number: CC2340R5

Hi TI members,

Below is my building environment:

Software

Version

Code Composer Studio

12.3.0.00005 

SimpleLink SDK

7.10.00.35

XDCtools

3.62.1.16_core

We are developing the tools for serial bootloader.

We referred to the "CC23xx_BootLoader_draft.pdf" and also checked the cpp example that TI had provided.

But in sblAppEx_1_03_00_00_CC2340_static_library\sblAppEx_1_03_00_00_CC2340\source\serial_bootloader_library\sbl_device_cc2340.h,

we saw below definitions:

    enum {
        CMD_PING             = 0x20,
        CMD_GET_STATUS       = 0x21,
        CMD_GET_CHIP_ID      = 0x22,
        CMD_RESET            = 0x23,
        CMD_CHIP_ERASE       = 0x24,
        CMD_CRC32            = 0x25,
        CMD_DOWNLOAD         = 0x26,
        CMD_DOWNLOAD_CRC     = 0x27,
        CMD_SEND_DATA        = 0x28,
        CMD_SECTOR_ERASE     = 0x29,
        //CMD_MEMORY_READ      = 0x2A,
        //CMD_MEMORY_WRITE     = 0x2B,
        //CMD_SET_CCFG         = 0x2D,
    };
While in p.7 of the draft, we saw these:
1. We wonder which definition shall we apply? Shall we add the "BLDR" in the front or is it unneccesary?
2. Are ther any options to replace CMD_MEMORY_READ / CMD_MEMORY_READ? Or are these two unneccesary?
Thanks.
BR,
  • Hello,

    I have assigned the relevant expert to this thread. 

    Kind Regards,

    Rogelio

  • Hi,

    1. We wonder which definition shall we apply? Shall we add the "BLDR" in the front or is it unneccesary?

    Assuming you are using the C++ code, you should use the symbols as they are defined in the code, i.e. without "BLDR" in the front.
    In the end, the most important is to make sure the proper UART (or SPI) values are sent to the device.

    2. Are ther any options to replace CMD_MEMORY_READ / CMD_MEMORY_READ? Or are these two unneccesary?

    For security reasons, the ROM serial bootloader does not expose commands to read the content of the flash.
    As far as I am aware, there is no reason to attempt reading the content of the Flash of the device through this way.

    I hope this will help,

    Best regards,