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

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

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

936 Views
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

Labels (1)
0 Kudos
Reply
1 Reply

685 Views
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 Kudos
Reply