n-able-Arduino icon indicating copy to clipboard operation
n-able-Arduino copied to clipboard

Platformio framework/platform not yet in registry.

Open h2zero opened this issue 3 years ago • 6 comments
trafficstars

I added this as a new framework to the Platformio registry (also the n-able platform) at the same time of the first release (3 days ago), not sure why it's not yet available (maybe @ivankravets, could comment)?

In the meantime to use this with Platformio you'll need to setup your environment as follows:

[env]
platform = https://github.com/h2zero/platform-n-able.git#1.0.0
framework = arduino
board = ...
...

h2zero avatar Aug 08 '22 23:08 h2zero

Hi @h2zero,

Thanks for using PlatformIO and for your willingness to make a contribution.

You need to make PR to https://github.com/platformio/platform-nordicnrf52 . Otherwise, developers will see multiple duplicate boards. Dev-platform is based on MCU/Architecture, but not on a framework. We have multiple dev-platforms which support the Arduino framework.

See how do we handle multiple Arduino cores for nRF5 https://github.com/platformio/platform-nordicnrf52/tree/develop/builder/frameworks

ivankravets avatar Aug 09 '22 13:08 ivankravets

@ivankravets thanks for the response.

That makes sense, I'm not sure how much of the platform changes I made would be PR-able since the board configs were completely reworked.

Oh well, I'll think on it, thanks!

h2zero avatar Aug 09 '22 14:08 h2zero

Ahh, I see. You can instruct users to use

[env]
platform = https://github.com/h2zero/platform-n-able.git#1.0.0

So, in this case, you don't need to publish a new dev-platform.

ivankravets avatar Aug 09 '22 14:08 ivankravets

Yes, that's probably the way to go. I did make a few changes that might be of benefit to PR.

Also, a bit off topic, but since you're here the nrfjprog tool on platformio is a bit old and doesn't support erasing the nrf52833. I worked around this by adding erase commands for all the tools instead but I thought you might want to update that one.

h2zero avatar Aug 09 '22 14:08 h2zero

but since you're here the nrfjprog tool on platformio is a bit old and doesn't support erasing the nrf52833.

Could I ask you to file a feature request at https://github.com/platformio/platform-nordicnrf52 ?

ivankravets avatar Aug 09 '22 18:08 ivankravets

Could I ask you to file a feature request at https://github.com/platformio/platform-nordicnrf52 ?

Done: https://github.com/platformio/platform-nordicnrf52/issues/158

h2zero avatar Aug 09 '22 23:08 h2zero