AnsweredAssumed Answered

SPI Communication between STM32F4 and Rigado R41Z

Question asked by yassine jmili on Oct 22, 2018
Latest reply on Oct 25, 2018 by Estephania Martinez

Hello,

I want to do an spi communication between STM32F405RGT6 and a  Rigado R41Z. the stm32f4 is a master and the R41Z is a slave. So, i choice the cmisis_driver_examples_dspi_edma_ b2b_transfer_slave.

 

i used a simple code to transfer data from stm32 by using stm32cube mx: 

 

void StartTask02(void const * argument)
{
/* USER CODE BEGIN StartTask02 */
/* Infinite loop */
uint8_t test[64] = {2};

for(;;)
{

 HAL_SPI_Transmit_IT(&hspi1,&test[64],1) ;

 

osDelay(1000);
}
/* USER CODE END StartTask02 */
}

 

but i don't received the data in the R41Z. i see that the slaveRxData in this command  DRIVER_SLAVE_SPI.Receive(slaveRxData, TRANSFER_SIZE) is always zero. Can you give me some idea about this issue ?

I will appreciate all your comments.

 

Thanks

Outcomes