Getting started with the TWR-K40D100M

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Getting started with the TWR-K40D100M

496件の閲覧回数
thomas_gaspard
Contributor I

Hello !

I am working with the TWR-K40D100M. This is my first experience with microchips so far.

Before I even start to use it for its intended purpose, I'd like to understand how this board works. I found no SDK for this board, so I took the one for the MK40DX256VMD10 MCU.

So, my goal now is to make the red LED D8 blink.

Just that.

And I don't find anywhere a PIN usage table/chart.

Do you know where I could find this please ?

Thanks a lot for your time,

ラベル(1)
0 件の賞賛
返信
2 返答(返信)

432件の閲覧回数
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi Thomas Gaspard,

Yes. There is no SDK for TWR-K40D100M board yet. Seems that you have download the SDK_2.2.0_MK40DX256xxx10.
There is no PIN usage table/chart for for TWR-K40D100M. You may have to check the schematic which can be download here(Tower K40D100M schematics(REV A)).
The LED D8 is connect to PTC7 of K40DX256VMD10. If you want to make the red LED D8 blink, please toggle the PTC7 pin. Please refer the gpio led_output example of SDK_2.2.0_MK40DX256xxx10(...\SDK_2.2.0_MK40DX256xxx10.zip\boards\twrk60d100m\driver_examples\gpio\led_output).

LED D8 PTC7 TWR-K40D100M.png

toggle D8 Tower K40D100M.png

Due to there is no SDK for TWR-K40D100M, you may need to use Pins tool and Clocks tool generate board related configuration by yourself. About the Pins tool and Clocks tool, you can refer: Eclipse MCUXpresso IDE 10.1 with integrated MCUXpresso Configuration Tools

Best Regards,

Robin

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信

432件の閲覧回数
mjbcswitzerland
Specialist V

Hi Thomas

Try:
http://www.utasker.com/kinetis/TWR-K40D100M.html

Free open source uTasker [K40] project on GITHUB (with supported version option for professional requirements).

Simulates the chip and allows applications to be created that then run on virtually all other Kinetis part without any porting effort (or different libraries).

Works in KDS, CW, MCUXpresso, IAR, Keil, Green Hills, Atollic, Rowley Crossworks, GCC, Visual Studio, so no restrictions and lack of support due to it being dropped in newer IDEs as it is an older part.


Get the pin usage table from the user's manual and use the simulation to also see them and verify that configuration is correct.

pastedImage_1.png

To blink LED D8 do the following:
1. Choose board in config.h
2. Select the project option BLINKY

3. Build with IDE of choice, load and run (it just so happens that this config already uses your LED)
4. Or do the same in Visual Studio and see the simulation of the board blinking the LED.
5. Examine the code and step it in the simulation to learn details. Then add your own code (making use of its USB and LCD support) to do more interesting things. (Also just remove BLINKY define to generate a much more powerful K40 project reference).

In case of doubt reference some videos, such as:
https://www.youtube.com/watch?v=K8ScSgpgQ6M
and the playlist: https://www.youtube.com/watch?v=kWNlsAoMly4&list=PLWKlVb_MqDQFZAulrUywU30v869JBYi9Q

Regards

Mark


Complete K40 solutions, training and support:http://www.utasker.com/kinetis.html
Kinetis K40:
http://www.utasker.com/kinetis/KWIKSTIK.html
http://www.utasker.com/kinetis/TWR-K40X256.html
http://www.utasker.com/kinetis/TWR-K40D100M.html

0 件の賞賛
返信