M5StickC (ESP32 based) gives psram error-infinite reboots #7406
Replies: 1 comment
-
Posted at 2019-11-25 by AkosLukacs I think the M5 Stick doesn't have PSRAM at all. But still, should work without it. Posted at 2019-11-25 by Will The module is able to run arduino sketches for 10+ minutes. I have a second module that I could test. Posted at 2019-11-25 by DamianMontero I'll test it. I have one at home. I haven't been able to flash it. It always tries and never connects. Did you have this issue WIll? Posted at 2019-11-26 by Will I am able to flash it. The key change is to set baud to 115k. Posted at 2020-04-10 by user111255 Curious to know if you made any progress, having the exact same issue on a M5StickC.. Posted at 2020-04-11 by @MaBecker @user111255 which version did you tried and how did you flashed? Can you please share some WebIDE output how your device behaves. Posted at 2020-06-29 by jeffmer I just encountered the same problem:
I cannot see find an option to disable spiram during the build except in the Posted at 2020-06-29 by JumJum The only way, I know is to change sdkconfig CONFIG_SPIRAM_IGNORE_NOTFOUND=y should manage the problem May be pico board is not supported well from esp-idf ? Posted at 2020-06-29 by jeffmer Thanks, its currently set to 'y' so I assume you mean to set this to blank. Will try and report back. The M5StickC works well with Arduino, so I will see if I can find the sdkconfig file that they use for the pico and compare it. Posted at 2020-06-29 by JumJum Sorry, misunderstanding. Posted at 2020-06-30 by parasquid I tried flashing my M5stickC and I don't seem to get any issues.
Then again I just compiled the firmware from the tip of the master branch, so maybe the issue has been fixed since then? Posted at 2020-06-30 by jeffmer Initially, mine worked for up to 5 minutes and then if I left it connected in went into a continuous reboot. Does yours stay up for a long time? Posted at 2020-06-30 by parasquid Yeah, it runs the blinky the whole while (red LED is at pin 10 if you want to try it out). Posted at 2020-06-30 by jeffmer Will do. Did you build it yourself or get it from the latest build archive? Posted at 2020-06-30 by parasquid I built it myself :) Posted at 2020-06-30 by JumJum @parasquid, which version of ESP-IDF did you use ? Posted at 2020-06-30 by parasquid I'm not really sure, how do I find out? I just used the Looking at the script, it looks like this one: (commit message says it's 3.1.3) Posted at 2020-06-30 by parasquid Ahh, I think I may have just triggered it. It looks like since it's being displayed some time before I can connect via serial, I miss the message. I just saw the tip of the message that says SPI RAM enabled but initialization failed. Posted at 2020-06-30 by parasquid I might have just jinxed myself because now I'm getting all these problems too :D Posted at 2020-06-30 by parasquid I've just flashed the same binary to my m5 atom matrix https://docs.m5stack.com/#/en/core/atom_matrix which also has a pico-d4 but this one is stable and has been running the neopixel code https://www.espruino.com/WS2811#software for about 10 minutes now. I'm not sure what the difference between the two are, except that one has a battery and the other doesn't. For what it's worth, here's the product link for the m5stickc: https://docs.m5stack.com/#/en/core/m5stickc Posted at 2020-06-30 by jeffmer I am beginning to suspect that it may be something to do with not initialising the AXP192 power management unit properly in the M5StickC that is causing the reset loop. The Atom does not have one. Posted at 2020-06-30 by @MaBecker Hi jeffmer,
Do they run some init routine for the AXP192? For Espruino it is possible to convert cpp code into a APX192 module. If this is helps to get ride of those reboots. Posted at 2020-07-01 by parasquid I charged the M5StickC overnight and ran the AXP192 sample sketch throughout. When the voltage reached around 4v I flashed Espruino and ran the blinky sketch. When I first ran the AXP182 sample sketch, I saw that the battery voltage was just around 3v. It looks like things are stable now, so maybe it could be because Espruino was trying to use too much power that the power management IC tried to restart the mcu? Posted at 2020-07-01 by jeffmer If you have had no problems with the Atom, it certainly looks like the AXP192 needs to be initialised. Among other things, it powers the RTC which can reset the ESP32. I plan to test some initialisation code based on the Arduino class - as @MaBecker suggests - when I get a chance. Posted at 2020-07-01 by parasquid I charged my M5StickC to full and flashed a blinky sketch. It's been working just fine (including console log of the time) for hours now. Have you tried charging yours fully? It would be nice to get some bindings with the AXP192 though, as it also controls the backlight of the LCD :P It's using the st7735 but without the backlight getting power, we can't see anything on the screen (or at least that's what I think; maybe I'm just using the lcd wrong). Would also be nice if we can somehow get something like https://www.espruino.com/Reference#l_NRF_getBattery working through the power management chip :P Posted at 2020-07-01 by jeffmer This initialisation code seems to work - it turns the backlight on, charges the battery etc. Needs to be put into a module when time permits. You can get the battery voltage and current using
Posted at 2020-07-01 by parasquid Thanks, I can confirm this does indeed activate the power management functions and allows the USB to charge the battery :) Posted at 2020-07-03 by @MaBecker Have a look at this module used for a specific hardware design as a starting point for creating a m5s, m5c or m5a module. Posted at 2020-07-14 by @MaBecker This is what I just started for a M5StickC:
Posted at 2020-07-15 by parasquid Is there a way to create a custom .hex that runs code on startup? I know we can add modules ourselves so it's already available in the firmware without internet access, but in this case can we automatically add code to .boot1 for example during the .hex flashing process? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2019-11-25 by Will
I am unable to get the ESP32 image (V2.04 or V1.99) to run on M5StickC.
It will stay up for about 2 mins, then cycles into infinite loop. Based on some googleing I believe the solution might be that I have to compile my own build without he PSRAM option?
Beta Was this translation helpful? Give feedback.
All reactions