-
-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
missing logs #472
Comments
Not sure, if your Your You could add the Also it could be interesting to to use the What you also can do: Use One more idea: Add your own cycle counter to the payload just to see what happens. That increases your Trices from 8 to 12 bytes. This could help you with the indent problem: -newlineIndent int
Force newline offset for trice format strings with line breaks before end. -1=auto sense (default -1) Good luck! EDIT: What exactly is your J-Link hardware? I am not 100% sure if all on-board J-Link adapters work perfect. Especially, when using them for long heavy load tests, it could happen, their inner buffers got "confused", so that I had to do a power cycle, to reset also the on-board J-Link adapter. What you could also test: Generate Trices every 100ms instead of 500ms. Maybe there is a hidden timeout. |
Thank you so much. Can I add something to the above command to restart the microcontroller? I also use PS: Yeah, as I said I also checked the PC task manager, everything seems fine.
I made these changes in |
That tells us, that the 32-bit code is ok.
One possible way is shown here: https://github.com/rokath/trice/tree/master/examples#animation. If I understand it right, the RTT data stay in the RTT up-buffer until the J-Link probe is started to read them out. When using parallel output (RTT and serial) and connecting delayed, the serial data are gone but it is possible to see the RTT data from the beginning, as long the up-buffer is not overwritten.
The Concerning the |
SORRY for the wrong hint concerning Please see this: ms@LenovoP51Win11 MINGW64 /e/repos/trice/examples/vsCode_NucleoF030R8_instrumented (experimentalProtectOption)
$ trice l -p jlink -args "-Device STM32F030R8 -if SWD -Speed 4000 -RTTChannel 0" -pf NONE -d16
Jun 15 23:07:16.719642 jlink: main.c 99
Jun 15 23:07:16.719642 jlink:
Jun 15 23:07:16.719642 jlink: ✨✨✨✨✨✨✨✨✨✨✨✨✨✨✨✨✨
Jun 15 23:07:16.719642 jlink: 🎈🎈🎈🎈 𝕹𝖀𝕮𝕷𝕰𝕺-F030R8 🎈🎈🎈🎈
Jun 15 23:07:16.719642 jlink: 🍃🍃🍃🍃🍃🍃🍃🍃🍃🍃🍃🍃🍃🍃🍃🍃🍃
Jun 15 23:07:16.719642 jlink:
Jun 15 23:07:16.719642 jlink:
Jun 15 23:07:16.720170 jlink: main.c 101 842,150_450 Hello! 👋🙂
Jun 15 23:07:16.720170 jlink: main.c 102 842,150_450 Hello! 👋🙂
Jun 15 23:07:16.720722 jlink: main.c 103 5_654 Hello! 👋🙂
Jun 15 23:07:16.720839 jlink: main.c 104 5_654 Hello! 👋🙂
Jun 15 23:07:16.720839 jlink: main.c 105 Hello! 👋🙂
Jun 15 23:07:16.720839 jlink: main.c 106 Hello! 👋🙂
6 times: Warning w wrn warning W WRN WARNING Warn warn WARN
7 times: Info i inf info informal I INF INFO INFORMAL
7 times: Timestamp tim time TIM TIME TIMESTAMP timestamp
7 times: Default DEFAULT default
ms@LenovoP51Win11 MINGW64 /e/repos/trice/examples/vsCode_NucleoF030R8_instrumented (experimentalProtectOption)
$ trice l -p jlink -args "-Device STM32F030R8 -if SWD -Speed 4000 -RTTChannel 0" -pf NONE -d16 -hs off -prefix off -li off -ts off
✨✨✨✨✨✨✨✨✨✨✨✨✨✨✨✨✨
🎈🎈🎈🎈 𝕹𝖀𝕮𝕷𝕰𝕺-F030R8 🎈🎈🎈🎈
🍃🍃🍃🍃🍃🍃🍃🍃🍃🍃🍃🍃🍃🍃🍃🍃🍃
Hello! 👋🙂
Hello! 👋🙂
Hello! 👋🙂
Hello! 👋🙂
Hello! 👋🙂
Hello! 👋🙂
6 times: Warning w wrn warning W WRN WARNING Warn warn WARN
7 times: Default DEFAULT default
ms@LenovoP51Win11 MINGW64 /e/repos/trice/examples/vsCode_NucleoF030R8_instrumented (experimentalProtectOption)
$ trice l -p jlink -args "-Device STM32F030R8 -if SWD -Speed 4000 -RTTChannel 0" -pf NONE -d16 -hs off -prefix off -li off
✨✨✨✨✨✨✨✨✨✨✨✨✨✨✨✨✨
🎈🎈🎈🎈 𝕹𝖀𝕮𝕷𝕰𝕺-F030R8 🎈🎈🎈🎈
🍃🍃🍃🍃🍃🍃🍃🍃🍃🍃🍃🍃🍃🍃🍃🍃🍃
842,150_450 Hello! 👋🙂
842,150_450 Hello! 👋🙂
5_654 Hello! 👋🙂
5_654 Hello! 👋🙂
Hello! 👋🙂
Hello! 👋🙂
6 times: Warning w wrn warning W WRN WARNING Warn warn WARN
7 times: Timestamp tim time TIM TIME TIMESTAMP timestamp
7 times: Default DEFAULT default
ms@LenovoP51Win11 MINGW64 /e/repos/trice/examples/vsCode_NucleoF030R8_instrumented (experimentalProtectOption) Everything seems to work fine. Could it be, your line |
Can we close this? |
Hi Thomas, sorry for my late response. thank you so much🙏 |
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?
The text was updated successfully, but these errors were encountered: