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.
10 years, 8 months ago.
0201 firmware issue — USB disconnection after copying the new binary
I've flashed the mbed firmware on my kl05z board and I have a small issue with it. Every time I copy over a new binary, the USB reconnects, which makes OS X unhappy, throwing warnings about unsafely ejected device in my face.
I remember the same issue happening with original lpc1768 mbed board, which was fixed later, can the same fix be applied for kl05z?
Question relating to:
1 Answer
10 years, 8 months ago.
If the FRDM-KL05Z is anything like the FRDM-KL25Z, this is probably not going to be fixed. The reason being that the official mbed boards have an onboard flash IC that's used for LocalFileSystem and storing firmware images. When you press Reset, the interface chip checks for the newest file, and if it's different than the last one that was flashed it re-flashes the microcontroller before resetting it. The FRDM boards don't have this IC however, so the interface chip flashes the microcontroller immediately after a file is copied, and then resets itself. If I recall correctly, OS X Mavericks only pops up a notification if a device is removed without being ejected, so it's less annoying than previous versions of OS X that popped up a big fat dialog that had to be dismissed. For me personally, the more annoying part is that the serial port disconnects as well, so on Windows I have to restart Tera Term every time I re-flash...
Alt+I, alt+n, <enter>, alt+b, that resets serial in TeraTerm :). (well assuming with a new connection it selects the correct port automatically, it does for me, but then that is the only active one I got).
Embedded Artists have a firmware version for the LPC1549 (or something close to that), which only resets the USB MSD stack, and keeps the USB Serial stack running, solving the serial issue, not available for the KL05 yet though. And the problem for the USB MSD part is indeed since there is no flash IC, it requires an eject to force the OS to re-read the contents of the flash drive.
posted by 31 Mar 2014