11 Feb 2015
The Freescale FRDM-K64F is a small ARM Cortex-M4 board with 120MHz, 1MB flash memory, 256KB RAM, USB and ethernet. It comes with OpenSDAv2, a serial and debug adapter, supposedly open source. It implements CMSIS-DAP.
Strangely, the demo app uses a serial with 230400 bps, one can connect with
cu -l /dev/ttyACM0 -s 230400
.
GCC toolchain
is supported, I installed gcc-arm-none-eabi-4_8-2014q3-20140805-linux.tar.bz2
to /opt/
and set the environment variable
export ARMGCC_DIR=/opt/gcc-arm-none-eabi-4_8-2014q3/
.
The KDS is an Eclipse-based IDE, it comes with openocd and some udev rules.
Use openocd -f kinetis.cfg
, there is a patch not in openocd mainline with Kinetis support.
Connect to openocd:
telnet localhost 4444
Use gdb (/opt/gcc-arm-none-eabi-4_8-2014q3/bin/arm-none-eabi-gdb) with an .elf file to flash and/or debug:
set mem inaccessible-by-default off target remote localhost:3333 monitor reset halt load
posted at: 01:47 | path: /projects | permanent link