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

setting Boot Flash flag on ATSAM4SD32 does not always work #145

Open
lowlander opened this issue Oct 2, 2020 · 3 comments
Open

setting Boot Flash flag on ATSAM4SD32 does not always work #145

lowlander opened this issue Oct 2, 2020 · 3 comments

Comments

@lowlander
Copy link

When I do a bossac -e -w -v -b prog.bin the erasing and flashing work fine, but when I than do a bossac -i the Boot Flash is still false. Only if I do a second bossas -b the bit seems to be set (at that point bossac can't talk with the MCU anymore. A NRST of the CPU than boots my new prog.bin and everything works fine.

Am I doing something wrong or is there some timing/flash checking bug ?

@bbeird1
Copy link

bbeird1 commented Nov 15, 2021

Hello, I am encountering the same situation with the ATSAM4S8B. Did you ever find a solution, or are you just setting boot from flash twice? Not a deal breaker at all, but I would like to know if there is operator error (wouldn't be the first time!) Thanks!

@lowlander
Copy link
Author

Hey Bob, no I never really found (nor did I actively look for) a solution. Also never got any reactions on this issue report, last code change also seems 2 years ago, it kind of looks like the bossa project is abandoned :-(

@haata
Copy link
Contributor

haata commented Nov 15, 2021

I think I've noticed this as well.
I suspect there's something going on with the chip.

See the datasheet errata: https://ww1.microchip.com/downloads/en/DeviceDoc/Atmel-11100-32-bit%20Cortex-M4-Microcontroller-SAM4S_Datasheet.pdf 48.1.2 (Read Error after a GPNVM or Lock Bit Writing).

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

3 participants