I'm working on a project using the MKL27Z128/256. The project uses the "usb_device_hid_generic" project in KSDK 2.0 as a starting point.
On power cycle or hardware reset, my code runs just fine.
The problem is with using the KBOOT bootloader in the ROM to perform SW updates in the field via USB HID.
I can programmatically jump to the bootloader and perform the update, but when blhost attempts to reset the device, it doesn't come up. I don't see my debug messages on LPUART0, and it doesn't enumerate on USB.
blhost -u 0x15a2,0x0073 flash-erase-all
blhost -u 0x15a2,0x0073 flash-image code.s19
blhost -u 0x15a2,0x0073 reset
Another developer asked a similar question about their MKL27Z128 design using SDK 1.3: KL27z getting crash on program booting from ROM(bootloader) using blhost reset command , but I'm not sure if the solution there still applies, or how to implement it.