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.

CCS/AWR1642BOOST: SBL DEBUG

Part Number: AWR1642BOOST
Other Parts Discussed in Thread: AWR1642

Tool/software: Code Composer Studio

I am in trouble in debugging AWR1642 SBL code with CCS.I can not use breakpoint to debug it,when i load program xwr16xx_sbl_mss.xer4f,and run it,it will keep running,but I can not debug it,i can not find main.c to make a breakpoint,and i dont know the instruction pointer the code run to.So,My problem is that how to debug my SBL code.

  • Hi,

    In the SDK SBL project provided in the form of makefile. So while debugging with CCS (loading *.xer4f) it may not find the source file (on load main.c) by itself. You need to map to a required source file path in the CCS so now it can link to source function.

    Optionally you can provide function name in the disassembly window of CCS (menu->View->disassembly) and put the breakpoint within the same window where while execution (run) CCS will halt on that function.

    SDK applications are mostly optimized (-o3), so while doing step by step debugging it may not proceed sequentially in the source file. 

    I assume you are doing the following

    1. flash ccsdebug.bin in flashing mode

    2. In functional mode, loading *.xer4f SBL image from CCS to device.

    After loading it should halt on first line of main.c, if after image load from CCS it doesn't halt at the beginning then you need to maunally halt the core from CCS and then reset the core from CCS, it will take control to the beginning of the application then you can proceed in the debugging.

    Regards,

    Jitendra

  • HI Jitendra,

    I followed the steps to run it,as what you said,it  didnt halt at begining,in the disassembly,when i make a point at address of main ,it didnt halt.And what is more,i use "System_printf()" to print messages,but it didnt work.there are no messages out on console view.To use The "System_printf()"  ,I add include <xdc/runtime/System.h>. hope your reply.thanks!

  • Hi,

    If it doesn't halt at first point after loading *.xer4f file from CCS then manual pause the execution, do core reset from CCS then reload the image file. This time it should halt at the beginning of main function. This is how I resolve at my end if it doesn't automatically halt at first point.

    And make sure that you have flashed ccsdebug.bin file before and then switch the device in SOP-4 mode (functional) to load *.xer4f from CCS.

    Regards,

    Jitendra