Show newer

To conserve battery power, Sensors don't always listen for incoming packets ... They listen for a few seconds then go back to sleep. 😴 LoRa Receive Timeout is the last thing we shall implement for

github.com/lupyuen/bl_iot_sdk/

Show thread

Back to our Stack Trace ... Yep the Correct Stack Trace is indeed lurking behind our (unhelpful) Exception Stack Trace ... How shall we show the Correct Stack Trace beyond the Emptiness? 🤔

gist.github.com/lupyuen/5ddbcd

Show thread

Answer: "radio_events" contains Undefined Fields ... Because it was allocated on the Stack! Lesson Learnt: ALWAYS Init Stack Variables! 🙏

github.com/apache/mynewt-core/

Show thread

Below the Exception Handler Stack ... Is another Stack! ... Does this Stack contain the Stack Trace that we need? 🤔

gist.github.com/lupyuen/5ddbcd

Show thread

So "Tech Influencer" is a thing now? 🤔 ... My followers will get so frustrated by my super long and convoluted posts 😂

Oops needs us to "make clean ; make" to fix up the Stack Frame Pointers ... Now BL602 Stack Trace points to the "ebreak" instruction ... Which belongs to the Exception Handler 🙄

github.com/lupyuen/bl_iot_sdk/

Show thread

shows Stack Trace when CONFIG_ENABLE_FP=1 ... But the addresses don't make sense ... They belong to the code that's dumping the Stack Trace 🤔

github.com/lupyuen/bl_iot_sdk/

Show thread
Show older
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.