trice icon indicating copy to clipboard operation
trice copied to clipboard

missing logs

Open ali-rostami opened this issue 8 months ago • 4 comments

Hi Thomas, I hope you are well.🙂 Thank you so much for your effort in this useful library.🙏

I want to print this: trice(" dsm-1 [0] %u: tracing_mark_write: B|1|task_transmit_status\n", DWT->CYCCNT); every 0.5 second in a log file. this is the command I use: trice l -p JLINK -args="-Device STM32G491RE -if SWD -Speed 50000 -RTTChannel 0" -pf none -ts ms -d16 -lf ./auto -hs off -color none -prefix none -liFmt off I also attached my triceConfig: triceConfig.zip My OS is Win 11.

1- I increased the segger's BUFFER_SIZE_UP to 4096. I Commented CPU sleep lines in my firmware. But still get this error: CYCLE: 216 not equal expected value 215 - adjusting. Now 6 CycleEvents I have no idea what else I should do. Would you please help me with what I'm doing wrong?

2- As you can see, I tried to prevent Trice from adding extra stuff (color, time...) to the lines but couldn't find a solution to remove the spaces at the beginning of the lines. In other words, it's like this: dsm-1 [0] 100003084: tracing_mark_write: B|1|task_transmit_status while I want it to be like this: dsm-1 [0] 100003084: tracing_mark_write: B|1|task_transmit_status So how can I do it?

ali-rostami avatar Jun 11 '24 12:06 ali-rostami