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.

Debugging application code which is compiled for SBL(serial boat loader) for CC2541.

Hi,


I am trying to debug the application I compiled to work with SBL based on this guide: http://processors.wiki.ti.com/index.php/SerialBootLoader.

I am able to compile and make the bin file and serially download but I cannot debug the application code in IAR simply by pressing download and debug button.

I appreciate your help.

Thanks

  • I found the answer here: processors.wiki.ti.com/.../CC253x_Serial_Boot_Loader

    Bypass the CRC check to speed up debug

    This section guide you through removing the delay seen when using IAR to download and run the application. This delay is caused by the boot loader doing a CRC check. This will reduce the turn around time when compiling and downloading you image during the debug phase.

    Rebuild the project to insure the checksum is correct
    Open Projects\zstack\Samples\GenericApp\CC2530DB\Router\List\GenericApp.map
    Find the Checksum in the map file, in this case it is 0xcc9d

    Symbol Checksum Memory Start End Initial value
    ------ -------- ------ ----- --- -------------
    __checksum 0xcc9d CODE 00002000 - 0000208F 0x0000 (#0x0000)

    In project view in left pannel open ZMain->OnBoard.c

    Hard code this check sum at line 80 to the value retrieved from the map file (0xcc9d in this case).

    #if defined MAKE_CRC_SHDW
    #pragma location="CRC_SHDW"
    //const CODE uint16 _crcShdw = 0xFFFF;
    const CODE uint16 _crcShdw = 0xcc9d;
    #pragma required=_crcShdw