Author Topic: SPI on Kinetis MCU?  (Read 1265 times)

0 Members and 1 Guest are viewing this topic.

Offline eecookTopic starter

  • Regular Contributor
  • *
  • Posts: 118
  • Country: ar
SPI on Kinetis MCU?
« on: June 23, 2018, 12:06:01 am »
Hi All,

Has anybody else experienced tremendous frustration trying to get the SPI bus to do anything at all on a Kinetis MCU? I have 2 devboards (K22F and K64F). I have tried the code from the KSDK v1.3 in all the variants it comes in, on both of them, including Slave, Master, Loopback, Blocking, non-blocking, etc, etc.
I have downloaded code from github, made my own tweaks, and nothing! All the SPI lines are idle when I look at them with the scope and cannot get it to read data when using it as a Slave.
I have tried many of the KSDK samples like the UART and GPIO interruptions and it works just fine, but SPI seems to have it's own personality arghhh!!!

Anyways, thought I could just share the frustration.
Nullius in verba
 

Offline mac.6

  • Regular Contributor
  • *
  • Posts: 225
  • Country: fr
Re: SPI on Kinetis MCU?
« Reply #1 on: June 23, 2018, 12:01:10 pm »
KDSK1.3 is obsolete, move to mcuxpresso sdk 2.2 at least. Remember also to enable SPI clock and assign correct pinmux.
 
The following users thanked this post: eecook

Offline eecookTopic starter

  • Regular Contributor
  • *
  • Posts: 118
  • Country: ar
Re: SPI on Kinetis MCU?
« Reply #2 on: June 25, 2018, 10:45:16 pm »
KDSK1.3 is obsolete, move to mcuxpresso sdk 2.2 at least. Remember also to enable SPI clock and assign correct pinmux.

Worked out of the box with MCUXpresso. Thank you!
Nullius in verba
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf