Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Receiving Data with BLE and sending them with SPI to a microcontroller, which is used to send data to PC by USB connecti

Hi, 

I am using a nRF52832 module to receive some data from another nRF52832, which is sending the digitalized data to the receiver. My receiver consists of a nRF52832 module connected to a STM32f103c8t6 MCU through SPI. I want to receive data with nRF, send it to STM32 using SPI, and then send the data to PC using USB connection. I did this because the UART baud rate is not enough for my work. now I have problem with connecting the nRF and STM with each other through SPI. I used the example SPIs in SDK17, and just changed the pin configuration. then I configure the STM and tried to received data from SPI and send it to PC. but it seems that the connection is not working. no matter what I send, I get 0xFF in PC. do you have any sample or help to find the problem?

here is the code for nRF:

 

here is the code for STM:

Parents
  • Hey,

    What if you used the nRF52840 instead of the STM32+nRF52832 ?

    The nRF52840 has the USB peripheral, and you got libraries for handling common USB classes like CDCM, HID ... 

  • I know that, but it will takes time to order nRF52840 and get it. Also, a STM micro is somehow necessary in my work. 

Reply Children
No Data