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

Option to disable -e for bossac? #11

Open
fionawhim opened this issue Jul 12, 2019 · 1 comment
Open

Option to disable -e for bossac? #11

fionawhim opened this issue Jul 12, 2019 · 1 comment

Comments

@fionawhim
Copy link
Contributor

I’m using bobbin with an Adafruit PyPortal, and every time I flash I get a "SAM-BA operation failed" error.

I compared how bobbin calls bossac with how the Arduino IDE does it, and bobbin has an -e flag for erasing that Arduino doesn’t have.

When I remove the -e from bobbin, I can flash the PyPortal without issue.

Should this be an option that’s available? Would we want to default to still erasing but be able to set "--no-erase" or "erase = false" somewhere?

With some guidance on how you’d like it configured I could make the PR.

@jcsoo
Copy link
Contributor

jcsoo commented Jul 14, 2019

I haven't tried this recently, but I think the "-e" option makes the load process faster since it can do a bulk erase first rather than on a block-by-block basis? And maybe the PyPortal firmware simply doesn't support the bulk erase command?

I think for now a "--no-erase" option and "erase=false" loader option would make sense, keeping the behavior the same for existing users. A PR would be welcome!

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