Hello everyone
Can LOG messages, which are printed when the assert(), abort, panic()... functions are called, messages printed on JTAG, be redirected and sent somewhere else, e.g. via UDP?
Tnx
Redirect LOG messages over WiFi (UDP)
-
MicroController
- Posts: 2669
- Joined: Mon Oct 17, 2022 7:38 pm
- Location: Europe, Germany
Re: Redirect LOG messages over WiFi (UDP)
Thanks for the link.
I think that when abort(), assert(), panic()... UDP messages happen, they are no longer received. And I especially need messages when an error occurs, not the usual log messages
I think that when abort(), assert(), panic()... UDP messages happen, they are no longer received. And I especially need messages when an error occurs, not the usual log messages
-
RandomInternetGuy
- Posts: 82
- Joined: Fri Aug 11, 2023 4:56 am
Re: Redirect LOG messages over WiFi (UDP)
In general, once you've called panic() it's because the system is in an unrecoverable state. Panic is also not real picky about where it's called from because it's literally the end of the road. Being able to allocate network buffers and successfully transmit them from inside the interrupt handler that called panic because the system had 0 bytes of memory is inherently doomed. Even barfing out a UDP announcement from random context in unknown system state is crazy hard.
Error handling for system errors is inherently difficult. You'd be shocked to learn what server-class OSes have to do in order to be able to write a crash dump when the reason for the crash might be in the very disk driver you're using to write the crash to, for example.
You might get some of them at best, but it's generally a false sense of security.
Error handling for system errors is inherently difficult. You'd be shocked to learn what server-class OSes have to do in order to be able to write a crash dump when the reason for the crash might be in the very disk driver you're using to write the crash to, for example.
You might get some of them at best, but it's generally a false sense of security.
-
MicroController
- Posts: 2669
- Joined: Mon Oct 17, 2022 7:38 pm
- Location: Europe, Germany
Re: Redirect LOG messages over WiFi (UDP)
A core dump could help to provide crash information to forward after the reboot.
Who is online
Users browsing this forum: Amazon [Bot], Baidu [Spider], Bing [Bot] and 1 guest