I have this same problem every single time I reconnect my dev board to the USB debugging port. There is a workaround but you have to perform it EVERY SINGE TIME, so it is frustrating and time consuming when you are working on something that requires you to disconnect and reconnect the USB! Hopefully someone has a more permanent fix. It's honestly kinda ridiculous that a problem like this exists and remains undocumented with a development kit! It doesn't give one much confidence in the ecosystem as a whole!:smileyangry:
In order to get around this:
- Open the "GUI Flash Tool" in the toolbar (the DIP looking icon)
- Select OK when it finds the target ("MBED CMSIS-DAP" for my K22 freedom board)
- In the "Target Operations" section click on "Resurrect locked Kinetis device"
- Hit "Run"
It will connect, complete the script and now you'll be able to run the samples.
Oh yeah another peculiarity: On my K22 board at least, the LED is a 3-color and the firmware seems to be written for a different iteration of the board/LED. So it doesn't change colors like you'd expect when you run the demos that change the LED; blinky, level, etc... But if you look at the schematics it's pretty easy to figure out how to change the GPIO settings to get it to change to the correct colors. It's actually a pretty good, easy activity to learn how the pins/ports work.
If anyone knows a permanent fix for the debug port that would allow us to avoid running the resurrect script every time we connect, it would be much appreciated!!!