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

dbgtool.js fails #72

Open
sslupsky opened this issue Apr 29, 2019 · 2 comments
Open

dbgtool.js fails #72

sslupsky opened this issue Apr 29, 2019 · 2 comments

Comments

@sslupsky
Copy link

I am attempted to burn the bootloader to a custom SAMD21 board.

When I "make r", the code compiles and I receive an error message when I get to the burn stage:

node scripts/dbgtool.js fuses
File: fuses
Fatal error: openocd not installed in Arduino

I looked into the dbgtool.js file and there are a couple hard paths that are not in my Arduino configuration:

https://github.com/Microsoft/uf2-samdx1/blob/d8dcad0f98a6152da01a584ab9ac2f2ef9b0f6c0/scripts/dbgtool.js#L66
and

https://github.com/Microsoft/uf2-samdx1/blob/d8dcad0f98a6152da01a584ab9ac2f2ef9b0f6c0/scripts/dbgtool.js#L74

My Arduino openocd installation is configured with the path "tools/openocd/0.9.0-arduino6-static" which is different than the one referenced in dbgtools.js.

With respect to the second reference, my Arduino hardware path is "hardware/samd/1.6.19/variants/arduino_zero/openocd_scripts/arduino_zero.cfg" which is different than the one reference in dbgtools.js.

Could someone please confirm what version of the Arduino environment uf2 requires? I am presently running 1.8.9 which is the latest stable release. I am not sure how to upgrade the version of openocd being used by the Arduino environment as there doesn't appear to be a way to do that from within Arduino and a google search has come up empty on this.

I changed the scripts to use the paths of my configuration. The result is that it appears to have programmed the bootloader though there was an error message:

File: build/witap_isb/bootloader-witap_isb-v3.4.0-dirty.map
Fatal error: Cannot find logStoreUF2 symbol in map file
make: *** [logs] Error 1

I am not sure what this is referring to.

The drive appears to mount. The LED is on solid. If I double tap the reset button, the LED fades in and out. So, I think everything is working?

@sslupsky sslupsky changed the title dbgtool.js failes dbgtool.js fails Apr 29, 2019
@sslupsky
Copy link
Author

I programmed a simple sketch using vscode-arduino and it programmed and ran.

For anyone else coming across this problem, it seems you just simply change the paths in the scripts to resolve the issue(s).

BTW, this is by far the best approach to an embedded bootloader I have come across. Kudos to you and thank you and Adafruit.

@nadjet09
Copy link

@sslupsky sorry I don't see the solution for this error:

File: build/witap_isb/bootloader-witap_isb-v3.4.0-dirty.map
Fatal error: Cannot find logStoreUF2 symbol in map file
make: *** [logs] Error 1

was the answer removed or something?

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