-
• #2
I think the M5 Stick doesn't have PSRAM at all. But still, should work without it.
Does it work for two minutes? If yes, than it might be a hardware issue (bad solder joint, dodgy cable, or anything like that) that only shows up when the board heats up.
Can you verify the hardware with arduino or micropython? -
• #3
The module is able to run arduino sketches for 10+ minutes. I have a second module that I could test.
-
• #4
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?
-
• #5
I am able to flash it. The key change is to set baud to 115k.
-
• #6
Curious to know if you made any progress, having the exact same issue on a M5StickC..
-
• #7
@user111255 which version did you tried and how did you flashed?
Can you please share some WebIDE output how your device behaves.
-
• #8
I just encountered the same problem:
____ _ | __|___ ___ ___ _ _|_|___ ___ | __|_ -| . | _| | | | | . | |____|___| _|_| |___|_|_|_|___| |_| espruino.com 2v06.10 (c) 2019 G.Williams Espruino is OpÿE (520) psram: ESP32PICOD4 do not support psram yet E (520) spiram: SPI RAM enabled but initialization failed. Bailing out.
I cannot see find an option to disable spiram during the build except in the
sdkconfig
file which is generated and says DO NOT EDIT? -
• #9
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 ?
-
• #10
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.
-
• #11
Sorry, misunderstanding.
'y' means it should skip the error/reset in case of missing PSRAM -
• #12
I tried flashing my M5stickC and I don't seem to get any issues.
Found ESP32, 2v06.630 > Connected to /dev/ttyUSB0 >reset() =undefined WARNING: Scan stop failed WARNING: set rssi scan not implemeted yet ____ _ | __|___ ___ ___ _ _|_|___ ___ | __|_ -| . | _| | | | | . | |____|___| _|_| |___|_|_|_|___| |_| espruino.com 2v06.630 (c) 2019 G.Williams Espruino is Open Source. Our work is supported only by sales of official boards and donations: http://espruino.com/Donate >
Then again I just compiled the firmware from the tip of the master branch, so maybe the issue has been fixed since then?
-
• #13
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?
-
• #14
Yeah, it runs the blinky the whole while (red LED is at pin 10 if you want to try it out).
-
• #15
Will do. Did you build it yourself or get it from the latest build archive?
-
• #16
I built it myself :)
-
• #17
@parasquid, which version of ESP-IDF did you use ?
-
• #18
I'm not really sure, how do I find out? I just used the
scripts/provision.sh ESP32
line for building.Looking at the script, it looks like this one:
curl -Ls https://github.com/espruino/EspruinoBuildTools/raw/master/esp32/deploy/esp-idf.tgz | tar xfz - --no-same-owner
(commit message says it's 3.1.3)
-
• #19
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.
-
• #20
I might have just jinxed myself because now I'm getting all these problems too :D
-
• #21
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
-
• #22
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.
-
• #24
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?
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?