This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Send data from mobile app via ble_uart and send the data to another nrf52 via spi

I have two nrf52 chips connected to each other via SPI

I send data from my Nordic Uart app to my nrf52 chip 1 and I want to send the data that I receive from Mobile app to another Nrf52 chip 2 that is connected via SPI and it is in slave mode.

I completed merging two examples ble_app_uart and spin.

When i call the function to transfer a static data via spi in main  the data is transferred to another.

When I receive the data in ble_nus and I try to send the data the data is not transferred.


This is the function that transfers the initiates the spi transfer process "send_data_to_biboA();"

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/**
* Copyright (c) 2014 - 2018, Nordic Semiconductor ASA
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form, except as embedded into a Nordic
* Semiconductor ASA integrated circuit in a product or a software update for
* such product, must reproduce the above copyright notice, this list of
* conditions and the following disclaimer in the documentation and/or other
* materials provided with the distribution.
*
* 3. Neither the name of Nordic Semiconductor ASA nor the names of its
* contributors may be used to endorse or promote products derived from this
* software without specific prior written permission.
*
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX