Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Build] Add ESP32-C6 MAX builds (preliminary) #4997

Merged
merged 3 commits into from Mar 24, 2024

Conversation

tonhuisman
Copy link
Contributor

@tonhuisman tonhuisman commented Mar 2, 2024

From a Forum request

Features:

  • ESP32-C6 8M1M MAX ETH build
  • ESP32-C6 16M8M MAX ETH build
  • Re-enable Neopixel plugins for ESP32-C6 (tested using the on-board Neopixel led, P128 Neopixel BusFX and P131 NeoMatrix)
  • Update/correct documentation

NB: These configurations are preliminary, as we may need to change the Flash partitioning to support the Zigbee/Thread protocol and configuration supported by the ESP32-C6!

TODO:

  • Testing by requester

@TD-er TD-er merged commit 6775abd into letscontrolit:mega Mar 24, 2024
170 checks passed
@tonhuisman tonhuisman deleted the feature/Build-add-C6-max-builds branch March 24, 2024 22:07
@plin2
Copy link

plin2 commented Apr 13, 2024

Well, I'm not the requestor but I tried to install an ESPEasy version on my new ESP32-C6 N16. It won't start regularly and ends up in a rebooting loop.


--- Hardware ---
ESP32-C6 N16
see https://de.aliexpress.com/item/1005006749538681.html


--- Binary ---
ESPEasy-all-Binaries-20240407_PR_5029_8589770517\bin\ESP_Easy_mega_20240407_max_ESP32c6_16M8M_LittleFS_CDC_ETH.factory.bin

--- Log ---
Rebooting...
Guru Meditation Error: Core 0 panic'ed (Store access fault). Exception was unhandled.

Core 0 register dump:
MEPC : 0x421d736c RA : 0x421d7736 SP : 0x4087e070 GP : 0x4080df64
TP : 0x00000000 T0 : 0x421d7354 T1 : 0xffffffe0 T2 : 0x00000007
S0/FP : 0x0000000a S1 : 0x4081a000 A0 : 0x00000000 A1 : 0x00000000
A2 : 0x0000000d A3 : 0x40813b30 A4 : 0x4081a000 A5 : 0x00000000
A6 : 0x40808298 A7 : 0x4080836a S2 : 0x00000000 S3 : 0x00000000
S4 : 0x40812000 S5 : 0x40812000 S6 : 0x40812000 S7 : 0x40813074
S8 : 0x42234000 S9 : 0x42239000 S10 : 0x00000100 S11 : 0x00000010
T3 : 0x4081c678 T4 : 0x00000000 T5 : 0x00000010 T6 : 0x00000011
MSTATUS : 0x00001881 MTVEC : 0x40800001 MCAUSE : 0x00000007 MTVAL : 0x00000152
MHARTID : 0x00000000

Stack memory:
4087e070: 0x40812000 0x40812000 0x40812000 0x40812000 0x4081a000 0x408107e8 0x4081c460 0x421d7736
4087e090: 0x4081a000 0x4081a000 0x00000001 0x0000000a 0x4081a000 0x408107e8 0x4081c460 0x42003b58
4087e0b0: 0x4081249c 0x42202000 0x00000014 0x40803072 0x00000100 0x42239000 0x42234000 0x40813074
4087e0d0: 0x40812000 0x40812000 0x40812000 0x40812000 0x4081249c 0x42202000 0x4081c43c 0x4213d434
4087e0f0: 0x4081b4d4 0x40880000 0x4081a650 0x00000007 0x0001c200 0x00000011 0x00000010 0x00000000
4087e110: 0x00000100 0x00000200 0x00000000 0x00004e20 0x0800001c 0x00000007 0x0001c200 0x00000011
4087e130: 0x00000010 0x00000000 0x00000100 0x00000200 0x00000000 0x00004e20 0x0800001c 0x4081a000
4087e150: 0x00001800 0x0000000c 0x00000000 0x40803042 0x408145cc 0x4223639c 0x00000000 0x4080aa98
4087e170: 0x408145cc 0x4223639c 0x00000000 0x421d883a 0x00000000 0x00000003 0x00000006 0x00000000
4087e190: 0x00000000 0x00000000 0x0005baf8 0x001d893c 0x00070020 0x40802a9a 0x42000000 0x408151b4
4087e1b0: 0x42237000 0x4223ab14 0x4223ab14 0x4214682e 0xffff0000 0x00000000 0x00700000 0x42147f5e
4087e1d0: 0x00070020 0x40802a9a 0x42000000 0x421e0000 0x0000004d 0x0000000c 0x0000004d 0x40802c0e
4087e1f0: 0xffff0000 0x4223bb17 0x421d895b 0x02625a00 0xffff0000 0x4223bb17 0x421d895b 0x4086f5fc
4087e210: 0x00000000 0x001e0000 0x00010020 0x00070020 0x421e0020 0x42000020 0x0005baf8 0x001d893c
4087e230: 0x00000000 0x00000000 0x00000000 0x40880000 0x00002f08 0x4004b05c 0x0000ffff 0xffffffff
4087e250: 0x00000000 0x4087e3a0 0x00000000 0x4086f85e 0xffec44e3 0x00010000 0x00400000 0x00010000
4087e270: 0x400206e9 0x40802a9a 0x000000ee 0x0000000d 0x00ffff00 0x00000000 0x421e0020 0x0005baf8
4087e290: 0x40800000 0x000044f8 0x42000020 0x001d893c 0x408044f8 0x00009264 0x4080d760 0x00002f6c
4087e2b0: 0x50002000 0x00000048 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
4087e2d0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
4087e2f0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00010020 0x0006bb20
4087e310: 0x00070020 0x00248964 0x00251bd0 0x00254b44 0x00000000 0x00000000 0x00000000 0x00000000
4087e330: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00244b90 0x00000000
4087e350: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
4087e370: 0x00002f08 0x4004b05c 0x0000ffff 0x40880000 0x00000000 0x0000005a 0x00002f10 0x4086c478
4087e390: 0x1c0457a3 0xf9afcd1c 0x00000000 0x00000000 0x0000e000 0x00002000 0x00000000 0x00000000
4087e3b0: 0x00000000 0x00000000 0x00010000 0x00400000 0x00410000 0x00400000 0x00000000 0x00000000
4087e3d0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
4087e3f0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
4087e410: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
4087e430: 0x00000000 0x00000000 0x00000002 0x00000000 0x00000000 0x0000005a 0x00002f10 0x4001b1c0
4087e450: 0xbe22efe8 0x280631ee 0x407bcb3f 0x00000000 0x296f6ee9 0x00000000 0x00010000 0x400203e9

ELF file SHA256: c9d8af71c1efb3cb

Rebooting...


--- Binary ---
ESPEasy-all-Binaries-20240407_PR_5029_8589770517\bin\ESP_Easy_mega_20240407_max_ESP32c6_16M8M_LittleFS_CDC_ETH.factory.bin

--- Log ---
ELF file SHA256: f5404b01584cce27

Rebooting...
Guru Meditation Error: Core 0 panic'ed (Store access fault). Exception was unhandled.

Core 0 register dump:
MEPC : 0x421d736c RA : 0x421d7736 SP : 0x4087e070 GP : 0x4080df64
TP : 0x00000000 T0 : 0x421d7354 T1 : 0xffffffe0 T2 : 0x00000007
S0/FP : 0x0000000a S1 : 0x4081a000 A0 : 0x00000000 A1 : 0x00000000
A2 : 0x0000000d A3 : 0x40813b30 A4 : 0x4081a000 A5 : 0x00000000
A6 : 0x40808298 A7 : 0x4080836a S2 : 0x00000000 S3 : 0x00000000
S4 : 0x40812000 S5 : 0x40812000 S6 : 0x40812000 S7 : 0x40813074
S8 : 0x42234000 S9 : 0x42239000 S10 : 0x00000100 S11 : 0x00000010
T3 : 0x4081c678 T4 : 0x00000000 T5 : 0x00000010 T6 : 0x00000011
MSTATUS : 0x00001881 MTVEC : 0x40800001 MCAUSE : 0x00000007 MTVAL : 0x00000152
MHARTID : 0x00000000

Stack memory:
4087e070: 0x40812000 0x40812000 0x40812000 0x40812000 0x4081a000 0x408107e8 0x4081c460 0x421d7736
4087e090: 0x4081a000 0x4081a000 0x00000001 0x0000000a 0x4081a000 0x408107e8 0x4081c460 0x42003b58
4087e0b0: 0x4081249c 0x42202000 0x00000014 0x40803072 0x00000100 0x42239000 0x42234000 0x40813074
4087e0d0: 0x40812000 0x40812000 0x40812000 0x40812000 0x4081249c 0x42202000 0x4081c43c 0x4213d434
4087e0f0: 0x4081b4d4 0x40880000 0x4081a650 0x00000007 0x0001c200 0x00000011 0x00000010 0x00000000
4087e110: 0x00000100 0x00000200 0x00000000 0x00004e20 0x0800001c 0x00000007 0x0001c200 0x00000011
4087e130: 0x00000010 0x00000000 0x00000100 0x00000200 0x00000000 0x00004e20 0x0800001c 0x4081a000
4087e150: 0x00001800 0x0000000c 0x00000000 0x40803042 0x408145cc 0x422363ac 0x00000000 0x4080aa98
4087e170: 0x408145cc 0x422363ac 0x00000000 0x421d883a 0x00000000 0x00000003 0x00000006 0x00000000
4087e190: 0x00000000 0x00000000 0x0005bb08 0x001d893c 0x00070020 0x40802a9a 0x42000000 0x408151b4
4087e1b0: 0x42237000 0x4223ab24 0x4223ab24 0x4214682e 0xffff0000 0x00000000 0x00700000 0x42147f5e
4087e1d0: 0x00070020 0x40802a9a 0x42000000 0x421e0000 0x0000004d 0x0000000c 0x0000004d 0x40802c0e
4087e1f0: 0xffff0000 0x4223bb27 0x421d895b 0x02625a00 0xffff0000 0x4223bb27 0x421d895b 0x4086f5fc
4087e210: 0x00000000 0x001e0000 0x00010020 0x00070020 0x421e0020 0x42000020 0x0005bb08 0x001d893c
4087e230: 0x00000000 0x00000000 0x00000000 0x40880000 0x00002f08 0x4004b05c 0x0000ffff 0xffffffff
4087e250: 0x00000000 0x4087e3a0 0x00000000 0x4086f85e 0xffec44f3 0x00010000 0x00400000 0x00010000
4087e270: 0x400206e9 0x40802a9a 0x000000ee 0x0000000d 0x00ffff00 0x00000000 0x421e0020 0x0005bb08
4087e290: 0x40800000 0x000044e8 0x42000020 0x001d893c 0x408044e8 0x00009274 0x4080d760 0x00002f6c
4087e2b0: 0x50002000 0x00000048 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
4087e2d0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
4087e2f0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00010020 0x0006bb30
4087e310: 0x00070020 0x00248964 0x00251be0 0x00254b54 0x00000000 0x00000000 0x00000000 0x00000000
4087e330: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00244ba0 0x00000000
4087e350: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
4087e370: 0x00002f08 0x4004b05c 0x0000ffff 0x40880000 0x00000000 0x0000005a 0x00002f10 0x4086c478
4087e390: 0x0c045fa3 0x79abcd9c 0x00000000 0x00000000 0x0000e000 0x00002000 0x00000000 0x00000000
4087e3b0: 0x00000000 0x00000000 0x00010000 0x00400000 0x00410000 0x00400000 0x00000000 0x00000000
4087e3d0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
4087e3f0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
4087e410: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
4087e430: 0x00000000 0x00000000 0x00000002 0x00000000 0x00000000 0x0000005a 0x00002f10 0x4001b1c0
4087e450: 0xbea2efca 0x280633ee 0x417fcb1f 0x00000000 0x09ef6ee9 0x00000000 0x00010000 0x400203e9

ELF file SHA256: f5404b01584cce27

Rebooting...


I google for the error message 'Guru Meditation Error: Core 0 panic'ed (Store access fault). Exception was unhandled.' and found
espressif/esp-idf#11310
Don't know if that will help.

@TD-er
Copy link
Member

TD-er commented Apr 13, 2024

I think it is the Neopixel related plugins which do not yet work well on all new platforms.
So maybe those should be disabled for now?

I don't have 16M ESP32-C6, so I can't test it myself.
Maybe Ton could test?

Also there are new builds at the webflasher: https://td-er.nl/ESPEasy/latest/
These mainly fix issues with HWCDC and some Ethernet issues.
But I guess maybe the HWCDC fixes may also result in crashes on the C6.

@tonhuisman
Copy link
Contributor Author

NeoPixels do work on the C6 boards, tested them this week, and working fine, it's the CDC serial that's messing things up, and that IDF release in the recent builds.
Best is to use the regular serial port and the latest build from the Web-flasher.

@TD-er
Copy link
Member

TD-er commented Apr 13, 2024

The latest build I linked was made last night.
It should fix quite a lot of HWCDC issues.

@plin2
Copy link

plin2 commented Apr 13, 2024

Tested it -> works

@TD-er
Copy link
Member

TD-er commented Apr 13, 2024

Thanks for letting us know.

@tonhuisman
Copy link
Contributor Author

The HWCDC seems to work much better indeed. Great 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants