usedbytes / rp2040-serial-bootloader

A serial bootloader for the Raspberry Pi RP2040 (Pico)
86 stars 29 forks source link

bootloader_build_combined - Dependencies #5

Open MP-Dataprobe opened 1 year ago

MP-Dataprobe commented 1 year ago

I am currently having issues with using bootloader_build_combined function. I had added the following:

  1. A simple blinky program application for testing purpose.
  2. Modified CMakeLists.txt and added add_executable(test"app.c") target_link_libraries(test pico_stdlib) bootloader_build_combined(test)

The build process results in an error upon trying to build the executable

Error : "No rule to make target '../test.bin', needed by 'test_app.bin'. Stop."

Any help please?

usedbytes commented 1 year ago

Could you please share your full CMakeLists.txt?

MP-Dataprobe commented 1 year ago

Hello, here is the full CMakeLists.txt file.

CMakeLists-BOOTLOADER.txt

usedbytes commented 1 year ago

Right, it looks like I haven't made the bootloader_build_combined target build the app binary.

Could you try adding this line before line 104:

picowota_build_standalone(${NAME})

I've implemented a somewhat neater version of this build process in my Pico-W WiFi OTA bootloader: https://github.com/usedbytes/picowota/ , I should port that across or combine them really.