Where can I access example projects for the K22 Freedom Board?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Where can I access example projects for the K22 Freedom Board?

2,832 Views
adamgarrison
Contributor III

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.

 

Thank you,

 

Adam

Labels (1)
11 Replies

1,625 Views
bosleymusic_com
Contributor IV

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.

0 Kudos

1,625 Views
negarerfanian
Contributor II

Hi,

I just did what you said but while building it gives me 2 errors that are :

pastedImage_0.png

do you know what the problem is about?

0 Kudos

1,625 Views
ivadorazinova
NXP Employee
NXP Employee

Hello Negar,

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

K22_1.png

K22_2.png

And now you see what you need for the libraries for this example

K22_3.png

I hope this helps you,

Best Regards,

Iva

1,625 Views
negarerfanian
Contributor II

Hello Iva,

Thank you so much it worked, but while debugging which one should I choose?

pastedImage_0.png

It still doesn't debug.

0 Kudos

1,625 Views
ivadorazinova
NXP Employee
NXP Employee

Hello Negar,

it depends, what you have.

Please, look at Device Manager:

openSda.png

And according to it, it is needed to set debug configuration.

Please, see

Video Link : 3283

Best Regards,

Iva

0 Kudos

1,625 Views
bosleymusic_com
Contributor IV

Did you actually build the library? Did you add the platform_lib.a to your objects?

0 Kudos

1,625 Views
negarerfanian
Contributor II

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?

0 Kudos

1,625 Views
bosleymusic_com
Contributor IV

Are you actually using KDS in Eclipse? There is a getting started document which you should carefully follow the steps in

http://cache.freescale.com/files/soft_dev_tools/doc/support_info/KSDKGSUG.pdf?fsrch=1

Depending on your version you may need to use a different document, but the premise is the same.

0 Kudos

1,625 Views
alexfeinman
Contributor III

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

0 Kudos

1,625 Views
mjbcswitzerland
Specialist V

Hi

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.)

Regards

Mark

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

0 Kudos

1,625 Views
robertboys
Contributor IV

Hello

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.

www.keil.com/dd2/pack

and scroll down and download it:

pastedImage_0.png

Bob

ARM

0 Kudos