How can I download the SPI Sample Code for the K60 MCU ?

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

How can I download the SPI Sample Code for the K60 MCU ?

952件の閲覧回数
johnng
Contributor I

I have the CW to generate the BSP for the TWR-K60D100M module.  I need to add the SPI driver component in the BSP.  How can I do it ?

 

Thanks,

John

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

701件の閲覧回数
trytohelp
NXP Employee
NXP Employee

Hi,

You must install CW for MCU v10.5 and MQX V4.0.2 (these are the last versions).

Under MQX installation, please have a look to:

      - the folder \Freescale_MQX_4_0_2\doc\tools\cw -> the manual FSL_MQX_in_CW_10_x.pdf,

      - the folder \Freescale_MQX_4_0_2\doc -> FSL_MQX_release_notes.pdf

the user_config.h will allow you to enable or not the BSP functions.

++++++++++++++++

extract of Manual

SPI I/O Driver

This driver supports the operation master mode. If enabled in user configuration, the SPI device drivers are installed during the BSP startup code as “spi0:” (or “spiX:” where X is index of the SPI module used). The SPI driver is significantly rewritten in the MQX 4.0, so that there is no distinct interrupt or polled driver type. See I/O User Guide for details. On Kinetis and Vybrid platforms, the driver uses DMA to function.

++++++++++++++++

There is an example for SPI ... under Basic example.

Regards

Pascal

0 件の賞賛
返信