Skip to content
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

Improve pico_flash task #26

Merged
merged 1 commit into from
Feb 19, 2024
Merged

Conversation

UncleGrumpy
Copy link
Collaborator

@UncleGrumpy UncleGrumpy commented Feb 6, 2024

This set of changes will use picotool to reset the rp2040 device if a serial monitor is attached. A warning will also be issued notifying the user that faster flashing times can be achieved by disconnecting the serial monitor application before using the atomvm pico_flash task, as this also requires an extra delay before it can be put back into BOOTSEL mode.

Copy link
Collaborator

@fadushin fadushin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Just a few small comments.

At some point we need to use ports instead of os:cmd, but later!

src/atomvm_pico_flash_provider.erl Outdated Show resolved Hide resolved
src/atomvm_pico_flash_provider.erl Outdated Show resolved Hide resolved
@UncleGrumpy
Copy link
Collaborator Author

At some point we need to use ports instead of os:cmd, but later!

I was just reading this a few hour ago! 🤣

src/atomvm_pico_flash_provider.erl Outdated Show resolved Hide resolved
src/atomvm_pico_flash_provider.erl Outdated Show resolved Hide resolved
src/atomvm_pico_flash_provider.erl Show resolved Hide resolved
@UncleGrumpy UncleGrumpy force-pushed the pico_flash_improved branch 6 times, most recently from eb9c959 to 4c8eb43 Compare February 18, 2024 04:43
This set of changes will use `picotool` to reset the rp2040 device if a serial
monitor is attached. A warning will also be issued notifying the user that
faster flashing times can be achieved by disconnecting the serial monitor
application before using the `atomvm pico_flash` task, as this also requires an
extra delay before it can be put back into `BOOTSEL` mode.

Signed-off-by: Winford <winford@object.stream>
@fadushin fadushin merged commit ebf4f5a into atomvm:master Feb 19, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants