Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
7 years ago.
bricked by debuger?
I've used the python PyOCD gdb proxy. After uploading a file the KL25Z didn't react any more. Nothing, not even the MBED drive appears. I've tried to reflash the mbed_if_v2.0_frdm_kl25z.s19 File from windows: still dead. Unfortunately that happened to two (!) KL25Z of mine. So how can I revive it?
Question relating to:
6 years, 11 months ago.
I had the exact same experience! I compiled the example GPIO program (http://mbed.org/users/mbed_official/code/FRDM_GPIO/docs/0f13346a8475/main_8cpp_source.html) using GCC and tried to flash the elf using gdb. Using the 'load' command, the flashing went well until I saw an error "SWD Fault" on the pyocd console. (Unfortunately, I did not save the entire message)
From that point on the mbed no longer responds, i.e., does not enumerate as usb hid device or mass storage on windows. I tried to revert the firmware to pemicro and it shows up as a mass storage device. But when I 'drag and drop' binaries it no longer programs the target =(
Previously I had compiled and flashed the mbed using drag and drop into the mbed "drive" which worked, but flashing using gdb over pyocd resulted in this.
I've attach my project here (the makefile plus binary and elf file), but flash at your own risk!
7 years ago.
Hi Martin, Thanks for your help and please excuse the late reply.
Yes I can get it to bootloader mode. I've tried to upload the MSD-FRDM-KL25Z_Pemicro_v105.SDA and it worked: I get the MSD drive after replugging the USB port. Now after copying the mbed_if_v2.0_frdm_kl25z.s19 to the BOOTLOADER driver it does not work: no drive will show up (Win7).
I have the elf and the bin if they are of any help. I've uploaded the ELF via the gdb which was connected to the python gdb server (the documentation had an example which uploaded an ELF so I assumed ELF would be the right file). The bin of the same programm worked when just flashing it via the PyOCD skript. I have bin and ELF because I used the gcc toolchain. Any ideas? should I upload the bin/elf/source somewhere?