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.

MCU-PLUS-SDK-AM273X: ccs debug rangeproc under dpu

Part Number: MCU-PLUS-SDK-AM273X

Hi team,

Here's an issue from the customer may need your help:

1) Use ccs to debug the datapath- in mmware mcuplus sdk, the test example in rangeproc, and the compilation passed successfully. Load the compiled am273x_rangeprochwa_mss.xer5f file to memory for debugging using the Load Program in Launch Selected Configure in ccs. "Error: Cannot open rangeprochwa_test_am273x_cplx.bin" is prompted during the run. The corresponding file is not open. The 1371 line in the hwa_main.c code uses the fopen function to open the resource file in the relative path testdata directory in the SDK on pc. Code runs in memory on the development board, there is no file system support on the development board, how to find and open this file that is stored externally on computer during the board debug process?

2) Direct debugging of am273x_rangeprochwa_mss.xer5f with ccs is not supported by source code debugging, how to associate to the corresponding source code for single-step debugging and set breakpoints?

Could you help check this case? Thanks.

Best Regards,

Cherry

  • Hi Cherry,

    We have assigned this thread to expert. Please expect a reply shortly. Please feel free to ping if you don't see a response.

    ~Prasad

  • Hi Cherry,

    A file system isn't needed on AM273 for this example. When connected with JTAG, fopen call on the target can read files on the PC to which it is connected. If you have moved am273x_rangeprochwa_mss.xer5f to a different folder after building it, please ensure that the testdata/ subfolder in the test folder of the DPU is also copied to the same location, and it should work.

    2) Direct debugging of am273x_rangeprochwa_mss.xer5f with ccs is not supported by source code debugging, how to associate to the corresponding source code for single-step debugging and set breakpoints?

    I'm afraid I do not understand this question. CCS does support loading .xer5f files on AM273x R5 core, and supports all standard debug functionality such as single step, adding breakpoints, viewing memory, etc. Could you explain a little more about the functionality needed that is missing from CCS?

    Regards,

    Aayush

  • Hi Aayush,

    Thanks for your help!

    Please let me clarify:

    1) Start ccs first, launch selected configuration:

    2) Then connecting the H/W.

    3) Then load the mmwave_mcuplus_sdk_04_02_00_02/ti/demo/am273x/mmw/am273x_mmw_demo_mssTDM.xer5f file into memory:

    The code is located at the 0x0000000 address,  and the corresponding function is Board_deinit, as shown below:

    For the single step mode, they've debugged one step, as shown below:

    No source available for "_c_int00() at /mnt/work/ti/mmwave_mcuplus_sdk/mmwave_mcuplus_sdk_04_02_00_02/ti/demo/am273x/mmw/am273x_mmw_demo_mssTDM.xer5f:{3} 0x102aa7e4{4}"

    And it reports No source files are available, the customer would like to know how to set the breakpoint to the main function in the mms_main.c file and then do a single step debug? 

    Thanks and regards,

    Cherry

  • Hi Cherry,

    Breakpoints can be set in the disassembly window (in CCS use view->disassembly) and search for any function name to set the breakpoint.

    CCS target configuration itself can also be programmed to pause directly at main. You can right click the target configuration file ->Properties->auto run and load, and set the "run to symbol field" to main.

    Also, in case CCS is not able to automatically find the source file, the "locate file" button can be used to manually point CCS to the source file where a particular function exists.

    Regards,

    Aayush