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.

cc2640 serial boot loader

Other Parts Discussed in Thread: CC2640

Hi Team,

I am working on cc2640 BLE device. I need to flash binary  files using serial boot loader, For this I am enabling back door entry, I am using smartRF flash programmer 2 for flashing binaries, first i am flashing BLE stack image and then BLE application(the binary files are  created using CCS , using Bulid configuration as FlashROM), after successful flashing, device is not booting up. I am not planned to use OAD. Please suggest solution for this problem.

Do i have to combine both stack and application hex files and and create single hex file to flash? is there any process or document to refer?or do i have to follow any additional step or modification for boot loader setting?

Thanks and regards 

Keshava murthy p 

  • If you program CC2640 using XDS100v3 or XDS110 with the same hex file, does your CC2640 work?
  • yes it is working fine. I am using XDS100v3 for debugging, I have designed custom board for my application.
  • I mean if you use XDS100v3 to download your application and restart CC2640 (not debug), does it run without problem? If so, I see no reason why is doesn't work using backdoor boot loader. You can try to refer to sunmaysky.blogspot.tw/.../how-to-use-backdoor-serial-boot-loader.html
  • Thanks Yikai Chen,

     

    I am able to download application using XDS100V3, and application runs even after power on reset, for this I have modifies ccfg file as shown below.

     

    //#####################################
    // Bootloader settings
    //#####################################

    #define SET_CCFG_BL_CONFIG_BOOTLOADER_ENABLE 0xC5 // Enable

    #define SET_CCFG_BL_CONFIG_BL_LEVEL 0x0                     // Active low
    #define SET_CCFG_BL_CONFIG_BL_PIN_NUMBER 0x09    // change back to ff DIO number for boot loader failure analysis

    #define SET_CCFG_BL_CONFIG_BL_ENABLE 0xC5 // Enabled

    After these changes, now I am able to put device in to serial boot loader by pulling DIO9 to ground and pressing reset button, after this settings now I am unable to flash code I am getting error from SmartRF Flash Programmer 2 mentioned below.

    >Timed out waiting for ACK/NAK. No response from device.

    >Failed to read target memory: Error code 3: Timed out waiting for ACK/NAK. No response from device.

    >Error while reading memory range. Address 0x40091090.

    >Reading file: E:/pillbox_version2/BTPillbox/FlashROM/BTPillbox.hex.

    >Timed out waiting for ACK/NAK. No response from device.

    >Failed to read target memory: Error code 3: Timed out waiting for ACK/NAK. No response from device.

    >Error while reading memory range. Address 0x1FFB2.

    >Start flash erase ...

    >Timed out waiting for ACK/NAK. No response from device.

    >Failed to erase target memory: Error code 3: Timed out waiting for ACK/NAK. No response from device.

    Are there any extra settings needs to be followed while generating .Hex or .Out file? For flashing using boot loader?