Go Down

Topic: Issues uploading sketch and burning bootloader. (Read 449 times) previous topic - next topic

mriddoch

Board(s): Arduino Zero W
OSX 10.15.2
Arduino 1.8.10

Getting output as follows when attempting to upload a sketch:
Code: [Select]
Sketch uses 11508 bytes (4%) of program storage space. Maximum is 262144 bytes.
Open On-Chip Debugger 0.10.0+dev-gf0767a31 (2018-06-11-13:48)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
debug_level: 0
none separate
adapter speed: 400 kHz
cortex_m reset_config sysresetreq
Error: unable to find CMSIS-DAP device
Error: No Valid JTAG Interface Configured.
Error: No Valid JTAG Interface Configured.


Getting output as follows when attempting to burn an new bootloader:
Code: [Select]

Open On-Chip Debugger 0.10.0+dev-gf0767a31 (2018-06-11-13:48)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
debug_level: 0
none separate
adapter speed: 400 kHz
cortex_m reset_config sysresetreq
Error: unable to find CMSIS-DAP device

Error while burning bootloader.


I have seen several issues referencing this however none of the solutions provided have been effective. Has anyone has success in dealing with this?

westfw

Quote
Arduino Zero W
I'll bite.  What's an "Arduino Zero W"?  Can you post a link to where you bought it, and/or a photo?
A "Genuine" "Arduino Zero" has a separate debug chip that implements CMSIS/DAP (Debug Access Protocol) for programming.  Many of the SAMD21-based derivatives omit this chip and use a bootloader i the SAMD21 itself.   Your symptoms are about what I'd expect to see if you were trying to program one of the derivatives using the "original Zero" board setting.   Or if you were using the "Native" USB port rather than the "Programming" USB port.
(You could try just setting the board type to "Arduino M0" instead."

mriddoch

#2
Jan 14, 2020, 06:31 am Last Edit: Jan 14, 2020, 06:33 am by mriddoch
Thanks for the reply!  I have seen some mention of different Zero board types, I am 99% sure that I have the Zero (W is wireless enable which is also causing issues but issue for another thread).

Here is a link to my board:
https://www.microcenter.com/product/486575/raspberry-pi-zero-w


westfw

#3
Jan 14, 2020, 07:12 am Last Edit: Jan 14, 2020, 07:13 am by westfw
[OP's picture]



Um...  That'd be a Raspberry Pi model Zero W.  :-)
It'll need completely different methods of programming from an "Arduino Zero."
(You might be able to use Arduino to program it, but not in the way you're currently using.
See, maybe, https://www.deviceplus.com/how-tos/raspberrypi-guide/how-to-run-arduino-sketches-on-raspberry-pi/ (I haven't seen much of anything here about that, though.))




pert

Another alternative to the 3rd party hardware package used in the tutorial westfw linked is Arduino Web Editor's support for programming Linux devices like the Raspberry Pi with Arduino sketches:

I haven't tried either option, and also haven't seen much about others doing it. I'm a bit partial to the me-no-dev/RasPiArduino approach, but it may be good to have a couple options to choose from.

If you try it, let us know how it goes. I might be willing to break out my Raspberry Pi Zero W and give it a try.

Go Up