earlephilhower / arduino-pico

Raspberry Pi Pico Arduino core, for all RP2040 and RP2350 boards
GNU Lesser General Public License v2.1
2.03k stars 422 forks source link

Package creation is too painful #1308

Closed daveythacher closed 1 year ago

daveythacher commented 1 year ago

I am running into a lot of issues with this. Documentation is terrible.

In summary I cannot test any changes without maybe a network proxy or relay.

earlephilhower commented 1 year ago

There's no reason to actually do a package and/or publish to test local changes. Please just use the git method described in the README.md which is how I do all my own development.

Make sure you aren't using a Boards Manager installation (forcibly remove it from the IDE Boards Manager to be 100% sure) and make sure the git clone is in the proper place and everything "just works."

daveythacher commented 1 year ago

Now how do I integrate with the Arduino IDE? See my old pull request #1225. I need the drop downs to appear. I do not know how Arduino determines this but my guess is through the JSON or some local file?

earlephilhower commented 1 year ago

If you've placed the git clone in the right spot, it just appears. ~/Arduino/hardware/pico/rp2040 on Linux. Under Arduino\hardware\pico\rp2040 in the Windows Documents folder IIRC. May need to restart the IDE if you change boards.txt which is where the menus come from.

daveythacher commented 1 year ago

How does Arduino know to look in that folder? Does it just do this on its own?

Any chance we can get this in the readme?

earlephilhower commented 1 year ago

Yes, it does it on its own. There's nothing special about this vs. any other board package as far as the IDE is concerned. If it's not picking things it, then the dir is in the wrong spot or the IDE is busted.

Don't use the Windows Store install (or flatpack/snap/etc. under Linux) also as discussed in the README. Those prepackaged ones have funky access permissions and often can't communicate w/the board properly, so it would not surprise me if they also break standard IDE functionality.

daveythacher commented 1 year ago

Any chance the comments on git and packages can be made in the README.md? That would close this out in my opinion.

earlephilhower commented 1 year ago

I'm sorry, but I don't think there's much I can say. It's pretty standard, but I can see how it's confusing for a first time Arduino contributor. The git section in the README really does summarize things https://github.com/earlephilhower/arduino-pico#installing-via-git .

Good luck on the RAM-only mode. You should also think about disabling the core freeze for flash operations in that config, since it's not needed (by definition both cores are running from RAM).