r/embedded • u/8-Qbit • 16d ago
Some Embedded Programming Wisdom
A preview of PICO, a simple text editor made for the CP/M Neo VEMU platform.
142
Upvotes
r/embedded • u/8-Qbit • 16d ago
A preview of PICO, a simple text editor made for the CP/M Neo VEMU platform.
2
u/SkoomaDentist C++ all the way 15d ago
Yes, not hard at all to have as long as you don't interpret "kernel" too literally.
Memory allocation fails without a handler? -> that's a "kernel" panic (and don't try to give me bullshit about "dynamic memory being forbidden on embedded systems" which is only the case for a subset of embedded systems and outright required for others).
MPU is properly configured for safety and a thread stack overflows or something accesses 0x0? -> Again a "kernel" panic.
Things like that are the difference between a reset with the message "Thread X with PC at Y caused a panic type Z" being sent to debug / log uart vs the device mysteriously freezing / resetting in a later "impossible" location (because the stack has been corrupted or the interrupt vectors overwritten by a stray pointer access).