Title: 0.14.1 esp32s3 OTA black-screens on Fri3d badges: drivers.display.st7789 not frozen into the build · Issue #186 · MicroPythonOS/MicroPythonOS · GitHub
Open Graph Title: 0.14.1 esp32s3 OTA black-screens on Fri3d badges: drivers.display.st7789 not frozen into the build · Issue #186 · MicroPythonOS/MicroPythonOS
X Title: 0.14.1 esp32s3 OTA black-screens on Fri3d badges: drivers.display.st7789 not frozen into the build · Issue #186 · MicroPythonOS/MicroPythonOS
Description: Summary The 0.14.1 esp32s3 OTA image black-screens on Fri3d badges. MicroPython boots fine, but mpos.main aborts during board init because the SPI display driver drivers.display.st7789 is not present in the firmware. Because the app neve...
Open Graph Description: Summary The 0.14.1 esp32s3 OTA image black-screens on Fri3d badges. MicroPython boots fine, but mpos.main aborts during board init because the SPI display driver drivers.display.st7789 is not prese...
X Description: Summary The 0.14.1 esp32s3 OTA image black-screens on Fri3d badges. MicroPython boots fine, but mpos.main aborts during board init because the SPI display driver drivers.display.st7789 is not prese...
Opengraph URL: https://github.com/MicroPythonOS/MicroPythonOS/issues/186
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"0.14.1 esp32s3 OTA black-screens on Fri3d badges: drivers.display.st7789 not frozen into the build","articleBody":"## Summary\n\nThe **0.14.1 esp32s3 OTA image black-screens on Fri3d badges**. MicroPython boots fine, but `mpos.main` aborts during board init because the SPI display driver `drivers.display.st7789` is not present in the firmware. Because the app never marks the new image valid, the ESP-IDF bootloader rolls back to the previous version, so users see: download OK, then black screen, then back to the old release.\n\nThis affects **all Fri3d badges** (both `fri3d_2024.py` and `fri3d_2026.py` do `import drivers.display.st7789`), so it is not board-specific.\n\n## Environment\n\n- Firmware: `MicroPythonOS_esp32s3_0.14.1.ota` (from `https://updates.micropythonos.com/releases/esp32s3/`)\n- MicroPython: `1.27.0`, build `78ff170de9-dirty` (2026-07-06)\n- Hardware: Fri3d 2024 badge (see \"Secondary\" below about detection)\n- Prior working release on the same badge: 0.7.x (rolls back to it cleanly)\n\n## Symptom / serial boot log\n\nCaptured over USB serial during the failing boot:\n\n```\nInitializing fri3d_2026 hardware\nError importing mpos.main, sleeping 5 seconds before printing the exception...\nTraceback (most recent call last):\n File \"main.py\", line 36, in \u003cmodule\u003e\n File \"lib/mpos/main.py\", line 49, in \u003cmodule\u003e\n File \"lib/mpos/board/fri3d_2026.py\", line 17, in \u003cmodule\u003e\nImportError: no module named 'st7789'\nMicroPythonOS exiting.\nMicroPython 78ff170de9-dirty on 2026-07-06; Generic ESP32S3 module with Octal-SPIRAM with ESP32S3\nType \"help()\" for more information.\n\u003e\u003e\u003e\n```\n\nThe `no module named 'st7789'` is the missing leaf of `import drivers.display.st7789`.\n\n## Diagnosis (confirmed on the live 0.14.1 REPL)\n\n- `import lcd_bus` -\u003e OK\n- `import lvgl` -\u003e OK\n- `import drivers.display.st7789` -\u003e ImportError\n\nSo the low-level display bus and LVGL are in the build, but the **lvgl_micropython display driver `drivers.display.st7789` (and its `display_driver_framework` dependency) were not frozen into the 0.14.1 esp32s3 image.** These come from `lvgl_micropython/api_drivers/common_api_drivers/display/`. They were present in 0.13.0 and earlier (that is why 0.7.x boots).\n\nRoot cause: a build/freeze regression between 0.13.0 (works) and 0.14.1 (broken), most likely from a `lvgl_micropython` submodule bump or a change in how the display drivers get frozen for the esp32s3 target.\n\n## Step-by-step fix\n\n1. **Reproduce** on any 0.14.1 esp32s3 build: at the REPL, `import drivers.display.st7789` raises ImportError while `import lcd_bus` and `import lvgl` succeed.\n2. **Locate the regression.** Diff the build between the last-good release (0.13.0) and 0.14.1, focusing on:\n - the `lvgl_micropython` submodule commit (a bump is the most likely culprit),\n - the esp32s3 `make.py` invocation in `scripts/build_mpos.sh` (whether a display driver is passed / how api_drivers get frozen),\n - `manifests/manifest.py`.\n Something in that set stopped freezing `api_drivers/common_api_drivers/display/` (which freezes as `drivers.display.*` plus `display_driver_framework`).\n3. **Restore the freeze.** Ensure `drivers.display.st7789` and `display_driver_framework` are frozen into the esp32s3 image again, exactly as in 0.13.0. Both `fri3d_2024.py` and `fri3d_2026.py` import `drivers.display.st7789`, so both boards need it.\n4. **Rebuild and republish.** Build a fixed esp32s3 OTA (e.g. 0.14.2), publish the `.ota` to `updates.micropythonos.com`, and update the per-hardware `osupdate_\u003chardware_id\u003e.json` manifest to point at it.\n5. **Verify on hardware.** OTA a Fri3d 2024 and a Fri3d 2026 badge and confirm it boots to the UI (no black screen), and that `import drivers.display.st7789` works at the REPL.\n\n## Secondary (not the cause, but worth a look)\n\nMy badge is a **Fri3d 2024**, yet 0.14.1 logged `Initializing fri3d_2026 hardware`. That points to a possible board-misdetection in 0.14.x (`detect_board()` distinguishes the boards by IMU I2C address: 0x6A -\u003e 2026, 0x6B -\u003e 2024). This does not cause the black screen (a correctly-detected 2024 hits the same missing `st7789` import), but the misdetection is worth verifying while the display fix is in.\n\n## How it was captured\n\nBoot log captured over USB serial at 115200 during the OTA attempt, with an auto-reconnecting reader to survive the reboot into the new image.\n","author":{"url":"https://github.com/jnuyens","@type":"Person","name":"jnuyens"},"datePublished":"2026-07-06T21:30:55.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/186/MicroPythonOS/issues/186"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:fc5a6ed9-485c-4771-81d3-cf79dfdd3279 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A204:383777:3E304F7:568E75D:6A4F5375 |
| html-safe-nonce | f51f1becdbe803db1020d0b7e6a05ce15230db55917c60e3073071185f89acf1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMjA0OjM4Mzc3NzozRTMwNEY3OjU2OEU3NUQ6NkE0RjUzNzUiLCJ2aXNpdG9yX2lkIjoiMTQyOTk2MTY5NzQzOTczMjU5NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 183a896d14a9cb00b68cf7cc828bc79de8233e0894a7295129c86098ddbd51e6 |
| hovercard-subject-tag | issue:4823244315 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/MicroPythonOS/MicroPythonOS/186/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2d77d3fae845557241549330a0c9ced5c39f4a9a86f9fe9d5c590d6ad0b7a655/MicroPythonOS/MicroPythonOS/issues/186 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2d77d3fae845557241549330a0c9ced5c39f4a9a86f9fe9d5c590d6ad0b7a655/MicroPythonOS/MicroPythonOS/issues/186 |
| og:image:alt | Summary The 0.14.1 esp32s3 OTA image black-screens on Fri3d badges. MicroPython boots fine, but mpos.main aborts during board init because the SPI display driver drivers.display.st7789 is not prese... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jnuyens |
| hostname | github.com |
| expected-hostname | github.com |
| None | b92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9 |
| turbo-cache-control | no-preview |
| go-import | github.com/MicroPythonOS/MicroPythonOS git https://github.com/MicroPythonOS/MicroPythonOS.git |
| octolytics-dimension-user_id | 213598128 |
| octolytics-dimension-user_login | MicroPythonOS |
| octolytics-dimension-repository_id | 975472483 |
| octolytics-dimension-repository_nwo | MicroPythonOS/MicroPythonOS |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 975472483 |
| octolytics-dimension-repository_network_root_nwo | MicroPythonOS/MicroPythonOS |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4b249b445842943ed31549e027f57a8ade9881ed |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width