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

Unable to use cargo flash in the feather_m0 repo #682

Closed
nvsd opened this issue Apr 28, 2023 · 2 comments
Closed

Unable to use cargo flash in the feather_m0 repo #682

nvsd opened this issue Apr 28, 2023 · 2 comments

Comments

@nvsd
Copy link

nvsd commented Apr 28, 2023

Describe the bug
I'm trying to use cargo flash
I'm unable to use cargo-flash, probe-run, and cargo-embed with the examples in the feather_m0 repo due to the below error while using a Jlink EDU Mini with a feather M0 proto

Caused by:
    0: Failed to erase flash sector at address 0x00000000.
    1: The execution of 'erase_sector' failed with code 1. This might indicate a problem with the flash algorithm.

I can flash the board using hf2 so the board works. I can also connect to the board using Jlink commander.
I assume I have a configuration issue, but I'm unsure. Let me know what else I can provide.

@nvsd nvsd changed the title Failed to erase flash sector at address 0x00000000 Feather_m0 Unable to use cargo flash when flashing blinky_basic in the feather_m0 workspace Apr 29, 2023
@nvsd nvsd changed the title Unable to use cargo flash when flashing blinky_basic in the feather_m0 workspace Unable to use cargo flash in the feather_m0 workspace Apr 29, 2023
@nvsd nvsd changed the title Unable to use cargo flash in the feather_m0 workspace Unable to use cargo flash in the feather_m0 repo Apr 29, 2023
@nvsd
Copy link
Author

nvsd commented Apr 29, 2023

Looks like its a probe-rs issue
probe-rs/probe-rs#1599

@nvsd nvsd closed this as completed Apr 29, 2023
@sajattack
Copy link
Member

This currently only supports ATSAME51, but it sounds like you need something similar for atsamd21 if I understand correctly. https://github.com/atsamd-rs/atsamd-flash-algorithm

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

No branches or pull requests

2 participants