Closed coon42 closed 1 year ago
Seems uncontroversial to me. Did you intend to enable crash log in this PR and forgot? Either way is fine.
Yes, I left it out intentionally in this PR as it doesn't work anyway yet due to a canon bug: Assert Handler calls in RPs 1.6.0 firmware are mostly set to NULL which leads to a crash in Debug_Assert
function, as it expects a string with a description here. Thus the assert function crashes before our handler is called so a dump is never written to SD card.
However, this can be fixed by implementing a modified Debug Assert function on our own which checks the first param for being a nullptr and providing a default string in that case. By remapping it via MMU, canon firmware will use our fixed assert function which shouldn't crash anymore. However, this will be done in a future PR.
Once Assert handler is fixed, CONFIG_CRASH_LOG
can be enabled.
Those changes are required to make
CONFIG_CRASH_LOG
define work.