I have a Xiao nrf52840(sense) that I want to program on VSCode with Platform IO since I find VSCode easier to use in conjunction with Git that Arduino IDE. I am working on a raspberry pi 4.
When creating a project, I used the Xiao ESP32C3 board since the Sense was not an option. after that, I replaced the platformio.ini file with the recommended file at this link: Xiao nrf52840 Sense with Platform IO
When I try to compile my main file (which is the basic blink example file), I get the following error:
UnknownPackageError: Could not find the package with platformio/toolchain-gccarmnoneeabi @ ~1.80201.0 requirements for your system linux_aarch64.
Searching this up led me to: Github link for error. However, the recommended fixes of adding framework=arduino
and platform_packages = toolchain-gccarmnoneeabi@~1.90301.0
do not work.
Furthermore, the main.cpp file shows errors when I use LED_RED, as if the board is still unrecognized.
First congratulations is in Order for being so BOLD… a RPi really… C’mon man that’s not a development platform? Well at least not one that is widely recognised and Frameworks and Board Support packages are going to be updated and supported on the daily… NO Way.
I’m ROFLMAO, at this attempt man you are bonkers, cracking me up bad… What version of the IDE are you using? LOL
Just try it with the correct BSP installed for the Board you are using and the framework is Arduino , so your good there.
It will work but you got a lot of hoops to jump through …SO just saying. Way easier on a PC or full metal Linux box.
Sorry for the late reply. I’m new to electronics so I thought that a raspberry pi would be better for arduino development than a Windows PC. I took your advice and now my project is working. Thank you!
WOW, SO You get an AT a Boy on that one. Saved yourself a whole lot of head scratching, others would have just let you head into the quicksand… Not here, not on my watch… LOL
Nah’ your good it’s a great experiment and it can and does work, but as I said the JUICE isn’t worth the Squeeze. You learn more and benefit WAY more doing it the PC way. besides it’s a good flex to do all, WIN, Linux and embedded… No shame in that game.
Arduino, and PlatformIO on VScode at first, then branch out to something else like NORDIC SDK. NRF-SDK runs on VScode also.
they have the goods, all of it Hardware, Software and TOOLs, Lots of tools.
You could torcher yourself and try the ESP-IDF but I would wait until you experience the others then you know which is better and more consistent, without a lot of (only works on the new version) nonsense…
those are my advice and thoughts on it. GLAD you got it sorted. Ask any questions you have lots of smart folks on here willing to help.