Hello everybody,
I am using the loggerSM module to write and read events in my shared memory.
Work on DSP C6678, only 2 cores used :
1 core running on a uClinux environment
1 core running on a SYS/BIOS environment
- For this, I first write in a SYS/BIOS environment (CCS project : xdctools_3_25_05_94, bios_6_37_01_24, uia_1_04_00_06) few events (2 tasks, semaphores, SWIs) in shared memory.
- Then I want to retrieve the logs from a uClinux environment and have a binary file to use it later on System Analyzer. For that I ported the evmti816x loggerSM example provided by TI (using the loggerSM_dumpSharedMem and loggerSM_run function).
The goal is to use the binary file in System Analyzer (Execution Graph).
Here is my problem:
- When I first write logs in shared memory, I can see thanks to the Memory Browser that my logs are correctly written (using both decode = true and false).
- After that I run on my evaluation board (DSP C6678) my uClinux app that read and save events in a file. When I write them with decode = true, the file has all the events successfully saved.
- However with the decode = false, the binary file generated is not big enough. I explain, in my app I made a printf that shows me the number of bytes to write (corresponding to all the events). I have numBytes = 60104 but the size of the output binary file is only 528 bytes.
Plus I compared these 528 bytes with what I have in my memory thanks to the Memory Browser and they are the same.But not all logs are in the binary file.
Finally when I try to open my binary file in CCS System Analyzer, I have no records detected.
So could you help me to solve this problem, thanks.
Nadim