You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given a url to a micropython repo, for example https://github.com/micropython/micropython@v1.24.0-preview.
Given octoprobe has 2 mcu tentacles connected: rp2, pyboard.
Now octoprobe will call mpbuild for the to 2 mcu tentacles, program the tentacles and run the tests.
If you want to do more than just rp2, you could consider using mpflash for flashing.
It's been built with that purpose in mind and cause I found myself maintaining the same code in multiple projects.
Chaining or integration with mpbuild makes sense.
It also has a basicgit module that suffices for common tasks.
Use case of octoprobe:
Given a url to a micropython repo, for example
https://github.com/micropython/micropython@v1.24.0-preview
.Given octoprobe has 2 mcu tentacles connected: rp2, pyboard.
Now octoprobe will call mpbuild for the to 2 mcu tentacles, program the tentacles and run the tests.
Implementation
octoprobe has to checkout the git repo. This could be done with this code: https://github.com/octoprobe/octoprobe/blob/main/src/octoprobe/util_cached_git_repo.py.
Now octoprobe calls mpbuild for rp2, mpbuild will return the pathname to the firmware.
octoprobe programs the rp2.
octoprobe runs the tests for the rp2.
The same for the other mcu tentacles.
Whats next
I plan to implement such a wrapper for octoprobe but I am interested in your opinions.
The text was updated successfully, but these errors were encountered: