-
Notifications
You must be signed in to change notification settings - Fork 39
package.json - working towards Issue #14 #97
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
Comments
Neat! If we include this as-is what level of support for PlatformIO does that give us? We'd be happy to get a PR to recognize your contribution too! |
Hi @oclyke currently it compiles and uploads code fine. Since I have can now upload I have been testing out the provided examples and have been running into issues in which the program seems to hang midway through. I am not sure how to solve this issue without attaching a debugger and stepping through the code. I have been documenting the issues Here, any suggestions would be welcome. I can make a pull request with the above file, if that is what you mean. |
Yeah I'd appreciate the PR (I know that I could just copy/paste that JSON but it's your work and it represents effort to learn about PlatformIO [which I haven't done] and we appreciate it.) Could you also give me an idea of the basics for how to use PlatformIO? Then I could see if I can tell why the programs are hanging part way through. Thanks! |
Added a package.json file to be used for PlatformIO integration.
I have made the pull request. Here is a quick into to PlatformIO. Hopefully I have covered enough to get you up and running. Basic PlatformIO InstallAlthough it supports a bunch of other IDEs, I will just deal with their preferred option:
The IDE installs PlatformIO to Once you have the IDE and PlatformIO installed we need to install the Apollo3 Platform. Install platform-apollo3blueSince the Testing the ExamplesOnce you have all of that installed create a new project and select which ever Artemis board you are testing with (I have been using the SparkFun_Artemis_Nano) For the tests I did, after creating a new project I opened the example in the Arduino IDE and copied the code, then in the PlatformIO IDE I created a new Once that is done you can press the upload button (which was illustrated in the Quick Start Guide) and then open the Serial Monitor to check the results. Also, to get verbose output for the build you may need to copy the command and add the Modifying the build flagsThe build flags passed to the compiler can be modified by editing two files:
The |
I can help out with this. I have 'some' experience with PlatformIO so I will take a stab at testing the PR later today. Thanks for putting this together @nigelb. |
@nigelb Great instructions! I haven't had time to try it out yet - sorry. Thanks to both of you! |
I can confirm that @nigelb's framework for the artemis boards works well. I tested with the Redboard Artemis Nano on a mac, macOS 10.15. I caught a bug that was preventing upload to the target specifically on a macOS machines -- basically, the path to Other things worth mentioning, once I installed both the Sparkfun Arduino_Apollo3 and the platform-apollo3blue, I had to run One feature that might be good to add is to automate the inclusion of Thanks again for the great work @nigelb! I will keep testing and will suggest improvements if I come up with any. |
I just submitted another PR for automatic detection of serial port name so that users don't have to manually define the I also see you've had issues with the PDM and EEPROM examples. I have some experience with PDM so I will take a stab at that next. |
Thank @justiceamoh I have accepted those pull requests. |
Just curious, what is the status on this? :) . |
Working towards #14 - Support for PlatformIO
I have been playing around using this repository as a framework to build with platformio, see platform-apollo3blue. To use this repo as a framework package for platformio it needs a simple change, the addition of a
package.json
file containing a small amount of metadata, and looks like this:The text was updated successfully, but these errors were encountered: