Skip to content

openocd recipe has bootloader 0 (no prot?) #124

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

Closed
ladyada opened this issue Mar 16, 2016 · 2 comments
Closed

openocd recipe has bootloader 0 (no prot?) #124

ladyada opened this issue Mar 16, 2016 · 2 comments

Comments

@ladyada
Copy link
Contributor

ladyada commented Mar 16, 2016

heya folx - i was writing a tutorial and noticed that your recipe for openocd programming the bootloader is

tools.openocd.bootloader.pattern="{path}/{cmd}" {bootloader.verbose} -s "{path}/share/openocd/scripts/" -f "{runtime.platform.path}/variants/{build.variant}/{build.openocdscript}" -c "telnet_port disabled; init; halt; at91samd bootloader 0; program {{{runtime.platform.path}/bootloaders/{bootloader.file}}} verify reset; shutdown"

in particular the "at91samd bootloader 0" is required to unset bootloader protection before uploading, so thats good. however, that protection is never re-set with "at91samd bootloader 8192" or something after programverify.... I'm pretty new to openocd but thought it was worth checking :)

@cmaglie
Copy link
Member

cmaglie commented Mar 30, 2016

Seems to work! Thank you ;-)

@cmaglie cmaglie added this to the Release 1.6.5 milestone Mar 30, 2016
@ladyada
Copy link
Contributor Author

ladyada commented Mar 30, 2016

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants