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
Embedded and Microcontrollers
  • Technologies
  • More
Embedded and Microcontrollers
Embedded Forum Freescale Kinetis software & mbed.org compiler
  • Blog
  • Forum
  • Documents
  • Quiz
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Embedded and Microcontrollers to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 15 replies
  • Answers 1 answer
  • Subscribers 474 subscribers
  • Views 1684 views
  • Users 0 members are here
  • kinetis
  • mbed
  • k64f
  • ksdk
Related

Freescale Kinetis software & mbed.org compiler

Former Member
Former Member over 11 years ago

Has anyone any experience (successful preferably) at exporting code from mbed to Kinetis SDK?

I have been playing with a FRDM K64F board and found it much easier to create code using the mbed compiler.

However debugging is a complete mystery to me ( other than printf statements)

The learning curve for KDSK etc is extreemly steep.

My main misfortune is to use WIN8.1

secondly to choose a recently released mbed device where most documentation is for something else!

So a few pointers would be gratefully received.

georgemm101

  • Sign in to reply
  • Cancel

Top Replies

  • Former Member
    Former Member over 11 years ago in reply to clem57 +1
    I was actually able to do this for the FRDM-K64F last week. I took one of the basic pre-built examples in mbed.org and brought it into Kinetis Design Studio, and could successfully compile and debug. I…
  • FreescaleTools_and_Software
    FreescaleTools_and_Software over 11 years ago +1
    Hi guys This discussion should be probably moved to the dedicated place in Design Center for the Freedom Development Platform HERE as the informations will be useful for other Freedom and mbed users Thank…
  • clem57
    clem57 over 11 years ago in reply to Former Member +1
    That's why I wait for others to cross the frontier! Clem
  • element14jamie
    0 element14jamie over 11 years ago

    Hello georgemm101,

    Welcome to the element14 Community, we hope you enjoy it. I will move this over to the Single-Board Computers area as it is a better fit

     

    Thank you,

     

    Jamie

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • vsluiter
    0 vsluiter over 11 years ago in reply to element14jamie

    Jamie,

    This is not single board computer stuff.... Embedded would be a better place

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • vsluiter
    0 vsluiter over 11 years ago

    With the online compiler you cannot debug (as in breakpoints, watches etcetera). You can download your project and import in Keil, but I have no experience with this. You might try to involve McuOnEclipse in this, he's a Freescale guru image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • element14jamie
    0 element14jamie over 11 years ago in reply to vsluiter

    Hello vsluiter.

    Thank you sir will move it over there.

     

    Jamie

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • clem57
    0 clem57 over 11 years ago

    This looks to be in the infant phase, but check out this link.image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago in reply to clem57

    I was actually able to do this for the FRDM-K64F last week. I took one of the basic pre-built examples in mbed.org and brought it into Kinetis Design Studio, and could successfully compile and debug. I can work on creating more detailed instructions, but the feature is working for me.

     

    One of the other things I learned is that the underlying software for the FRDM-K64F and FRDM-K22F boards on mbed.org are built on top of the Kinetis SDK framework already. So you can call KSDK HAL and driver API calls once you've included the proper header files. It's easier to see this once you export the project to KDS and you'll see a KSDK folder is part of the project.

     

    Will try to create a better step-by-step guide in a bit.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • clem57
    0 clem57 over 11 years ago in reply to Former Member

    Excellant! @anthony_h beat me to the punch.I have not gotten my board, but I will try/play when I do.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago in reply to Former Member

    Antony I would love to know how you imported a project from mbed to KDS.

     

    There seem to be so many import choices.

     

     

     

    George

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago

    In mbed, right click on your project and select "Export Program..."

    image

     

    Then in the dialog box that comes up, select the Kinetis Design Studio toolchain under "Export Toolchain:" and then click on the Export button. You could of course also select the other available toolchains like Keil or IAR.

    image

     

    The website will think for a while and then give you a zip file to download. Unzip it, and import it into KDS like normal (see here for an example: [FRDM-K64F + Kinetis Design Studio (KDS) + Software Dev Kit (SDK)] Tutorial: Toggling an RGB LED without Processor expert).

     

    It'll compile and there are OpenOCD/CMSIS-DAP debug configurations already prepopulated to easily start debugging via the OpenSDAv2 circuit on the board.

     

    Inside that zip directory you can also find the KSDK HAL code at \<project_name>\mbed\TARGET_K64F\TARGET_Freescale\TARGET_KPSDK_MCUS\TARGET_KPSDK_CODE

    This obviously is only true for devices supported by KSDK and mbed enabled, so the FRDM-K64F and FRDM-K22F

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago in reply to Former Member

    Thanks Anthony I will give it a go later.

     

    George

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
>
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