SPI Communication between STM32F4 and Rigado R41Z

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SPI Communication between STM32F4 and Rigado R41Z

1,377 Views
yassine_jmili
Contributor I

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

0 Kudos
Reply
1 Reply

1,254 Views
estephania_mart
NXP TechSupport
NXP TechSupport

Hello, 

I tested the slave example and it seems to be working fine.

pastedImage_8.png

Slave

pastedImage_6.png

Master

Are you sure that you are connecting the devices as it is mentioned in the example? Even though you are not working with the master example of the Rigado board please confirm the connections are well made. 

Also, something important regarding the connections how are the J26 and the J27 set in your board? Are those set in the correct functionality? 

Another thing you will need to check it's the clock configuration in both devices? 

Regards, 

Estephania 

0 Kudos
Reply