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

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

Open
2 tasks done
cyberluke opened this issue Jun 23, 2024 · 1 comment
Open
2 tasks done

Comments

@cyberluke
Copy link

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

  • I searched for previous reports in the issue tracker
  • My report contains all necessary details
@Tinyu-Zhao
Copy link
Collaborator

Tinyu-Zhao commented Jul 3, 2024

You are using the Arduino framework, which probably has nothing to do with the esp-idf repository.

One more thing, the idf of this repository is mainly used for uiflow-related development work.

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

No branches or pull requests

2 participants