Creating a custom board definition growing pains, what did i miss? #9207
-
Creating a custom board definition growing pains, what did i miss? I have a VM that has the SDK (ESP) and clone MP sources, I can generated any port I need. So now time to customize. I copied the PICO_W board definition to PICO_W_DD, customized the manifest. I then tried to generate the firmware image and hit the following error. Clearly I missed something somewhere.
Custom board directory...
The manifest.py...
The mpconfigboard.h file...
The cmake file...
|
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 6 replies
-
The fix seems straight forward, I just need to clone the header file as well in the Pico SDK. But is there not a way to let the Pico SDK now that the base board is still a Pico W, but use the custom board definition layer on top of the base Pico W SDK header? So... specific to the error above, since the Pico SDK is embedded in the MP source tree...
How the make for the Pico W DD firmware image completes as expected. |
Beta Was this translation helpful? Give feedback.
-
I think you can set: |
Beta Was this translation helpful? Give feedback.
-
@Jibun-no-Kage as @Lobo-T and @ricksorensen have pointed out, the issue here is that you have
in The meaning of this variable is that it's the board that the pico-sdk is using (they have a parallel concept of board definitions, but they are not 1:1). Hence why you had to add it to pico-sdk too. In your case, if your board is functionally identical to the official Pico W (as far as the pico-sdk is concerned) then you should just set it to |
Beta Was this translation helpful? Give feedback.
-
Take a look at #8505 for a strong hint. Pico-sdk normally expects a board definition within the (pico-sdk) repo (see boards) but they can be defined out-of-repository. The key variable is Note that #8505 is still under active development and is likely to be updated soon... |
Beta Was this translation helpful? Give feedback.
-
I want to say I tried that, but, I could have not stage it correctly, in the process of testing and learning how this works, so will try it again. Creating a new header file in the SDK would make sense for a 'new' board of course. But really I want to use the existing SDK definition, but custom MP board definition. Back to testing, thanks guys. |
Beta Was this translation helpful? Give feedback.
I think you can set:
set(PICO_BOARD pico_w)
In mpconfigboard.h.