minimal cmake build instructions? - Readme seems out of date. #1235
Replies: 6 comments 7 replies
-
Sorry, I think there's a bit of a misunderstanding here. The You can use the I'll move this to a discussion since it's more "how do I" vs. a core problem. |
Beta Was this translation helpful? Give feedback.
-
Ah, I understand, thank you for the clarification! |
Beta Was this translation helpful? Give feedback.
-
I was considering adding support for copy to RAM configurations. In summary there is a linker workflow which likely could be modified to support a boot loader. (I do not really recommend that one unless you know what your doing.) The documentation does not cover the internals of the linker script and configuration files. I think I may have gotten around that, but could not get a clear way to test my changes. The package logic did not work as it generated a 404. There is one page which mostly explains certain things, took a few reads and guessing to make sense of it. The way this works as I understand it, is there is a configuration file used by the Arduino logic. This contains commands to call a linker script via tool chain. CMake is completely removed by the time the package is created. A library is created which gets linked in. More than likely you can get what you want with this. Its kind of a neat linker trick. This linker script is installed by the board manager. You can modify it within the local folder. (I would not do this unless you know what your doing.) |
Beta Was this translation helpful? Give feedback.
-
Thank you! Actually it turns out that the features I need are already implemented in this software! I got all the way to the point of integrating another serial bootloader when I noticed notes about "OTA" updates in the linker script, which led me to find this: I was able to use that to do all the updates for my system! |
Beta Was this translation helpful? Give feedback.
-
I have been trying to bring up this Arduino CMake project, which apparently works with both AVR and ESP32, and is intended to work with any core. But I might be the first person to try it on the rp2040 core. It's not quite working. (issues here) . I'm afraid I have no idea how this is all supposed to work behind the scenes. Is there an arduino+cmake API that cmake scripts are supposed to use to find paths & generate object files in any Arduino core? It would sure be brilliant if it worked. arduino-cli is super-slow, and also i'm starting to need different versions of libraries in different projects. |
Beta Was this translation helpful? Give feedback.
-
What is comes down to is various errors in the final link stage, where objects/libraries/classes that clearly exist are not getting found. So really it seems like this is very close to working. I just don't know why the combination of cmake & the rp2040 core ends up looking in the wrong places for object files. In particular, |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to figure out the minimal setup to build a sketch with cmake. In the readme, the only mention of building with cmake goes to a two year old Toms Hardware article, and the people in the comments of that article mention that the tutorial is completely broken. Also that tutorial makes no mention of cmake.
Anyway I very much appreciate this library. I am trying to merge my application with a serial bootloader someone has made that uses cmake. Any instructions on a basic cmake build setup would be greatly appreciated. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions