It seems no one is using Arduino software for M5Core2 :(
Best posts made by GoT
-
RE: How to debug backtrace under Arduino
Latest posts made by GoT
-
How to use the full size of the partition with PlatformIO?
Hi everyone,
I bought a M5Core2 with Flash 16MB and PSRAM 8MB, but with PlatformIO, I'm not able to use the whole space.
I created a partition csv file (see below), but it seems not really working well# Name, Type, SubType, Offset, Size, Flags nvs, data, nvs, 0x9000, 0x5000, otadata, data, ota, 0xe000, 0x2000, app, app, ota_0, 0x10000, 0xff0000,
I always receive this kind of errors:
.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: .pio/build/m5stack-core2/firmware.elf section `.flash.rodata' will not fit in region `drom0_0_seg' .platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: region `drom0_0_seg' overflowed by 247536 bytes
I really don't know what to do with that.
Without my little change, platformio returns:RAM: [ ] 1.8% (used 119212 bytes from 6553600 bytes) Flash: [== ] 20.9% (used 3485493 bytes from 16711680 bytes)
So I should have available spaces ^^'
Any idea?
-
RE: SD cart mount failed
Ok, I bypass the problem by using
SD.begin()
andSD.end()
each time I need to use SD methods -
SD cart mount failed
I'm facing a weird issue.
When I use theSD.exists
orSD.open
on different CPP files, everything works well, but when I click on the reset button, an error occurred.It's also happening when I try to save a file on the SD card twice.I have to remove and reinsert the SD card every time which is a little annoying.
What I'm trying to do is check if there is an SD card available, if yes, I can add a button to save the current game state, or I'm able to load the JSON stored on the SD card.
[ 1788][E][sd_diskio.cpp:199] sdCommand(): Card Failed! cmd: 0x00 [ 1788][E][sd_diskio.cpp:795] sdcard_mount(): f_mount failed: (3) The physical drive cannot work [ 2095][E][sd_diskio.cpp:199] sdCommand(): Card Failed! cmd: 0x00
Everything I do is public: https://github.com/PierreRambaud/pokegotchi/
I'm not sure it's the right approach as I started C/C++ one month ago.
https://github.com/PierreRambaud/pokegotchi/blob/master/src/main.cpp#L85
https://github.com/PierreRambaud/pokegotchi/blob/master/lib/Pokegotchi/Pokegotchi.cpp#L17 -
RE: How to debug backtrace under Arduino
It seems no one is using Arduino software for M5Core2 :(
-
How to debug backtrace under Arduino
Hi,
I'm a new user using an M5Core2 with the Arduino software as it's recommended in the documentation.
I'm facing an issue and I don't find any way to debug backtrace stack.
I tried with Esp Exception Decoder but I always receive this kind of exception:Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled. Core 1 register dump: PC : 0x400fb127 PS : 0x00060730 A0 : 0x800d1750 A1 : 0x3ffb1f30 A2 : 0xf3ef10b2 A3 : 0x00000064 A4 : 0x00000001 A5 : 0x3ffc8708 A6 : 0x3ffb8798 A7 : 0x00000018 A8 : 0x800fb14e A9 : 0x3ffb1ed0 A10 : 0x3ffb3500 A11 : 0x400fa95c A12 : 0x3ffb3524 A13 : 0x3ffb353c A14 : 0x00000001 A15 : 0x3ffc7a04 SAR : 0x0000001a EXCCAUSE: 0x0000001c EXCVADDR: 0xf3ef10d6 LBEG : 0x400f8d01 LEND : 0x400f8d14 LCOUNT : 0x00000000 ELF file SHA256: 0000000000000000 Backtrace: 0x400fb127:0x3ffb1f30 0x400d174d:0x3ffb1f50 0x400d1b9a:0x3ffb1f70 0x400d1e9d:0x3ffb1f90 0x401065bd:0x3ffb1fb0 0x4008b70a:0x3ffb1fd0
Is there a way to make these exceptions more human friendly? I don't know what to do with it, and it's funny because the ELF file is always
0000000000000000
. -
RE: How to run LVGL on M5Stack
@erich you did more than you think.
Feel free to ask when you will need it, if the M5Core2 is enough to run your program, I would be glad to help as you did -
RE: How to run LVGL on M5Stack
OMG, it works as expected! <3
If both of you have GitHub account, I'd be glad to add you as credit for the awesome help! -
RE: How to run LVGL on M5Stack
Thank you @macsbug , this is exactly what I add to edit in my lv_conf.h in order to make it works!
https://github.com/PierreRambaud/drawing-board/blob/master/drawing-board.ino#L4@erich I updated my repository, it now works, but not as expected. I've two issues:
- I'm not able to change the label text each time I press a button (the reason of the seg fault)
- I'm not able to draw on the right side like the lvgl take the wrong space, or the tft I don't know yet which one ^^'
After that, everything will be ok (at least for this first project)
As you said, a good platform for development is the key, I work with emacs for years, but I never configured it for C language.
I've Arduino software open beside, only to compile & transfer. -
RE: How to run LVGL on M5Stack
FYI, I correctly display a button, I have many things left to do next, like finding the reason why my DrawingBoard.cpp pointers are badly set, but in the end, you help me a lot!
Thanks again!For people reading this, I'll do my best to improve my GitHub repository in order to have a simple example for M5Core, explaining which parameters must be configured in lv_conf.h :)