PlatformIO with multiple hardware targets

Completed

I ran across CC-3089 and voted for it, but I'm looking for a workaround.  Does anybody have one?  Even if I have to build my second target from the command line, that's at least better than nothing.  This:

platformio run -e secondtarget

tries to work, but none of the libraries are installed for that environment so it simply fails.  The odd thing is, it's failing on this:

Looking for Wire.h dependency? Check our library registry!

which is actually built in.

 

 

 

0
1 comment

Ha .. answered my own question minutes later, as usual.

[env:adafruit_feather_m0]
platform = atmelsam
board = adafruit_feather_m0
framework = arduino

[env:feather32u4]
platform = atmelavr
board = feather32u4
board_build.mcu = atmega32u4
board_build.f_cpu = 8000000L
framework = arduino

 

I can just use platformio run -e feather32u4 to build the other one ... it'd be nicer if CLION supported this, but even using text it's pretty workable.  If I knew cmake better I probably could make this work a little less manually.

 

0

Please sign in to leave a comment.