← index #8693Issue #14492
Off-topic · high · value 2.756
QUERY · ISSUE

Motor doesn't work under idf 4.2.2 + micropython 1.18

openby JackieLsopened 2022-05-24updated 2022-05-31
bugport-esp32

I build the esp32-micropython which is based v1.18 with the idf-4.2.2, It's worked well for led, except the motor.
But when I use the micropython master branch with the idf-4.4.1.All is right.
1、Is there any konwn reason about this?
2、Is the master branch is a statable branch ? May I use this branch?

CANDIDATE · ISSUE

Does not build for ESP32-S3 with IDF 5.2 despite claiming support

closedby vladkvitopened 2024-05-15updated 2024-05-16
bug

Checks

  • I agree to follow the MicroPython Code of Conduct to ensure a safe and respectful space for everyone.

  • I've searched for existing issues matching this bug, and didn't find any.

Port, board and/or hardware

ESP32-S3

MicroPython version

v1.22.2

Reproduction

I'm building Micropython for an ESP32. It works fine with micropython v1.22.2 and IDF v5.1.2. It does not work with IDF v5.2, despite claimed support here: https://github.com/micropython/micropython/tree/master/ports/esp32/#setting-up-esp-idf-and-the-build-environment

Here's my Dockerfile to reproduce:

FROM ubuntu:22.04

ARG DEBIAN_FRONTEND=noninteractive

# Set a working directory
WORKDIR /code

# Install system dependencies
RUN apt-get update && apt-get install -y \
    build-essential \
    libffi-dev \
    git \
    pkg-config \
    python3.10-venv \
    libusb-1.0-0-dev \
    cmake \
    && rm -rf /var/lib/apt/lists/*

# Clone the micropython repository
RUN git clone https://github.com/micropython/micropython.git
WORKDIR /code/micropython
RUN git checkout -b v1.22.2 v1.22.2

# Clone ESP-IDF
WORKDIR /code
RUN git clone -b v5.2 --recursive https://github.com/espressif/esp-idf.git
WORKDIR /code/esp-idf
RUN git checkout v5.2
RUN git submodule update --init --recursive

SHELL ["/bin/bash", "-c"] 

RUN ./install.sh

# Build MicroPython
WORKDIR /code/micropython/ports/esp32

RUN . /code/esp-idf/export.sh && \
    make BOARD=ESP32_GENERIC_S3 submodules && \
    make BOARD=ESP32_GENERIC_S3


ENTRYPOINT ["/bin/bash"]

Replace 'v5.2" with "v5.1.2" (twice) to have it run successfully.

The error is here:

32.51 /code/micropython/ports/esp32/network_common.c:172:1: error: static assertion failed: "Synchronize WIFI_AUTH_XXX constants with the ESP-IDF. Look at esp-idf/components/esp_wifi/include/esp_wifi_types.h"
32.51   172 | _Static_assert(WIFI_AUTH_MAX == 11, "Synchronize WIFI_AUTH_XXX constants with the ESP-IDF. Look at esp-idf/components/esp_wifi/include/esp_wifi_types.h");   
32.51       | ^~~~~~~~~~~~~~             

Expected behaviour

Expected a finished build

Observed behaviour

Build errors out due to a static assert.

Additional Information

No, I've provided everything above.

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied