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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

935 次查看
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 回复

684 次查看
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 项奖励
回复