You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
RP2
MicroPython version
$ git describe --dirty
v1.22.0-325-gd11ca092f
$ mpremote
Connected to MicroPython at /dev/ttyACM0
Use Ctrl-] or Ctrl-x to exit this shell
>>>
MPY: soft reboot
MicroPython v1.23.0-preview.324.gd11ca092f on 2024-04-20; XIAO RP2040 Local with RP2040
Type "help()" for more information.
Reproduction
I am using linux to build, with an external definition of board in : /work/domicropy/rjsboards/SEEED_XIAO_RP2040 with contents:
$ ls /work/domicropy/rjsboards/SEEED_XIAO_RP2040/
board.json mpconfigboard.cmake mpconfigboard.h pins.csv
comment: from ports/rp2, after prelims
$ make BOARD_DIR=/work/domicropy/rjsboards/SEEED_XIAO_RP2040/
$ mpremote bootloader
# example for my linux:
$ cp build-SEEED_XIAO_RP2040/firmware.uf2 /media/rick/RPI-RP2
# reset board
$ mpremote
>>> import machine
>>> dir(machine.Pin.board)
Expected behaviour
Expected list of pins described in pins.csv, which is stored in external board definition
The problem appears to be in CMakeLists.txt with a probably incorrect conditional are around pins.csv usage. ... See esp32/CMakeLists.txt for a work around:
comment: from the original clone, compare with my update:
$ diff -b -w CMakeLists.txt ../../../rjsfork/ports/rp2/CMakeLists.txt
540,541c540,541
< if(EXISTS "${MICROPY_BOARDS_DIR}/${MICROPY_BOARD}/pins.csv")
< set(GEN_PINS_BOARD_CSV "${MICROPY_BOARDS_DIR}/${MICROPY_BOARD}/pins.csv")
---
> if(EXISTS "${MICROPY_BOARD_DIR}/pins.csv")
> set(GEN_PINS_BOARD_CSV "${MICROPY_BOARD_DIR}/pins.csv")
$
I have historical difficulties creating and especially updating pull requests - sorry.
The text was updated successfully, but these errors were encountered:
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
RP2
MicroPython version
Reproduction
I am using linux to build, with an external definition of board in :
/work/domicropy/rjsboards/SEEED_XIAO_RP2040
with contents:Expected behaviour
Expected list of pins described in
pins.csv
, which is stored in external board definitionObserved behaviour
Observed behavior has no pins defined in
machine.Pin.board
:Additional Information
The problem appears to be in
CMakeLists.txt
with a probably incorrect conditional are aroundpins.csv
usage. ... Seeesp32/CMakeLists.txt
for a work around:I have historical difficulties creating and especially updating pull requests - sorry.
The text was updated successfully, but these errors were encountered: