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, 1 month ago.
USB drive + serial + debug possible on Mac OS X?
I'm using Mac OS X.9 *Mavericks* and OS X.10 *Yosemite*.
Pre-requisite
Update bootloader to 1.14 as per http://www.pemicro.com/opensda/
Update firmware
Three options:
1. OpenSDA Firmware (MSD & Debug) as per http://www.pemicro.com/opensda/
lsusb gives
Bus 020 Device 007: ID 1357:0089 1357 OpenSDA Hardware Serial: SDA637E2E03
Results are
- USB drag and drop programming YES drive available, named FRDM-KL25Z and read-write
- USB Virtual COM port for serial terminal YES
- CMSIS-DAP interface for programming and debugging from offline tools NO
2. Offical mbed driver 20140530_k20dx128_kl25z_if_opensda as per http://developer.mbed.org/handbook/Firmware-FRDM-KL25Z
lsusb gives
Bus 020 Device 031: ID 0d28:0204 0d28 MBED CMSIS-DAP Serial: 02000203D65F2E032BA3D3FB
Results are
- USB drag and drop programming NO drive available, named MBED but considered as read-only on Mac OS X although read-write on Windows XP.
- USB Virtual COM port for serial terminal YES
- CMSIS-DAP interface for programming and debugging from offline tools NO Issue 6 "CMSIS-DAP Write Error (0x04)" as per https://community.freescale.com/docs/DOC-100441. arm-none-eabi-gdb can't connect to openocd.
3. OpenSDA driver and J-Link as per https://community.freescale.com/thread/317201
lsusb gives
Bus 020 Device 006: ID 1366:0105 1366 J-Link Serial: 000621000000
Results are
- USB drag and drop programming NO no drive available
- USB Virtual COM port for serial terminal YES
- CMSIS-DAP interface for programming and debugging from offline tools NO Issue 6 "CMSIS-DAP Write Error (0x04)" as per https://community.freescale.com/docs/DOC-100441. arm-none-eabi-gdb can't connect to openocd.
Conclusion
Whatever the option, I can't manage to get the three features.
Anyone luckier than me? Or should we wait for an update of the official mbed driver?
Thank you.
Thanks for taking the time to write this all up. I'll start having a look at the official mbed driver. Cant help much with the others. Keep you posted.
posted by Sam Grove 21 Oct 2014mbed driver and openOCD issue you described. If you run it with pyOCD, is it the same?
posted by Martin Kojtal 22 Oct 2014@Martin: With which firmware? If pyOCD only encapsulates openOCD and/or GDB, it isn't going to change much.
posted by Rei Vilo 22 Oct 2014The issue has been recognized and raised here https://github.com/mbedmicro/CMSIS-DAP/issues/69 . We are in the process of fixing it. Please sit tight and we should have a fix out soon.
-Austin Team mbed
posted by Austin Blackstone 24 Oct 2014Great to know!
I have now the same issue with the Nucleo F401RE: the USB drive used to be recognised on Mac OS X.9 Mavericks but it fails now on Mac OS X.10 Yosemite.
posted by Rei Vilo 24 Oct 2014