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.

CC2642R: Texas Instruments XDS110 USB Debug Probe - Failed to write data to temporary buffer in RAM before programming device FLASH memory

Part Number: CC2642R

Tool/software:

I am attempting to load and debug a 2642R using Code Composer using a XDS110 USB Debug Probe.

During the load and debug phase, the following messages are displayed in the console:

Cortex_M4_0: GEL Output: Memory Map Initialization Complete.
Cortex_M4_0: Flashloader: Verbose output enabled.
Cortex_M4_0: GEL Output: Memory Map Initialization Complete.
Cortex_M4_0: GEL Output: Board Reset Complete.
Cortex_M4_0: Writing Flash @ Address 0x00000000 of Length 0x00007ff0
Cortex_M4_0: Loading flashloader to target: FlashLoaderCC26x2.out 
Cortex_M4_0:   Failed to write data to temporary buffer in RAM before programming device FLASH memory. addr=0x20001000, writeLength=8192(0x2000), bufIdx=0 Error: Could not write 0x20001000: execution state prevented access 
Cortex_M4_0: File Loader: Memory write failed: Failed to write data to temporary buffer in RAM before programming device FLASH memory.
Cortex_M4_0: GEL: File: C:\Users\hamelp\Documents\dev\test\iBeacon\LeapFrogiBeacon\ibeacon_simple_broadcaster\Release\simple_broadcaster_CC26X2R1_LAUNCHXL_tirtos_ccs_ibeacon.out: Load failed.

I am able to successfully Erase, Program and Verify the same Hex file using the 'SmartRF Flash Programmer 2' application.

Thanks for help

  • I was able to find a solution.

    I had to

    - Select 'All Unprotected Sectors' in the 'Program Load Settings->Erase Settings during Program Load' group box on the 'Target->Flash Settings' page

    - Select 'Erase entire flash' in the 'Target->Flash Settings' page

    - Select 'Halt the target before any debugger access' in the 'Target->Auto Run and Launch Options' page.