Describe the bug
When compiling firmware for Raspberry Pi Pico (RP2) with the command python3 make.py rp2 clean BOARD=RPI_PICO, the build fails because the Python script /home/leeqingshui/lvgl_micropython/gen/_api_gen_mpy.py cannot be found. This prevents the generation of lv_mp.c, which is required for the LVGL binding.
Expected behavior
The build should complete successfully and output the RP2 firmware file (firmware.uf2).
Build output
Build type is MinSizeRel
-- Found Python3: /home/leeqingshui/miniconda3/bin/python3 (found version "3.13.12") found components: Interpreter
TinyUSB available at /home/leeqingshui/lvgl_micropython/lib/micropython/lib/tinyusb/src/portable/raspberrypi/rp2040; enabling build support for USB.
BTstack available at /home/leeqingshui/lvgl_micropython/lib/micropython/lib/btstack
lwIP available at /home/leeqingshui/lvgl_micropython/lib/micropython/lib/lwip
Including User C Module(s) from ../../../../ext_mod/micropython.cmake
-- Configuring incomplete, errors occurred!
/home/leeqingshui/miniconda3/bin/python3: can't open file '/home/leeqingshui/lvgl_micropython/gen/_api_gen_mpy.py': [Errno 2] No such file or directory
OUTPUT:
RESULT: 2
CMake Error at /home/leeqingshui/lvgl_micropython/ext_mod/lvgl/micropython.cmake:45 (message):
Failed to generate
/home/leeqingshui/lvgl_micropython/lib/micropython/ports/rp2/build-RPI_PICO/submodules/lv_mp.c
Call Stack (most recent call first):
/home/leeqingshui/lvgl_micropython/ext_mod/micropython.cmake:19 (include)
/home/leeqingshui/lvgl_micropython/lib/micropython/py/usermod.cmake:56 (include)
CMakeLists.txt:100 (include)
make: 离开目录“/home/leeqingshui/lvgl_micropython/lib/micropython/ports/rp2”
make: *** [Makefile:80:submodules] 错误 1
I found this issue was mentioned in #415, where the maintainer noted that RP2 support is still in progress and needs driver contributions. I also saw a community member (hemonu) has a working rp2-fix branch in their fork: https://github.com/hemonu/lvgl_micropython/tree/rp2-fix, which adds SPI display support for RP2.
Describe the bug
When compiling firmware for Raspberry Pi Pico (RP2) with the command
python3 make.py rp2 clean BOARD=RPI_PICO, the build fails because the Python script/home/leeqingshui/lvgl_micropython/gen/_api_gen_mpy.pycannot be found. This prevents the generation oflv_mp.c, which is required for the LVGL binding.Expected behavior
The build should complete successfully and output the RP2 firmware file (
firmware.uf2).Build output