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:
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.
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.
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!
-----------------------------------------------------------------------------------------------------------------------
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
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