Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't build for Plasma 2350W #31

Open
Korhm opened this issue Dec 13, 2024 · 1 comment
Open

Can't build for Plasma 2350W #31

Korhm opened this issue Dec 13, 2024 · 1 comment

Comments

@Korhm
Copy link

Korhm commented Dec 13, 2024

Hello,

I want to build my own uf2 file to include more frozen mpy files.

I get board definition and all other files for board PIMORONI_PLASMA2350 from tag v0.0.10 (the provided uf2 file works as expected)

I pulled latest micropython repo and all submodules, but build fails

➜  rp2 git:(master) pwd
/home/korhm/dev/micropython/ports/rp2

➜  rp2 git:(master) make BOARD_DIR=/home/korhm/dev/plasma_2350_w_test1/2350/board/PIMORONI_PLASMA2350 submodules
[...]

➜  rp2 git:(master) make BOARD_DIR=/home/korhm/dev/plasma_2350_w_test1/2350/board/PIMORONI_PLASMA2350 clean
[...]

➜  rp2 git:(master) make BOARD_DIR=/home/korhm/dev/plasma_2350_w_test1/2350/board/PIMORONI_PLASMA2350 
[...]
/home/korhm/dev/micropython/ports/rp2/modmachine.c: In function 'mp_machine_lightsleep':
/home/korhm/dev/micropython/ports/rp2/modmachine.c:195:38: error: 'CYW43_PIN_WL_HOST_WAKE' undeclared (first use in this function); did you mean 'CYW43_DEFAULT_PIN_WL_HOST_WAKE'?
  195 |         gpio_set_dormant_irq_enabled(CYW43_PIN_WL_HOST_WAKE, GPIO_IRQ_LEVEL_HIGH, true);

If I add the missing definition in .h file CYW43_PIN_WL_HOST_WAKE, with the same value has CYW43_DEFAULT_PIN_WL_HOST_WAKE, I then have same kind of issue with CYW43_DEFAULT_PIN_WL_REG_ON/CYW43_PIN_WL_REG_ON, so I also add it.

But at the very end, I have the error :

➜  rp2 git:(master) make BOARD_DIR=/home/korhm/dev/plasma_2350_w_test1/2350/board/PIMORONI_PLASMA2350 
[...]
[ 97%] Building C object CMakeFiles/firmware.dir/home/korhm/dev/micropython/lib/tinyusb/src/class/video/video_device.c.obj
[ 97%] Building C object CMakeFiles/firmware.dir/home/korhm/dev/micropython/lib/pico-sdk/src/rp2_common/pico_fix/rp2040_usb_device_enumeration/rp2040_usb_device_enumeration.c.obj
[ 98%] Linking CXX executable firmware.elf
/usr/lib/gcc/arm-none-eabi/13.2.1/../../../arm-none-eabi/bin/ld: CMakeFiles/firmware.dir/machine_pin.c.obj: in function `machine_pin_deinit':
/home/korhm/dev/micropython/ports/rp2/machine_pin.c:133:(.text.machine_pin_deinit+0x6): undefined reference to `mp_hal_is_pin_reserved'
collect2: error: ld returned 1 exit status
make[3]: *** [CMakeFiles/firmware.dir/build.make:8943 : firmware.elf] Erreur 1
make[3] : on quitte le répertoire « /home/korhm/dev/micropython/ports/rp2/build-PIMORONI_PLASMA2350 »
make[2]: *** [CMakeFiles/Makefile2:1845 : CMakeFiles/firmware.dir/all] Erreur 2
make[2] : on quitte le répertoire « /home/korhm/dev/micropython/ports/rp2/build-PIMORONI_PLASMA2350 »
make[1]: *** [Makefile:91 : all] Erreur 2
make[1] : on quitte le répertoire « /home/korhm/dev/micropython/ports/rp2/build-PIMORONI_PLASMA2350 »
-e See https://github.com/micropython/micropython/wiki/Build-Troubleshooting
make: *** [Makefile:63 : all] Erreur 1

I don't know what to do at this point.

Thanks.

@Gadgetoid
Copy link
Member

Right now your best bet is to fork the repository, make the changes, push them to GitHub and it should spit you out a working build. I'm slowly working on CI tooling to make our builds much easier to reproduce locally, but right now we're building from a mess of unmerged PRs anyway!

You'll also need the wireless/bluetooth branch - #18

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

No branches or pull requests

2 participants