The website does not contain a link to K22 example projects for the Freedom board platform. The Freedom board webpage for the KL25 has a link to an example project.
Keil has a Pack for the K22 family - it contains the startup and header files and two example programs: Blinky and RTX_Blinky.
This Pack will eventually work with all tools - but everybody is still working on their CMSIS-Pack implementation.
You can use this file with Keil MDK (free up to 32K) and it supports OpenSDA.
Or - you can take the files and easily port them over to the tool of your choice. This is allowed by ARM.
and scroll down and download it:
Kinetis SDK has samples for both FRDMK22 and FRDMK64 boards. They work out of the box. You can import them in Kinetis Studio easily, compile and run directly from it.
There are samples for most peripherals as well as USB-specific samples
You can also check out http://www.utasker.com/kinetis/FRDM-K22F.html
This is a framework for a boot loader (KBOOT, SREC, SD card, KBOOT USB-HID, USB-MSD, Ethernet web server) and application. It is not a collection of samples but a "single" complete project which supports many aspects of the K22 (with various composite USB interfaces, FAT, low power, RF module, etc.) and also allows FreeMaster to be used via USB or UART in any project (pre-intergrated).
It builds with CW, KDS, IAR, Keil, Rowley Crossworks, Atollic, GCC, Green Hills, CooCox and VisualStudio, so needs no porting.
It also builds for all KL, KV, KE and K processors/boards so needs no porting between devices (as long as the part has a corresponding peripheral it can work with the particular feature). This allows you to develop a project on the FRDM-K22 and move to say a K64 with almost no effort (and the usual porting) to take advantage of Ethernet and TCP/IP (which is also included) or to a K70 to use a TFT (which is also included in the single project). Used with VisualStudio it simulates the processor and board in (approx.) real-time including simuation of the peripherals, interrupts, DMA and various external parts (like I2C and SPI devices or LCDs or TFT etc.)
Kinetis: µTasker Kinetis support
K22: µTasker Kinetis FRDM-K22F support / µTasker Kinetis TWR-K22F120M support
For the complete "out-of-the-box" Kinetis experience and faster time to market
If you download Kinetis SDK, all of the examples are included in the "demo" folder under the parent KSDK directory. They aren't on the net that I know of other than by downloading the actual KSDK package, installing it, and sifting through them there. These include examples for GCC, IAR, KDS, etc...
If you are using KDS, you can simply import the project into KDS, build it, and then program the board and run it.
I just did what you said but while building it gives me 2 errors that are :
do you know what the problem is about?
Did you actually build the library? Did you add the platform_lib.a to your objects?
No actually I'm new with this environment I don't know how to add lib. I was searching in the internet to figure it out.
can you help me?
Are you actually using KDS in Eclipse? There is a getting started document which you should carefully follow the steps in
Depending on your version you may need to use a different document, but the premise is the same.
This error is caused by no build libraries.
But you can avoid these errors it by importing .wsd files.
Please, go to File -> Import in KDS
And now you see what you need for the libraries for this example
I hope this helps you,
Thank you so much it worked, but while debugging which one should I choose?
It still doesn't debug.
it depends, what you have.
Please, look at Device Manager:
And according to it, it is needed to set debug configuration.
Kinetis Design Studio Videos, Part 3: Debugging with Kinetis Design Studio
Retrieving data ...