-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add initial PlatformIO support #6
Conversation
Hello and thank you for your work! It looks amazing. My timeframe for BL602 is quite limited, but I will try to find some time to test this. Thanks :) |
Haha, it works! Thanks to a fix PR for the uploader someone did in the meantime (Community-BL-IOT/pio-bl60x-flash#1), I was just able to compile & upload & open serial monitor for my "DT-BL-10" BL602-based dev board and see
So, this builder script is good to merge :) |
Per the mention in the PR of: > The URL in the package.json should be changed after merge
This adds a PlatformIO builder script (
platformio-build.py
) and apackage.json
to the project, which enables PlatformIO to compile the project.PlatformIO is a SCons-based build system tool and VSCode extension that makes developing embedded fimwares much easier since it integrates nicely with a lot of IDEs, automates all toolchain and SDK download and unifies configuration files. Practically all Arduino cores have a PlatformIO integration, e.g., Arduino/esp8266, Arduino-ESP32, STM32Duino, etc.
These changes go along with custom extensions of the SiFive PlatformIO integration where the board definition for the pinecone board lives.
A full example project is at https://github.com/maxgerhardt/pio-bl602-boufallo-arduino-test.
Note: I do not yet have a BL602 based board for testing (shipping is in progress), but the current state is that it already builds the firmware like the Arduino IDE would and attempts uploading via the same serial flasher tool used in this core. So it should all work. I'm opening this PR preliminary so that I hopefully can just confirm it to be working on hardware after it arrives (or / and someone else tests it along with me) and then it can be merged. Thus this is marked as a darft PR.
People have been requesting PlatformIO support for a BL602 Arduino core in e.g. in esphome/feature-requests#1049 (comment) and platformio/platformio-core#4046.
(The URL in the
package.json
should be changed after merge)