I’m having a problem getting the debugger to start. I get this error when I try to start a debugging session:
Error erasing flash with vFlashErase packet.
I’m using a Mac with a Black Magic Probe connected to an Arduino Due. I’ve tried both VSCode and Atom, but both have the same error. I also tried connecting using iTerm but get same error with vFlashErase.
I have had success connecting to a 1bitsy and Arduino M0 using iTerm, Atom and (sometimes) VSCode so I know the BMP works, and my connections are ok.
I’m not sure where to start looking for the problem. I haven’t been able to find anything relevant while searching for the vFlashErase error.
My ini file looks like this:
platform = atmelsam board = mzeroUSB ; board = dueUSB framework = arduino debug_tool = blackmagic upload_protocol = blackmagic debug_port = /dev/cu.usbmodem7AB57B81
Any help or suggestions are welcome. Thanks.