M5Stack icon indicating copy to clipboard operation
M5Stack copied to clipboard

Your Boards ESP32 code for M5Stack library is outdated and causing bugs

Open cyberluke opened this issue 2 weeks ago • 1 comments

Describe the bug

Your code here is too old: https://github.com/m5stack/esp-idf

Why you cannot use official esp-idf?

It is casusing these issues, for example on M5 Fire: https://www.esp32.com/viewtopic.php?t=30870 https://esp32.com/viewtopic.php?t=25729 https://esp32.com/viewtopic.php?f=12&t=25667&start=40

In newer ESP32 upload algorithm, they added a check to verify if Flash memory can be written during a cycle. Some check, so it won't show random errors like this: `Sketch uses 1059561 bytes (16%) of program storage space. Maximum is 6553600 bytes. Global variables use 44556 bytes (0%) of dynamic memory, leaving 4477428 bytes for local variables. Maximum is 4521984 bytes. esptool.py v4.5.1 Serial port COM3 Connecting..... Chip is ESP32-D0WDQ6 (revision v1.0) Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None Crystal is 40MHz MAC: 98:f4:ab:6b:97:68 Uploading stub... Running stub... Stub running... Changing baud rate to 1500000 Changed. WARNING: Failed to communicate with the flash chip, read/write operations will fail. Try checking the chip connections or removing any other hardware connected to IOs. Configuring flash size... Flash will be erased from 0x00001000 to 0x00005fff... Flash will be erased from 0x00008000 to 0x00008fff... Flash will be erased from 0x0000e000 to 0x0000ffff... Flash will be erased from 0x00010000 to 0x00114fff... Compressed 18992 bytes to 13110...

A fatal error occurred: Packet content transfer stopped (received 8 bytes) Failed uploading: uploading error: exit status 2`

Please update ESP32 dependency for M5 Library.

When not using M5Stack library, but using directly ESP32 DEV board and uploading the code, everything works always!

To reproduce

Arduino 2 IDE, M5Stack, it happens randomly

Expected behavior

Same behavior as latest official ESP32 code

Screenshots

No response

Environment

  • OS: Win 10
  • IDE &IDE Version: 2
  • Repository Version: latest from M5, not latest from ESP32

Additional context

No response

Issue checklist

  • [X] I searched for previous reports in the issue tracker
  • [X] My report contains all necessary details

cyberluke avatar Jun 23 '24 10:06 cyberluke