why can't use memcpy for copy buffer?

Hi 

    I use nRF7002-DK, SDK:V2.5.2, SPI API "spi_transceive_dt", after SPI transmission, use memcpy for copy tx and rf buffer, it's will core dump and hang up the system?why can't use memcpy funtion for copy buffer?If I need to copy big data buffer from SPI recieved buffer, how can I do?

Best Regards

    Tina

  • Hi Tiny,

    It should not be a problem to use 'memcpy' after the SPI transaction. However, since it is causing a fault exception, I assume that either the destination pointer is invalid or you are overflowing the destination buffer. I recommend you debug the application and verify that the input arguments are correct.

    Best regards,

    Vidar

Related