Open hallard opened 5 years ago
+1 on figuring this out as I also have a number of custom boards and would be good to be able to have thing synced and available
There is a documented way to do that (if you actually can find it). Need to put a sample on github, so that other folks can do their own boards.
+1 I was trying to do exactly the same withou much success, an example/description would be very useful!
For now I added my boards to the boards.txt file in C:\Users\
Hallard & SlowMusti: I also developed some Murata based boards and like to do the same, my own 'package' next to the STM32L0 package by GrumpyOldPizza using the tools from his package. To build my code I created a Make setup using the Arduino CLI This now compiles all my code for all boards (incl TleraCorp, STM Nucleo, STM Discovery) I use. Within the Arduino CLI there is some decent info, including on the 'Platform specification', see (https://arduino.github.io/arduino-cli/platform-specification/) However I still cannot find exactly what I am looking for. Did you have some success in the mean time?
I forgot the mention: and the 'package_index.json specification' (see https://arduino.github.io/arduino-cli/package_index_json-specification/)
Hi There, I usually create custom boards for Arduino IDE that I place in
hardware\
folder and then I can select these board from IDE and compile + upload. In this case I never need to download to my hardware folder all compile tools and other because they are installed from boards manager in IDE. See example I made for some LoRa boards thereNote that I installed this repo with board manager, I can see and upload to grasshopper board without any issue.
I tried to create a new
hardware\stm32l0\
folder where I put my custom murata board definition (based on staff you done for this repo)I can see my new board and select it, but the issue occurs on compile time, looks like it can't see the framework location (IE include files, library, ...). As this technique works for official Arduino board (328p or SAM21) I'm wondering what I'm doing wrong there ?
Here below the the folder tree I'm using.
How can I tell (maybe in boards.txt or platform.txt) to use the already installed (with board manager) ArduinoCore-stm32l0 from here for compilation?
I tried all of these, but no success
An if I use the default
same error
Any idea of what I could do? And I really would like to avoid a fork and add a sync between repos, I already have too much of this kind
Oh of course If I put my modification for my custom board in
boards.txt
of this repo (so underArduino15\packages\TleraCorp\hardware\stm32l0\0.0.10
on my computer) it works, but this will be overwrite on your next release update.