-
Notifications
You must be signed in to change notification settings - Fork 966
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
"// pico_cmake_set" not seen in included header files. #2112
Comments
Interesting. |
FWIW, https://github.com/raspberrypi/pico-sdk/blob/develop/tools/check_board_header.py does look at |
We could add parsing for the |
I think the search for |
That's true - in which case maybe add the parsing into the |
I guess appending to
I think you'd "expect" |
That's very true (with the opposite expected for I'll steal your regex from |
I have wondered whether BOARD could optionally be a list, rather than a single filename. In that way, a pico2_w on a VGA board might be defined as:
That would save having to have multiple definitions for any of the boards which will accept any flavour of pico. |
Ugh no. That might lead to people thinking that I guess some concept of |
@Memotech-Bill Would you like to give #2113 a try please, and see if it behaves as you expect? |
Yes, on a quick test it seems to work as expected. vgaboard_cut_2w.h
Start of build process, confirming that RP2350 has been selected:
And confirmation that the resulting executable is for RP2350:
I will have to wait until the change reaches the master branch of the SDK before I can make use of it in my repositories. Otherwise anyone else attempting to build my code will fail to get the intended CMake configuration. |
sort of collapsing replies to lots of things above: This is a known issue (perhaps not well documented)... w.r.t. vgaboard (and others), we intend to make a PICO_CARRIER_BOARD (or CARRIED board) to cover those, which could have helped, but will think about recursion too... In this case probably a good idea |
This should perhaps be PICO_ADDON_BOARDS, and should probably have the capability to be a list. Unlike the RPi, Pico addon boards do not have configuration EEPROMs, so it is straightforward to stack multiple addon boards. I can't call them HATs as the usually go underneath the Pico, not on top. |
If a board header file includes other header files, then CMake does not see any pico_cmake_set directives in the secondary header file.
This particularly affects the vgaboard.h header file, which includes pico.h. None of the pico settings are seen by CMake. This does not matter in this case as all the settings are default values anyway.
However, it is not possible to simply change pico.h to pico2.h for a VGA board with pico2 installed, as CMake will still think it is compiling for RP2040 rather than RP2350.
The text was updated successfully, but these errors were encountered: