Seeking Kinetis demo code under KDS 3.0.0

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

Seeking Kinetis demo code under KDS 3.0.0

868 Views
garylynch
Contributor IV

I am trying to get up to speed with Kinetis processors, have
a Tower TWR-K60D100M and Kinetis Design Studio 3.0.0.  This
is my first ARM Cortex project.

 

I have downloaded the "Kinetis Peripheral Module, Quick
Reference":
- http://cache.freescale.com/files/32bit/doc/quick_ref_guide/KQRUG.pdf

which calls out a demo code package, KINETIS512_SC.zip, that
I also have installed. I have gotten the LEDs to blink and
want to move on to reading the switches.  The Quick User
Guide doesn't provide much help in configuring an I/O port
as an input.  On page 18 there is a snippet:
>
> /* Configure the PTA4 pin for its GPIO function */
> PORTA_PCR4 = PORT_PCR_MUX(0x1); // GPIO is alt1 function for this pin
>
> /* Configure the PTA4 pin for rising edge interrupts */
> PORTA_PCR4 |= PORT_PCR_IRQC(0x9);
>
> /* Initialize the NVIC to enable the specified IRQ */
> enable_irq(87);
>

which claims to configure a port, but it is incomplete.
Furthermore, I can't find this snippet in the files I
unzipped.

 

I can find sample code for my processor under Code Warrior
and other processors under KDS, but not the two together. Is
there a general support package for my configuration that
also includes more complex examples like driving an SPI or
CAN port, running continuous conversions on the A/D
converter, or generating hardware PWM on a digital output?

 

(Advance thanks for any tips.)

Labels (1)
0 Kudos
4 Replies

491 Views
DavidS
NXP Employee
NXP Employee

Hi Gary,

Over time the development environment has been changing since the KQRUG.pdf was published.

A good starting point is to use KDS_3.0.0 and KSD_1.3.0.

KDS is the IDE.

KSDK has the peripheral drivers, examples and demo's for your hardware/device, and can work baremetal or with RTOS.

Please review the PDF's in the C:\Freescale\KSDK_1.3.0\doc folder for associating the KDS with the KSDK.

Especially Getting Started with Kinetis SDK (KSDK) v.1.3.pdf .

A new platform than our Tower is called Freedom and the FRDM-K64F is widely used for learning the tools.

Some slightly but very applicable videos to review:

Kinetis Design Studio

And online wake through training (sorry not for twr-60d100m but has various Freedom platforms but the material directly applies):

Freedom Development Platform for Kinetis K|Freescale 

Regards,

David

491 Views
garylynch
Contributor IV

I have spent most of my day trying to follow your
suggestions. Installing KSDK was the hardest.  I then
followed the video at:
- https://community.freescale.com/videos/3281

to include SDK into KDS. Around 3:45 he demonstrates
selecting the ZIP file, which 'completes the update.' When I
did this I got an sequences of error messages of the form:
>
> Missing requirement: .* requires .* but it could not be found
>

I managed to fix the first 2, but each fix only uncovers a
new error.  The most recent is:
>
> Cannot complete the install because one or more required items could not be found.
>  Software being installed: KSDK 1.3.0 Eclipse Update 1.0.0.b150914 (com.freescale.processorexpert.kinetis-ksdk-1.3.0.sp.feature.group 1.0.0.b150914)
>  Missing requirement: KSDK 1.3.0 Eclipse Update 1.0.0.b150914 (com.freescale.processorexpert.kinetis-ksdk-1.3.0.sp.feature.group 1.0.0.b150914)
>    requires 'com.freescale.processorexpert.feature.core.kpsdk.feature.group [1.3.0,2.0.0)' but it could not be found
>
I know this is an Eclipse issue and is probably outside the
scope of this forum, but I am no Eclipse guru and have found
no authoritative help sources in this area.  I will keep
looking until I fix it.

0 Kudos

491 Views
DavidS
NXP Employee
NXP Employee

Hi Gary,

Please review these two Community Post to see if it helps.

KDS 3.0 and KSDK 1.3 Eclipse Update

KDS install KSDK 1.3 patch issue 

Regards,

David

491 Views
garylynch
Contributor IV

Thanks for the additional thoughts.

Your first link leads to a discussion of problems getting the debugger to work after completing the SDK install, and I am nowhere near that far along. 

Your second link is intercepted by some sort of access control.  Because my IP address is in Germany, your server only addresses me in German, but my approximate translation of the message would be:      
>
      > Access to this area or to this content is limited. If in
      > your opinion this is a mistake, please turn to your
      > administrator or the person who referred you to this page.
      >
       If I show this to my sysadmin, he will laugh in my face, so you are my only hope of penetrating Freescale's shields. 

Meanwhile a Google search of the subject line you show for the second topic returns no exact hits, but a less specific search turns up an interesting discussion: 

I am still parsing it to see if I can follow the directions. It appears I have to know the exact version number of my KDS as well as the version number of the INDIVIDUAL COMPONENTS of SDK, and that is going to be rough. 

The discussion is about installations on a Linux system, so it is unclear how applicable that is to my Windows 7 install, but when I run a byte-by-byte compare of the original poster's diagnostic message, it is identical with mine--down to the name of the component. 

0 Kudos