TWR-K40D100M WORKING

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

TWR-K40D100M WORKING

Jump to solution
922 Views
keerthanas
Contributor I

Hi, This is keerthana. I am new to free scale products. I am currently working in TWR-K40D100M DEVELOPMENT BOARD. How can I import GPIO example code using CodeWarrier IDE. I had found example code in codewarrier for MK40DX256. But PK40DX256 in TWR-K40DX development board. please let me know.

0 Kudos
1 Solution
701 Views
DavidS
NXP Employee
NXP Employee

Hi Keerthana,

The project example you reference is for the older initial TWR-K40DX256 tower board.

To get a baremetal projects you can do the following:

From the http://www.freescale.com/tower web site you can find the Kinetis TWR-K40D100M product page by clicking plus logo next to "MCU and Processor Modules" then click on "Kinetis MCU Modules".  Then click on the TWR-K40D100M.

Short cut link to TWR-K40D100M product page.

Now click on the Download tab, then scroll to bottom of page and Download the "Kinetis 100MHz Rev 2 Example Projects".

Kinetis 100MHz Rev 2 Example Projects (REV 1.0)

Kinetis 100MHz Rev 2 Example Projects.

  • ZIP (722.5 kB) KINETIS512_V2_SC

If you want an RTOS that supports the TWR-K40D100M, you can get the MQX RTOS from http://www.freescale.com/MQX .

Regards,

David

View solution in original post

0 Kudos
6 Replies
702 Views
DavidS
NXP Employee
NXP Employee

Hi Keerthana,

The project example you reference is for the older initial TWR-K40DX256 tower board.

To get a baremetal projects you can do the following:

From the http://www.freescale.com/tower web site you can find the Kinetis TWR-K40D100M product page by clicking plus logo next to "MCU and Processor Modules" then click on "Kinetis MCU Modules".  Then click on the TWR-K40D100M.

Short cut link to TWR-K40D100M product page.

Now click on the Download tab, then scroll to bottom of page and Download the "Kinetis 100MHz Rev 2 Example Projects".

Kinetis 100MHz Rev 2 Example Projects (REV 1.0)

Kinetis 100MHz Rev 2 Example Projects.

  • ZIP (722.5 kB) KINETIS512_V2_SC

If you want an RTOS that supports the TWR-K40D100M, you can get the MQX RTOS from http://www.freescale.com/MQX .

Regards,

David

0 Kudos
701 Views
keerthanas
Contributor I

Hello Mr.DavidS,

            Thanks for your reply. I have tried the codes which you sent yesterday. But It is not properly built by the compiler. As  I am new to CodeWarrier IDE as well as TWR-K40D100, not able to find the cause of the error.  But Code Given in this link https://community.freescale.com/docs/DOC-1023 for LED toggle is working for me. 

    I want to know the programming basics of TWR-K40D100 . How can I get the documents regarding Programming.

0 Kudos
701 Views
DavidS
NXP Employee
NXP Employee

Hi Keerthana,

That is a great educational link but it is now old and only worked with the TWR-K40X256 (old initial silicon) and not the TWR-K40D100M (newer silicon).

You can use those resources as a guide but you really need to download and use the code options I presented in last post.

Advice:  The TWR-K40 hardware is getting old and having less and less support to it.  For training I would recommend purchasing a Freedom board (range from $10-$35) and specifically the FRDM-K64F.

The Freedom boards have most recent support in the KDS (Kinetis Design Studio IDE) and KSDK (Kinetis SDK).  Both are free of charge.  KSDK has lots of examples in it.  The web site has DOC's and Video's too.

Regards,

David

0 Kudos
701 Views
keerthanas
Contributor I

Hello Mr.David,

            Thank you so much. Is it possible to give the procedure for import the projects which are given in the link you have sent. When I tried to import and build the project given in that link,It shows  an error as in the image attached here.  

0 Kudos
701 Views
DavidS
NXP Employee
NXP Employee

​Hi Keerthana,

When you do the import process, to you copy the project to the workspace (there is a check box for this) or do you leave the files where they are located (check box not checked)?

In general you should not have the check box checked.  The files should remain where they are in the folder structure so that the Paths defined in the Project Properties remain valid.

I also as a rule of thumb place my workspace in the root directory of the bare metal code. 

Regards,

David

0 Kudos
701 Views
keerthanas
Contributor I

Hello Mr.David,

Thank you. Please guide me to create a ProcessorExpert project in codeWarrior . I imported and debug the example project successfully. When I tried to debug my own code in ProcessorExpert, its terminated and points to CPU Interrupt. Not able to find the problem. Please find the attachment

With Regards,

Keerthana. S

0 Kudos