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

Transfer large data 2 board nrf52840

Hello! I use 2 board nrf52840! I want to transfer large data ( 1~2MBytes) from board1 to board2 with wire to connect. Can have solution for me? (SPI I2C or uart).

Parents
  • Hi,

    We have examples for all the different serial interfaces you list(SPI, I2C and uart). You can find them in the SDK folder SDK_folder\examples\peripheral.

    You can e.g. program one of the boards with the spi example, and the other board with the spis example. When you connect the boards, you can observe that the board running the slave application receives data from the spi master board.

    1. That is correct. the SPI Slave Peripheral in the nRF52832 only has the EasyDMA feature, it does not have the ArrayList(Autolog) feature like the SPI Master. This means that you will only be able to send 255 bytes (since the TXD.MAXCNT is a 8-bit register) without involving the CPU. After 255 bytes you have to update the pointers to the TX and RX buffers and start another transaction.

    2. You should be able to transmit from the slave to the master, at the same time the slave receive data from the master

    3. Both the SPI slave and master support bitrate of 8 Mbps.

Reply
    1. That is correct. the SPI Slave Peripheral in the nRF52832 only has the EasyDMA feature, it does not have the ArrayList(Autolog) feature like the SPI Master. This means that you will only be able to send 255 bytes (since the TXD.MAXCNT is a 8-bit register) without involving the CPU. After 255 bytes you have to update the pointers to the TX and RX buffers and start another transaction.

    2. You should be able to transmit from the slave to the master, at the same time the slave receive data from the master

    3. Both the SPI slave and master support bitrate of 8 Mbps.

Children
No Data
Related