Open stc1988 opened 11 months ago
Your step 1 above doesn't say how to modify the manifest. I did this to eliminate the "memory full" error:
"creation":{
"static": 69152,
"chunk": {
"initial": 8192,
"incremental": 1024
},
"heap": {
"initial": 512,
"incremental": 64
},
"stack": 360
}
This is necessary because of esp32 manifest changes to support PSRAM.
There is one other problem. ESP-IDF v5 does't allow calling esp_partition_mmap
more than once for a given region. In IDF v4 this was allowed. The solution is to only instantiate the flash partition once in JavaScript. With the app works as usual. (We'll push this change shortly)
Your step 1 above doesn't say how to modify the manifest. I did this to eliminate the "memory full" error:
Sorry. Step1 is modification in config section.
I updated my branch to e95cde0 and successed to launch giphy app, but got an error message at downloadGIF
function.
/Users/satoshi/Projects/moddable/modules/files/flash/esp32/flash.c (53) # Break: Flash: can't find partition!
You didn't indicate the build target that you used. You indicate two possibilities above. I believe esp32/m5stack
builds and launches. I'm guessing that you used esp32/m5stack_core2
. I don't have either device with me, so I cannot test myself.
As a test, please try modifying $MODDABLE/build/devices/esp32/targets/m5stack_core2/sdkconfig/partitions.csv
to include an "XS" partition as shown:
nvs, data, nvs, 0x9000, 0x006000,
phy_init, data, phy, 0xf000, 0x001000,
factory, app, factory, 0x10000, 0x800000,
xs, 0x40, 1, 0x810000,0x400000,
Does that help?
I modified $MODDABLE/build/devices/esp32/targets/m5stack_core2/sdkconfig/partitions.csv
and got an another error.
/Users/satoshi/Projects/moddable/modules/files/flash/esp32/flash.c (127) # Break: map: map failed!
FYI, This app worked with esp32/m5stack_core2
two years ago.
https://x.com/stc1988/status/1401134611569078273?s=20
Build environment: macOS Moddable SDK version: 1918979 Target device: M5stack, M5stack core2
Steps to Reproduce
mcconfig -d -m -p esp32/m5stack
Other information release instrumented build
mcconfig -i -m -p esp32/m5stack
shows error.