Other Parts Discussed in Thread: UNIFLASH
Hello,
I want to debug step-by-step the mmwave demo code (DSP Version) for IWR6843 in CCS.
I saw couple of posts in the forum and these are the steps that I performed:
1) I first disabled the O3 optimization from the C:\ti\mmwave_sdk_03_02_01_02\packages\ti\common\mmwave_sdk.mak under R4F_CFLAGS (basically changed O3 to O0).
2) Followed the SDK build instructions as explained in the mmwave SDK user guide. I only recompiled the library for doppler processing.
- Run setenv.bat in C:\ti\mmwave_sdk_03_02_01_02\packages\scripts\window to setup the build environment
- Execute gmake all in the C:\ti\mmwave_sdk_03_02_01_02\packages\ti\datapath\dpc\dpu\dopplerproc directory.
3) After that I rebuilt both DSS and MSS projects in the CSS.
4) Set the breakpoint at line 1018 in C:\ti\mmwave_sdk_03_02_01_02\packages\ti\datapath\dpc\dpu\dopplerproc\src\dopplerprocdsp.c to see the doppler fft output and detection matrix in watch expressions.
5) Load the cssdebug .bin image into the board using the Uniflash. I then created the target configuration file and loaded the DSS and MSS images and finally ran the demo visualizer app.
Program keeps running and does not stop/halt at the breakpoint. Please let me know where am I going wrong?
After that, I also tried looking at the range FFT output received from the HWA. I disabled the O3 optimization of the file objdetrangehwa.c in the MSS project by {rightclick to the c-file --> show build settings --> Optimization --> change to O0). Rebuilt the project and then set the breakpoint at line 720 to see the rangeProcResult in the watch expressions. I ran the program using the demo visualizer app and sent the .cfg file but it gets hanged and I see nothing (no exception/termination reason) in the console window of CCS.
I also want to know if enabling the global breakpoint helps in debugging a multi-processor environment? As ideally we want when a breakpoint occurs, all the other processing cores (BSS, MSS, HWA) pause so nothing goes out of sync.
Regards,
Attiya