Replies: 3 comments 2 replies
-
Without an MCVE there's not much more than generic things I could suggest. Possibly there's some power/CPU limitation on the XAIO? We're running at 133MHz by default, which is w/in the Rp2040 spec but maybe isn't in the XAIO's limits due to power or something? Could it be an uninitted global variable? On a reboot it would hold the same value as it held before reboot, which would probably be good. But on a power cycle it could contain garbage. You should also be able to restart and debug using SWD. Just |
Beta Was this translation helpful? Give feedback.
-
Thanks for your input - I'm working through even more of my code to attempt to pin it down. The XIAO does handle 133Mhz fine, and actually I was overclocking this project to 200mhz for months previously without any apparent issues; dropping it back to the standard speed doesn't make any difference, anyway. Uninitialised variables somewhere might make some sense, I've already fixed a couple of cases of those but without any improvement, I'll continue looking for more. I've found that if I disable the screen functionality of my program then it will come back up after a cold boot OK, so I guess it seems likely that the problem is there somehow, whether in the code or something else. Thanks for your help so far... back to debugging now! |
Beta Was this translation helpful? Give feedback.
-
Latest finding after laboriously stepping through the code is that its crashing when the TFT_eSPI library is attempting to pgm_read_word the font bitmap from an address of 0x69617661... I don't know how the flash RAM is memory mapped on this architecture but this strikes me as odd. I still don't understand why this has only started being a problem recently, but I'll open an issue with on the TFT_eSPI repo to see if I can get any further insight there! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello! First off, thanks for all your hard work on this project!
I've been working on a project on Seeed XIAO RP2040 since February, and it was going pretty well - I was using a version of the framework and packages and libraries from around February 10th-ish, I think.
I started running into some weird crashes a couple of weeks ago, and got a raspberry debug probe to try and figure out what the problem was. I got that debugging working, but couldn't find the cause of the problem due to corrupt stack traces after an isr_hardfault.
Frustrated with this, I tried updating/reinstalling packages and libraries, hoping to maybe find a fix - but now I've got even stranger problems! Hope someone can maybe give me some ideas what's going on here.
In short, I seem to be getting crashes during task initialisation, but its a bit weird:-
I'm really stuck as to what could be causing this behaviour and how I could go about diagnosing and solving it. I'm not even sure if the framework is the right place to be looking for problems with this, or whether the platform is more appropriate? Any ideas or help much appreciated!
(In case looking at my project code and platformio config helps, its here: https://github.com/doctea/Microlidian)
Beta Was this translation helpful? Give feedback.
All reactions