Replies: 4 comments 3 replies
-
Unfortunately, I don't have M5Stack Fire. @washishi |
Beta Was this translation helpful? Give feedback.
-
i tried it M5Stack_Fire seems to have 7 revisions What I have is v2.6 of 2021.8 with 8MB of PSRAM What else can I try? |
Beta Was this translation helpful? Give feedback.
-
I tryed instrumented build. serial log--- idf_monitor on /dev/ttyACM0 115200 --- --- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H --- ets Jul 29 2019 12:21:46rst:0x1 (POWERON_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT) entry 0x400805d8 I (0) cpu_start: App cpu up. assert failed: 0x4011bfea Backtrace: 0x400819b1:0x3ffe3b80 0x4008afa5:0x3ffe3ba0 0x40090ad5:0x3ffe3bc0 0x4011bfea:0x3ffe3c00 0x400d1a79:0x3ffe3c20 0x40081449:0x3ffe3c60 0x40079216:0x3ffe3c90 |<-CORRUPTED 0x4008afa5: esp_system_abort at /home/stackchan/Projects/esp32/esp-idf/components/esp_system/esp_system.c:128 0x40090ad5: __assert_func at /home/stackchan/Projects/esp32/esp-idf/components/newlib/assert.c:47 0x4011bfea: esp_startup_start_app at /home/stackchan/Projects/esp32/esp-idf/components/freertos/port/xtensa/port.c:492 (discriminator 1) 0x400d1a79: start_cpu0_default at /home/stackchan/Projects/esp32/esp-idf/components/esp_system/startup.c:454 (discriminator 3) 0x40081449: call_start_cpu0 at /home/stackchan/Projects/esp32/esp-idf/components/esp_system/port/cpu_start.c:632 ELF file SHA256: e06262af41f42925 Entering gdb stub now. For help, type "help". Then I changed sdkconfig.defaults and ran serial log--- idf_monitor on /dev/ttyACM0 115200 --- --- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H --- ets Jul 29 2019 12:21:46rst:0x1 (POWERON_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT) entry 0x400805d8 I (0) cpu_start: App cpu up. |
Beta Was this translation helpful? Give feedback.
-
I reverted my sdkconfig.defaults and added CONFIG_ESP_INT_WDT=y
It worked fine! serial log--- idf_monitor on /dev/ttyACM0 115200 --- --- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H --- ets Jul 29 2019 12:21:46rst:0x1 (POWERON_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT) entry 0x400805d8 I (0) cpu_start: App cpu up. My Fire should have 8MB of PSRAM, so why doesn't it say 8MB? I looked it up and found this entry I'm glad I was of help |
Beta Was this translation helpful? Give feedback.
-
I recently noticed that the M5 Stack Fire has a PSRAM chip. Now that PSRAM works on M5Stack Core2 it seems worth trying to get it working on M5Stack Fire also. The ESP32 in M5Stack Fire I have is a revision 1, which requires some extra settings to use the PSRAM. I've put together the changes to support that base, in part, on the work done here.
It seems to work! But, I've always found the M5Stack Fire to be a bit fragile and the revision 1 changes have lots of options: I'm not sure I've set them all correctly.
I'd appreciate it if some other M5Stack Fire users could give it a try. I think @washishi and @stc1988 may both have access to M5Stack Fire hardware.
To try this, you need need to change just two files:
moddable/build/devices/esp32/targets/m5stack_fire/manifest.json
Lines 2 to 5 in 2420f19
Add this line:
sdkconfig.defaults
If you have applied the changes correctly, the Instruments panel in xsbug should show about 4,400,000 bytes of free system memory (!!) when running the helloworld example.
I've recently learned that there is at least one revision of the M5Stack Fire hardware. It uses different display. It wonder if it might also use a different ESP32 (revision 3, for example). The revision 1 workarounds should still be safe on revision 3 hardware. It would be good to confirm that.
If you can help verify that these changes work reliably on M5Stack Fire, we can merge them so they are available to everyone by default. Thank you!!
Beta Was this translation helpful? Give feedback.
All reactions