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.

LAUNCHXL-CC26X2R1: File Loader: Memory write failed: Timed out waiting for target flash loader to execute command error?

Part Number: LAUNCHXL-CC26X2R1

I have a fresh installation of CCS 10.4.0, and installed the SimpleLink CC13X2-26X2 SDK

I have imported each of the following projects; rtls_master and rtls_slave, both of which successfully build in release and debug.

The problem I have comes when trying to flash these projects to my LaunchPad but I'm facing this issue 

{actually, before  I flashed multiple times before it's worked fine but later started this issue } 

Cortex_M4_0: GEL Output: Memory Map Initialization Complete.
Cortex_M4_0: GEL Output: Memory Map Initialization Complete.
Cortex_M4_0: GEL Output: Board Reset Complete.
Cortex_M4_0: Target timed out! (Block 0)
Cortex_M4_0: Status 0xFFFFFFFF: Target flash loader has not returned any status. Unknown error!
Cortex_M4_0: Command=20 -- addr=0x00002000 -- length=0x00002000
Cortex_M4_0: File Loader: Memory write failed: Timed out waiting for target flashloader to execute command.
Cortex_M4_0: GEL: File: C:\Users\Embdes\Music\simple_central_CC26X2R1_LAUNCHXL_tirtos_ccs\Release\simple_central_CC26X2R1_LAUNCHXL_tirtos_ccs.out: Load failed.

I have used LaunchPad

warning: Data is being written to auto-generated file simple_central_CC26X2R1_LAUNCHXL_tirtos_ccs.x1
warning: Data is being written to auto-generated file simple_central_CC26X2R1_LAUNCHXL_tirtos_ccs.x2
warning: Data is being written to auto-generated file simple_central_CC26X2R1_LAUNCHXL_tirtos_ccs.x3
warning: section simple_central_CC26X2R1_LAUNCHXL_tirtos_ccs.out(.const) was padded by 1 to a size of 8376 to satisfy the specified memory width of 4
warning: section simple_central_CC26X2R1_LAUNCHXL_tirtos_ccs.out(.rodata) was padded by 2 to a size of 352 to satisfy the specified memory width of 4

I have used Flash Programmer 2 to perform a forced Mass Erase, which claimes to be successful, but I am still unable to program board.

please help me 

  • Hi Vadivelan,

    Are all of your jumpers attached? Can you send us a picture of your setup? You can also try to use Flash Programmer 2 to flash the boards with the output image directly which will be located in the FlashROM_Release folder.

    Best,

    Nate

  • it's resolved I changed the settings 

    Currently, I'm facing  the issue like 

    This is my modified code

    like is follow -  i'm using a simple central example for my project in that after the scan  advreport event it well trigger on  that i'm collecting the scan address and sent to the uart and then again through serial UART i'm receiving address that address stored in global bufffer inside uart i'm enqueued this one  SC_CONN_EVT

    SimpleCentral_enqueueMsg(SC_CONN_EVT,0, NULL);

     

    case SC_EVT_ADV_REPORT:
        {
    
                         GapScan_Evt_AdvRpt_t* pAdvRpt;
                         pAdvRpt = (GapScan_Evt_AdvRpt_t*) (pMsg->pData);
    
                     /*    if (pAdvRpt->evtType &= ADV_RPT_EVT_TYPE_SCAN_RSP)
                                        {
                                            if (++total_scan_results_count == 0xffffffff)
                                            {
                                                total_scan_device_count = 0;
                                            }
                                            ++scan_results_count;*/
                          if( (*((pAdvRpt->pData)+2) == 0x41) ||  (*((pAdvRpt->pData)+2) == 0x4D) )
                             {
    
                              memcpy(&AddrLis, pAdvRpt->addr, B_ADDR_LEN);
    
                            
    
                                  sync_done = false;
    
                                  GapScan_disable("");
                                           
                            
                                  scanningStarted =  FALSE;
                               
                                  if (pAdvRpt->pData != NULL)
                                          {
                                             ICall_free(pAdvRpt->pData);                         // Free report payload data
                                          }
    
                                  // Send Data To HOST
                                  // the data address of scanned device address based on that IPQ send command to cental
                                   // depends on that have to connect or cancel connection
                                  SendDataToUart(AddrLis, sizeof(AddrLis));
    
                                    }
    
                                        }
                                      
    

    here i'm calling connection function it's connecting but after that terminiation request function calling termination is happening but    GAP_LINK_TERMINATED_EVENT:  not triggering please help me!

      static void SimpleCentral_processAppMsg(scEvt_t *pMsg)
      {
        case  SC_CONN_EVT:
                  {
                      uint8_t vs[4]={0};
                          vs[0]=0x65;
                          vs[1]=0x65;
                          vs[2]=0x65;
    
                         SendDataToUart(vs,sizeof(vs));
                  uint8_t addrType=0x0;
                      GapInit_connect(addrType & MASK_ADDRTYPE_ID,addrr,INIT_PHY_1M,0);
                      break;
                  }
        }

  • Hi Vadivelan,

    For new issues, please open a new ticket. This helps us stay organized and it makes searching for results in the future easier too. If you simply copy and paste this into a new post, I'd be happy to help.

    Best,

    Nate

  • OK posted please reply now