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.

IWR6843AOPEVM: Outputting debug statements from DPUs over UART

Part Number: IWR6843AOPEVM
Other Parts Discussed in Thread: MMWAVEICBOOST

Tool/software:

Hello,

Is there any way to print any debug information from within the DPUs that will be outputted over UART to a computer?  I would like to print out the values of some variables while the AoA DPU is executing, but I can't seem to find a way to do it.

From the schematic of the IWR6843AOPEVM, it looks like AR_DSS_LOGGER is not hooked up, so I used the Mailbox to send messages from the DSS to the MSS.  This works well within dss_main.c.  However, when I write to the Mailbox from within the DPM task (i.e., from any DPUs), I see the print statement when it has been outputted over UART, but the DPM seems to have halted execution of the rest of the chain.

I have also tried issuing a DPM_ioctl from within the DPU that contains the string to be printed, but it also causes the DPM to halt execution.

Would you know of any workaround to this issue?  Thanks!

  • Hello, 

    Do you also have the MMWAVE-ICBOOST board? If so, you can connect and run the demo through CCS via JTAG and write debug print statements to the CCS console, or you can place breakpoints and view the variable values in memory directly, etc... I think this would be the easiest option. 

    Alternatively, you could utilize any of the memory which is shared between dss and mss (L3, HSRAM, etc...) and write values there from the DSS and then access and output them from the mss. 

    Best Regards,
    Josh

  • Hi Josh,

    I currently don't have a MMWAVE-ICBOOST board, but your second solution (to send data between the DSS and MSS over shared memory) worked for me!  I'm able to successfully send arbitrary debug information from the DSS to the MSS.

  • Hi, 

    I'm glad you are able to work around the issue. I will close this thread now. I still think you should strongly consider obtaining an MMWAVEICBOOST board to assist in your development. It can save you quite a bit of time when debugging because you don't need to reflash the board to test your new changes and it allows you to be able to place breakpoints, step through the code, view the values in memory, etc... 

    Best Regards,

    Josh