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.
Solved! Go to Solution.
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.
If you want an RTOS that supports the TWR-K40D100M, you can get the MQX RTOS from http://www.freescale.com/MQX .
Regards,
David
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.
If you want an RTOS that supports the TWR-K40D100M, you can get the MQX RTOS from http://www.freescale.com/MQX .
Regards,
David
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.
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
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
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