Tools
Kinetis Design Studio Integrated Development Environment (IDE)
The
Kinetis Design Studio (KDS) is a complimentary integrated development environment for Kinetis MCUs that enables robust editing, compiling and debugging of your designs. Based on free, open-source software including Eclipse, GNU Compiler Collection (GCC), GNU Debugger (GDB), and others, the Kinetis Design Studio IDE offers designers a simple development tool with no code-size limitations.
You have to use an old Version (2.0.0, current is 3.2.0) for the veloblingbling project because the Processor Expert USB Stack does not work with newer Kinetis Design Studio Integrated Development Environment.
Processor Expert Software and Embedded Components
Processor Expert Software is a development system to create, configure, optimize, migrate, and deliver software components that generate source code for our (Freescale/NXP) silicon.
Unfortunately the Processor Expert
USB Stack v4.1.1 NXP bare metal (no OS) USB Stack is no longer supported. But you can still find it under
(ARCHIVED) USB Stack. You need a Windows PC to install, but the Processor Expert components can be used for Linux boxes too, the PEupd files are in the directory
C:\Freescale\Freescale USB Stack v4.1.1\ProcessorExpert\Components
and have to be imported into the KDS IDE: Processor Expert -> Import Components.
I will migrate the Velo Bling-Bling USB software from Freescale USB Stack v4.1.1 to Erich Styger's USB Stack.
Debug Adapter
The KDS supports following adapters (protocols):
- OpenSDA Serial and Debug Adapter (proprietary Freescale/NXP/P&E Microcomputer Systems)
- Segger (industrial standard)
- OpenOCD,
I propose to use a Freescale/NXP Freedom Board e.g.
FRDM-K22F as a debug adapter. I use the OpenOCD/CMSIS-DAP/mbed-interface protocol (factory set on FRDM-K22F).
Quote from
Freedom Board for Kinetis K22F Hardware (FRDM-K22F), Users Guide
3.2.1 Debug interface
Signals with SPI and GPIO capability are used to connect directly to the SWD of the K22F. These signals
are also brought out to a standard 10-pin (0.05”) Cortex debug connector (J11). It is possible to isolate the
K22F MCU from the OpenSDAv2 circuit and use J11 to connect to an off-board MCU. To accomplish this,
cut the trace on the bottom side of the PCB that connects J7 pin 2 to J11 pin 4. This will disconnect the
SWD_CLK pin to the K22F so that it will not interfere with communication to an off-board MCU
connected to J7. The J11 header is populated by default. A mating cable, such as a Samtec FFSD IDC cable, can then be
used to connect from the OpenSDAv2 of the FRDM-K22F to an off-board SWD connector.
You can still use the FRDM-K22F as a prototype board. You should solder a pinheader and plug a jumper if you want to use the FRDM-K22F as a prototype board.
See also an excellent introduction to
OpenOCD/CMSIS-DAP Debugging by Erich Styger.