Skip to content

Update to V1.27.0, fix boards and add new boards.#5

Draft
Josverl wants to merge 8 commits intomicropython:mainfrom
Josverl:update_1.27.0
Draft

Update to V1.27.0, fix boards and add new boards.#5
Josverl wants to merge 8 commits intomicropython:mainfrom
Josverl:update_1.27.0

Conversation

@Josverl
Copy link

@Josverl Josverl commented Feb 23, 2026

I found that the example boards did not build anymore due to changes to the upstream micropython/micropython repo

Updated:

  • to micropython/micropython @v1.27.0
  • the example modules to use static
  • the existing boards: CUSTOM_ESP32, CUSTOM_PYBV11, CUSTOM_PYBD_SF2

Added new custom boards for some current hardware

  • CUSTOM_RP2040
  • CUSTOM_ESP32_C6

Testing

board built flashed
CUSTOM_ESP32 Yes Yes
CUSTOM_ESP32_C6 Yes Yes
CUSTOM_PYBV11 Yes -
CUSTOM_PYBD_SF2 Yes -
CUSTOM_RP2040 Yes Yes

  • I used Generative AI tools when creating this PR, but I am a human, I have personally
    checked the code and am responsible for the description above.

Signed-off-by: Jos Verlinde <jos_verlinde@hotmail.com>
- Refine README for clarity on build and flash instructions.
- Add dependencies.lock for component management.
- Adjust CMakeLists.txt to use consistent variable names.
- Enhance idf_component.yml with additional dependencies and rules.
- Update mpconfigboard.cmake to include sdkconfig.board.
- Introduce sdkconfig.board for custom partition table configuration.

Signed-off-by: Jos Verlinde <jos_verlinde@hotmail.com>
Signed-off-by: Jos Verlinde <jos_verlinde@hotmail.com>
Signed-off-by: Jos Verlinde <jos_verlinde@hotmail.com>
…ild instructions.

Signed-off-by: Jos Verlinde <jos_verlinde@hotmail.com>
Signed-off-by: Jos Verlinde <jos_verlinde@hotmail.com>
- CUSTOM_ESP32_C6 with configuration files and build instructions

Signed-off-by: Jos Verlinde <jos_verlinde@hotmail.com>
@Josverl Josverl marked this pull request as draft February 23, 2026 12:13
@Josverl Josverl changed the title boards: Add CUSTOM_ESP32_C6 board. Update to V1.27.0, fix boards and add new boards. Feb 23, 2026
@dpgeorge
Copy link
Member

dpgeorge commented Mar 1, 2026

Thanks for this. Overall it looks good, but I'd like to merge #4 first.

@Josverl
Copy link
Author

Josverl commented Mar 1, 2026

Thanks, makes sense to work by order.
Feel free to rebase, or just let me know.

There are a few things that I did not yet complete validating:

  • checking the documented flashing instructions for all boards
  • flashing the pybv11
  • I do not have a pybd to test with

@dpgeorge
Copy link
Member

dpgeorge commented Mar 2, 2026

I can test PYBD if needed.

@karlp
Copy link
Contributor

karlp commented Mar 2, 2026

This doesn't build for me, on ESP32?

Steps:

git clone git@github.com:micropython/micropython-example-boards.git
cd micropython-example-boards/
git fetch origin pull/5/head:pr5
git checkout pr5
git submodule update --init
make -C lib/micropython/mpy-cross
podman run --rm  -v .:/project:Z -w /project/boards/CUSTOM_ESP32 -e HOME=/tmp espressif/idf:v5.5.3 make -C /project/lib/micropython/ports/esp32 submodules
podman run --rm  -v .:/project:Z -w /project/boards/CUSTOM_ESP32 -e HOME=/tmp espressif/idf:v5.5.3 idf.py  build
Compile failure
In file included from /project/lib/micropython/extmod/nimble/modbluetooth_nimble.c:273:
/project/lib/micropython/extmod/nimble/modbluetooth_nimble.c: In function 'nimble_reset_gatts_bss':
/opt/esp/idf/components/bt/host/nimble/nimble/nimble/host/src/ble_hs_priv.h:109:56: error: expected ')' before '->' token
  109 | #define ble_hs_max_attrs              (ble_hs_state_ctx->max_attrs)
      |                                                        ^~
/project/lib/micropython/extmod/nimble/modbluetooth_nimble.c:587:21: note: in expansion of macro 'ble_hs_max_attrs'
  587 |     extern uint16_t ble_hs_max_attrs;
      |                     ^~~~~~~~~~~~~~~~
/opt/esp/idf/components/bt/host/nimble/nimble/nimble/host/src/ble_hs_priv.h:110:56: error: expected ')' before '->' token
  110 | #define ble_hs_max_services           (ble_hs_state_ctx->max_services)
      |                                                        ^~
/project/lib/micropython/extmod/nimble/modbluetooth_nimble.c:588:21: note: in expansion of macro 'ble_hs_max_services'
  588 |     extern uint16_t ble_hs_max_services;
      |                     ^~~~~~~~~~~~~~~~~~~
/opt/esp/idf/components/bt/host/nimble/nimble/nimble/host/src/ble_hs_priv.h:111:56: error: expected ')' before '->' token
  111 | #define ble_hs_max_client_configs     (ble_hs_state_ctx->max_client_configs)
      |                                                        ^~
/project/lib/micropython/extmod/nimble/modbluetooth_nimble.c:589:21: note: in expansion of macro 'ble_hs_max_client_configs'
  589 |     extern uint16_t ble_hs_max_client_configs;
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~

The final build step fails with a slew of warnings about Nimble redefinitions, and then compiler errors on extmod/nimble/ that appear related to missing sdkconfig?

I have the same issue with own (much smaller changeset) that updates to 1.27, and I don't see any bluetooth changes in this changeset. Is there anything locally in your tree that hasn't been comitted that we're missing?

@karlp
Copy link
Contributor

karlp commented Mar 2, 2026

lol, esp-idf 5.5.1 works, 5.5.3 fails :) out of time for looking at that.

@karlp
Copy link
Contributor

karlp commented Mar 4, 2026

I don't believe this addresses 4f193132d2de4b4 but that's possibly just by chance that none of the current boards use usb. I've run into this myself while testing my own 1.27 update.

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.

3 participants