Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
7 years, 11 months ago.
How to connect Redbearlab BLE nano module to FRDM K64F MCU via SPI to exchange data?
Hi, I am trying to use the RedBearLab BLE Nano module to exchange data between a mobile app and K64F micro controller. The mobile app is already provided by redbearlab and i am able to exchange messages between my computer using cool term and the app with this code;
https://developer.mbed.org/teams/RedBearLab/code/nRF51822_SimpleChat/?platform=RedBearLab-BLE-Nano
I would now like to send data from the app to the BLE Nano (using BLE protocol) and then from Nano to K64F via SPI. There is a program provided by mbed 'SPI_Demo_Nano";
https://developer.mbed.org/teams/RedBearLab/code/SPI_Demo_Nano/?platform=RedBearLab-BLE-Nano
However, i don't understand how to setup the SPI connection between the K64F and BLE nano, all i know is the hardware pinout from data sheets. I would also like to send data from the BLE to the MCU and store it, I would really appreciate any help.
1 Answer
7 years, 11 months ago.
Mateusz,
Thanks for the question :)
Have you had a look at:
https://developer.mbed.org/forum/helloworld/topic/2541/
https://developer.mbed.org/questions/54348/With-SPI-how-do-you-read-from-slave/
This should give the basis of allowing communication between the two.
Also, consider UART as well to communicate, if you have issues.
Regards,
Andrea, team mbed