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

bootloader_build_combined - Dependencies #5

Open
MP-Dataprobe opened this issue Jan 27, 2023 · 3 comments
Open

bootloader_build_combined - Dependencies #5

MP-Dataprobe opened this issue Jan 27, 2023 · 3 comments

Comments

@MP-Dataprobe
Copy link

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
Copy link
Owner

Could you please share your full CMakeLists.txt?

@MP-Dataprobe
Copy link
Author

Hello, here is the full CMakeLists.txt file.

CMakeLists-BOOTLOADER.txt

@usedbytes
Copy link
Owner

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.

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