Nightmare bug from Hell: identical code, identical hardware. Works when compiled under Keil. Fails when compiled under IAR.
The app in question is a vendor-provided "sample app" using the vendor's own (uncommented, undocumented) "application framework" that has more Callback Hell than a Node.js application.
All of it uncommented.
After a week (!) of piecing through the code in Keil and IAR interlaced, finally figured out the RTC isn't firing for some reason in IAR.
Happy happy joy joy joy.
Generic Mastodon server, open for registrations.