element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Personal Blogs
  • Community Hub
  • More
Personal Blogs
Legacy Personal Blogs 'Create an IoT system with FRDM-K64F and SDK - Part 1 : Enable the SD-Card'
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: bheemarao
  • Date Created: 28 Jan 2015 1:18 AM Date Created
  • Views 554 views
  • Likes 0 likes
  • Comments 0 comments
  • kds
  • frdm-k64
  • sdcard
  • ksdk
Related
Recommended

'Create an IoT system with FRDM-K64F and SDK - Part 1 : Enable the SD-Card'

bheemarao
bheemarao
28 Jan 2015

Here is a blog on how to test / configure SD-Card on K64 board using KDS + KDSK 1.1.0 (Newer version)

 

Pre-requisite for this project execution:


1) KDS (Kinetis Design Studio)

2) KSDK 1.1.0

3) FRDM-K64F

4) SD Card

 

We will be following below steps to perform the activity:


Step-1: Install KSDK1.1.0 update.

Step-2: Build Platform library.

Step-3: Build demo application.

Step-4: Import existing demo project to workspace then compile & execute the project.


KSDK platform


The platform folder is the most important folder in the KSDK. It contains the “foundation” of the KSDK, and stores the source code for the primary components including CMSIS header files, peripheral drivers, HAL, OS abstraction, startup, system services and linker files. Building a demo application successfully requires a majority of these components.


When building a demo application that utilizes the KSDK platform components, two methods are possible: including individual source files for each required piece (startup file, driver, etc.), or link in a library that contains all or relevant components of the platform folder. All demo applications in the KSDK utilize the latter approach, choosing to provide a library that contains all source code in the platform folder. This simplifies application development because it only requires the include paths to be set correctly in the project files, as opposed to the user manually adding each file needed by the application.


  • Install Eclipse update


Before using KDS IDE with KSDK, the KSDK Eclipse Update must be applied. Without this update, Eclipse cannot generate KSDK-compatible projects.

To install the update, follow these instructions:


image


Then proceed as below:

image


In the Repository archive dialog box, browse the KSDK install directory


image


Browse for the installation directory,


in my case it is located at “C:\Freescale\KSDK_1.1.0\tools\eclipse_update”

 

image



Click “Open”, and the “OK” button in the Add Repository dialog box.

 

image



Check the box to the left of the KSDK Eclipse update and click the “Next” button in the lower right corner and Follow the remaining instructions to finish the installation of the update.

 

After the update is applied, restart the KDS IDE for the changes to take effect.

 

You can check after the installation in installation details:


image


image


image



You can see the updates installed as “KSDK 1.1.0 Eclipse Update”

 

  • Build the platform library

 

KSDK Lib build:


As with the demo applications, each library configuration in the lib folder contains a folder for each supported toolchain. Each toolchain contains a folder for a specific SoC. The ksdk_platform_lib must be built for the specific SoC being used in the demo. This is discussed in detail in the subsequent toolchain-specific sections.

 

These steps show how to open and build the platform library project in KDS IDE. The platform library is required by the demo and does not build without it.

 

Select “File->Import” from the KDS IDE menu

 

image

 

Then follow as below:

image


Click the “Browse” button next to the “Select root directory:” option


image


Point to the platform library project for the appropriate device, which can be found as shown above.

 

“C:\Freescale\KSDK_1.1.0\lib\ksdk_platform_lib\kds\K64F12”


image


Now select the platform libraries from project folder then right click select the option as shown below:


image


You can see the progress bar as shown below: The library starts building after the build target is selected


image


After build is successful you can see the ‘Debug’ and ‘platform’  folder created in platform lib folder of K64 directory as shown below: these folders are necessary to compile the new created projects.


image



Now its time to build a Demo application project, in our case it is SDCard demo which we are going to execute.


  • Build a demo application


Select “File->Import” from the KDS IDE menu


image


Then next follow as below


image


Click the “Browse” button next to the “Select root directory:” option


image


Next select the option as shown below:


image


You can see the project is added to the project folder as shown below:


image


Now it’s time to compile/Build the project


image

You can see a progress bar of building the project, it is as shown below:


image


Now connect the SDCard to K64 board as shown below

image


Configure the project for debugging by following below steps


image


Select GDB Segger J-link option as shown


image


Right click and select the option “NEW” as shown


image


Then automatically our project “sdhc_sdcard_frdmk64f Debug” with Debug will be selected as shown


image


Then proceed by clicking ‘Debug’

You can see the debug progress and now its ready to debug as shown below:


image


Now you can execute the project by clicking the imagebimageutton

Parallelly you need to open the corresponding hyper terminal serial port from device manager as shown below in my case it is COM23 port


image


Open the hyper terminal from Putty (in my case) and provide the below info i.e baud rate to be 115200 and com port is COM23


image


Then you can see below output is seen in serial terminal window.

It displays the details about SD card like Card Capacity, Clock rate, Manufacturer, Product name, sd card version, read write speed ..Etc.

image


image


Happy SD Carding image image image





  • Sign in to reply
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube