Hi!,
I'm trying to send the value of eCompass via SPI from the FRDM-K64F. Based on the KSDK 2.0 examples I have made this KSDK 2.0 project.
SIMPLY_ROVER/main.c at master · spock540/SIMPLY_ROVER · GitHub
I have been reading each line and typing in the new project to try to understand the code and go learning C. My knowledge of C and Sensor Fusion are very poor.
I wanted to test the code but I encounter my first problem, when the code is executed not print anything on the console (in minicom). It's as if all calls to print() are omitted. I have tried in another KDSK 2.0 project and works well.
What is the reason for this? I also appreciate your suggestion about the code for transfering data in slave mode.
I tried using this API, Kinetis SDK 2.0 API Reference Manual: SPI Driver
but I found the fsl_spi.h file in the directory. Only fsl_dspi.h
Greetings
I was reading this and I tried with -specs=rdimon.specs but not works to me.
Hi Javier,
I think that the following post created by our colleague Erich Styger might be helpful for you, it explains how to enable semihosting with KSDK 2.x:
https://mcuoneclipse.com/2016/04/09/semihosting-with-eclipse-and-the-nxp-kinetis-sdk-v2-0/
Regarding the SPI slave example, you can use one of the DSPI example projects that comes with KSDK:
Hope it helps!
Best Regards,
Carlos Mendoza
Technical Support Engineer
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------