Compiling Quick Start Package for K22F Freedom Board With KDS 2.0.0 and KSDK 1.1.0

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

Compiling Quick Start Package for K22F Freedom Board With KDS 2.0.0 and KSDK 1.1.0

1,254 Views
calvin_mccoy
Contributor I

I'm trying to compile the the demo code that is available in the K22F Freedom Board Quick Start Package using KDS 2.0.0 and KSDK 1.1.0. I've imported the included KDS project, but it's having problems finding all the files it needs in the KSDK. So far I've managed to fix on my own:

  • The example project uses absolute paths so the whole quick start folder must be in the root of the KSDK folder
  • The project looks for a folder under /boards called "frmdk22f120m" and no such board exists. I make a copy of "frmdk22f" and renamed it to "frmdk22f120m" and now it seems happy with that
  • I had to adjust the path to libksdk_platform.a in the compiler settings. I pointed it to a a version I built using the provided KSDK platform lib library

After I fixed those issues, I found that there were MANY more broken paths in /drivers,/hal, and /system.  Also, under /board/common, the support folder for the fxos8700 accelerometer is completely missing.

I'm guessing this project was created with something other than KSDK 1.1.0 Is there going to be a version of this QSP that supports KSDK >=1.1.0? Thanks.

6 Replies

755 Views
Kan_Li
NXP TechSupport
NXP TechSupport

Hi Calvin,

Did you still have problem running the demo code? Please kindly let me know if you have any issue.

Best Regards,

Kan

0 Kudos

755 Views
timothyosborne
Contributor I

Kan,  I think it's less about running the demo than about *compiling* it as a starting point for other code projects.  I have the same issue, a lot of things had to be fixed up in the Project settings to get it to the point where it would even get to the linking stage (where many other issues popped up).  To re-iterate Calvin's question, will there be a KDS 2.0.0 project for the quick start demo code? If not, then Mark's code might be the right answer.

0 Kudos

755 Views
adriancano
NXP Employee
NXP Employee

Hi All,

The code example available in the QSP of the FRDM-K22F was built for the KSDK 1.0.0 and in order to build it correctly needs to be placed in the demos folder KSDK 1.0.0/demos because all the paths are relative to that location.

If you have installed the KSDK 1.1.0 even if you change all the paths to use the folder structure of this version the example project will have some issues, due to a change in the KSDK Drivers from one version to another. E.g. the ADC drivers of the version 1.0.0 are different from the version 1.1.0.

You can manage to make that changes and set the application to run with the KSDK 1.1.0 drivers version.

You can check the examples available for the FRDM-K22F in the KSDK 1.1.0 demos folder. Also you can check the Kinetis SDK v.1.1 Demo Applications User's Guide document in the doc folder to have a better reference of the available examples.

The USB stack is also implemented on this KSDK 1.1.0 version, please refer to the usb folder in the KSDK 1.1.0 installation.


Hope this information can help you

Best Regards,
Adrian Sanchez Cano

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

755 Views
timothyosborne
Contributor I

Perfect answer, thank you.

0 Kudos

755 Views
kurtbrunton
Contributor I

Calvin,

I just spent the last couple of days trying to get the FRDM-K22F running the demos. I was able to get things going after I found this: Writing my first KSDK Application in KDS - Hello World and Toggle LED with GPIO Interrupt

I guess I need to say that this is running on a Windows 7 machine.

Basically these are the steps that I followed from the "Getting Started with Kinetis SDK (KSDK)" doc, section 5, that is in the doc directory of the KSDK install:

1) Install KDS2.0.0

2) Install KSDK 1.1.0

3) Download and install the J-Link software pack from: SEGGER - The Embedded Experts - Download, this updates the j-link debug dll.

4) Run KDS IDE, you will then need to install new plugins for the KSDK. Instructions are in the Getting Started with Kinetis SDK (KSDK) doc, section 5.

5) Change the bootloader to use the OpenSDA v2.1 J-Link firmware. Instructions on are page 9 of the Quick Start Guide for FRDM-K22F. You only need to download the firmware from the link at the bottom of the https://segger.com/opensda.html page.

6) In the KDS IDE and following the instructions in the "Getting Started..." section 5, build the platform library and one of the demo applications. I started with the Hello World demo.

7) With the KDS IDE, debug the demo app to load it to the K22F. Instructions are in "Getting Started..." and also the "Writing my first KSDK..." docs. You can create a new debug configuration or I just selected the "hello_world_frdmk22f debug jlink" configuration that was already there.

I did have some problems with the virtual serial port hanging, but pressing the reset button on the board a few times seemed to fix it.

Kurt

0 Kudos

755 Views
mjbcswitzerland
Specialist V

Calvin

If you prefer not to wait until the package is complete you can try with http://www.utasker.com/kinetis/FRDM-K22F.html

This includes accelerometer, USB, file systems, low power, RF module support and much more for your board - it will work out-of-the-box with KDS2.0.0 and many other solutions (CW, IAR, Keil, CooCox, Green Hills, Atollic, Crossworks) - plus you can simulate the board and processor.

It is completely free for non-commerical work, with fast-track support in this forum.

Regards

Mark

Kinetis: http://www.utasker.com/kinetis.html

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