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: Flash On-chip OAD code using ROM serial Bootloader

Part Number: CC2340R5

Tool/software:

Hi,

Currently we have tested the on-chip OAD project code with the TI mobile APP and we have seen that it works perfectly. 

We do Have one requirement where without using J-TAG, we wish to flash the OAD project code to the CC2340R5. From the TRM, I see that by the help of an eternal MCU we can flash firmware image via UART/SPI.

I have found an SBL tool here for an older version of the simplelinkf3 SDK. 

The On-Chip OAD example requires three binaries to be flashed namely, MCUboot on-chip, persistence binary, application firmware containing the OAD reset service. 

Can we flash the above three binaries using the Serial ROM bootloader?

writeFlashRange(getDeviceFlashBase(), fileSz, (char*)memPtr);
The above is a small code snippet from the SBL tool example, Can we modify the code to replace "getDeviceFlashBase()" with a custom address of our own? 
Regards,
Sandeep Singh
  • Hello,

    Can we flash the above three binaries using the Serial ROM bootloader?

    writeFlashRange(getDeviceFlashBase(), fileSz, (char*)memPtr);
    The above is a small code snippet from the SBL tool example, Can we modify the code to replace "getDeviceFlashBase()" with a custom address of our

    Yes I believe this should be possible. Though note that this application is just a reference to implement a tool for the SBL. Please let me know if your modifications work.

    Best,

    Nima Behmanesh