Closed deshipu closed 6 years ago
Could you try IBDAP? I've never used stlink.
I only tried with stlinkv2 and j-link, I don't have ibdap, but I thought that the protocol is the same no matter what programmer is used?
It should be. I understand it works on some of your chips? Try comparing log output.
My suspicion about jlink was the frequency - I think it should be 1 MHz. But I'm not really much of a SWD expert.
Closing due to no further input.
I have no further information to provide, it doesn't mean that the problem is solved, though.
so there's no interesting difference in openocd logs between chips that work and ones that don't?
No, except for that moment where it fails writing because it's protected.
I'm starting to suspect that I somehow received faulty chips.
I think Atmel studio can set these fuses. You can check if it works. @ladyada have you ever seen something like this?
Unfortunately I don't have access to a Windows machine to try Atmel Studio right now, I will try when I get an occasion. Thank you for the suggestion.
ya, openocd is flakey and not well supported for samd21, we recommend jlink.exe or atmel studio only!
I now confirmed that all of those chips that didn't work with openocd can be programmed with atmel studio. I'm sorry for the noise.
The
scripts/dbgtool.js fuses
command fails for about half of the chips that I have with:It seems like they are somehow locked, but doing
chip-erase
on them doesn't seem to help.