Automatically programming RP series microcontrollers

Not sure if this is the right category but here it goes:

I was working on a way to automatically program ESP32 based boards for production, decided to create something similar for RP series microcontrollers. I published the code and wrote a blog post on it. Maybe it’ll be useful for BPv5/BPv6 production as well.

Blog post: RP Auto Programmer | Tayken's Blog
Code: GitHub - tayken/RP-Auto-Programmer

I think something similar can be used for testing as well: After flashing the firmware, BP will have a new PID, so you detect that and run the self-test command.

4 Likes

This is great, and nice write up. Seems like it could be super useful for production programming.

There’s a kind of similar thing for Windows. It looks for the bootloader drive, then automatically copies the firmware from the build folder.

I accompanied it with button.scr on the Bus Pirate that jumps to bootloader when the button is pressed. The work flow is something like this:

  1. Compile firmware
  2. Press button to jump to bootloader
  3. The script sees the bootloader and copies the firmware

Super convenient, but I don’t use it very often.

Edit: forgot the link.

2 Likes