issues defining a new board under rp2040 core #1851
Replies: 2 comments 3 replies
-
Why? It seems to work OK in both I'm not sure what you mean by "hardcoding the paths" for platform files. Could you give an example? For the tools ( |
Beta Was this translation helpful? Give feedback.
-
I guess what I'm saying is, the Arduino project's instructions on how to support my custom board -- with just one config file -- are pretty clear, but they seem to be running aground here, and the way What I mean about the paths is that I know that support for custom boards in Arduino has evolved & continues to evolve. I'm just looking for the supported way to add support for my arduino-pico-based board. If a PR with mods to a python script is the only supported method, then I'll try that. (I just am not sure how to integrate a custom boot2 driver that way. OTOH I wasn't sure how to integrate it this way either. =/) |
Beta Was this translation helpful? Give feedback.
-
Hi,
Apropos of this thread, I'm trying to develop a standalone board definition for my rp2040-based board. Arduino docs suggest that this can be files in a completely seperate location (the /hardware subdir of my Arduino sketches directory) and doesn't need to edit files in the main rp2040 distro at all.
In theory I just need to create a
boards.txt
with custom values, based heavily off of the generic rp2040 entries in the rp2040 distro's boards.txt file . This is the procedure the Arduno docs recommend. However, I'm having some issues getting this to work.ATM my problem is that the platform.txt file in the distro uses the Arduino-provided env variable
runtime.platform.path
a lot, to source included headers/libraries/etc . But when I try to compile using my custom boards.txt,arduino-cli
redefines that variable to point to the location of my custom file, which stands alone in a directory. So all the other included libaries are not found.I guess I'm wondering why
platform.txt
needs to useruntime.platform.path
to find the platform files, instead of just hardcoding the paths, since they are distributed together. I would guess that if you're overriding the location of the runtime files you're also overriding platform.txt. Reading the Arduino docs, they explicitly sayruntime.platform.path
points to the folder where boards.txt lives. (As opposed to the path to the platform files of the runtime, like the name implies.)Am I pursuing the wrong strategy here? I have seen Earl's docs on how to merge a new custom board into the rp2040 distro, but is that the only way to install custom board support under arduino-pico? The "official" Arduino approach seems simpler.
Beta Was this translation helpful? Give feedback.
All reactions