Now all of a sudden I cant upload/debug my code any more.
I’m running vsCode on linux. The programmer is the recommended one from CY8CKIT-147.
When this happend, I noticed that when I plug in the programmer my file manager pops up displaying a drive with a single file. Also I notice that the openocd process complains about the programmer being out of date.
fw-loader recognizes the programmer as a KitProg2. Since I have been using the same programmer for quite a while I had expected to see it as a KitProg3. (has it downgraded it self by magic?)
fw-loader --update-kp3 sorted that. Now I have
KitProg3 CMSIS-DAP HID-121A0C3A00087400
But still, vsCode refuses to upload/debug.
To get a clean state I have done:
rm -r build
With the amber light is fading in and out on the programmer I hit F5 to start debugging my code. This results in:
And the Adapter Output:
Open On-Chip Debugger 0.10.0+dev-188.8.131.52 (2019-09-10-18:37) Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html kitprog3 0 0 adapter speed: 1500 kHz Warn : Transport "swd" was already selected adapter speed: 1000 kHz cortex_m reset_config sysresetreq 1 Info : Listening on port 6666 for tcl connections Info : Listening on port 4444 for telnet connections Info : CMSIS-DAP: SWD Supported Info : CMSIS-DAP: FW Version = 1.2.0 Info : CMSIS-DAP: Interface Initialised (SWD) Info : SWCLK/TCK = 1 SWDIO/TMS = 1 TDI = 0 TDO = 0 nTRST = 0 nRESET = 1 Info : CMSIS-DAP: Interface ready Info : VTarget = 4.877 V Info : clock speed 1000 kHz Error: DAP 'psoc6.cpu' initialization failed (check connection, power, etc.)
This happes with two onethingx based modules, both the official development board and with my own prototype.
Have I somehow fried my programmer?