Draft
Conversation
e291fc9 to
780688e
Compare
On a new, unsupported device, you may get a reboot loop. Because if the "mpos.main" can't detect the board it just continues and tries to init the display. In by case (on a CYD) it results in a hard crash -> a boot loop. This loop is short and avoids to be able to use "mpremote cp"... It looks like: ``` ... sys.version=3.4.0; LVGL (9.3.0) MicroPython (1.25.0) Binding compiled on 2026-04-01 sys.implementation=(name='micropython', version=(1, 25, 0, ''), _machine='Generic ESP32 module with SPIRAM with ESP32', _mpy=11014, _build='ESP32_GENERIC-SPIRAM') Free space on root filesystem: total_space=0 / used_space=0 / free_space=0 bytes RAM: 110656 free, 640 allocated, 111296 total Passing execution over to mpos.main MicroPythonOS 0.9.0 running lib/mpos/main.py unPhone ? odroid_go ? m5stack_core2 ? Try to I2C initialized on sda=21 scl=22 fail_save_i2c ok Attempt to write a single byte to I2C bus address 0x34... No device at this address: [Errno 116] ETIMEDOUT m5stack_fire ? Try to I2C initialized on sda=21 scl=22 fail_save_i2c ok Attempt to write a single byte to I2C bus address 0x68... No device at this address: [Errno 116] ETIMEDOUT Unknown board: couldn't detect known I2C devices or unique_id prefix A fatal error occurred. The crash dump printed below may be used to help determine what caused it. If you are not already running the most recent version of MicroPython, consider upgrading. New versions often fix bugs. To learn more about how to debug and/or report this crash visit the wiki page at: https://github.com/micropython/micropython/wiki/ESP32-debugging LVGL MicroPython IDF version : 67c1de1e Machine : Generic ESP32 module with SPIRAM with ESP32 Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled. ... ``` The interesting line is `Unknown board: couldn't detect known I2C devices or unique_id prefix` so that `detect_board()` returns `None` but the code just continues. This PR will raise and error, that will be captured in the `main.py` and we end in the REPL. This looks like: ``` ... sys.version=3.4.0; LVGL (9.3.0) MicroPython (1.25.0) Binding compiled on 2026-04-01 sys.implementation=(name='micropython', version=(1, 25, 0, ''), _machine='Generic ESP32 module with SPIRAM with ESP32', _mpy=11014, _build='ESP32_GENERIC-SPIRAM') Free space on root filesystem: total_space=0 / used_space=0 / free_space=0 bytes RAM: 110656 free, 640 allocated, 111296 total Passing execution over to mpos.main MicroPythonOS 0.9.0 running lib/mpos/main.py unPhone ? odroid_go ? m5stack_core2 ? Try to I2C initialized on sda=21 scl=22 fail_save_i2c ok Attempt to write a single byte to I2C bus address 0x34... No device at this address: [Errno 116] ETIMEDOUT m5stack_fire ? Try to I2C initialized on sda=21 scl=22 fail_save_i2c ok Attempt to write a single byte to I2C bus address 0x68... No device at this address: [Errno 116] ETIMEDOUT Unknown board: couldn't detect known I2C devices or unique_id prefix Traceback (most recent call last): File "main.py", line 32, in <module> File "mpos/main.py", line 253, in <module> RuntimeError: No board detected, exit initialization! Error in mpos.main, sleep for 5 seconds and end then... LVGL (9.3.0) MicroPython (1.25.0) Binding compiled on 2026-04-01; Generic ESP32 module with SPIRAM with ESP32 Type "help()" for more information. >>> ```
Seems to be just another hacky way to expand the build process. Maybe the whole thing should be restructured? The idea is to add a target for CYD that has 4MB flash and no PSRAM. On the other side the normal "esp32" build runs here ... So i really don't know it it's needed...
57ef6d6 to
0293dda
Compare
Contributor
Author
|
current progress: The ILI9341 display doesn't work: Just garbage on it, today... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
see: #88