I have been using RA0E1 microcontroller in a custom board, and I need to transmit data into another microcontroller. For that I’m using Simplified SPI, where the RA0E1 controller acts as a slave. I have assigned SI00, SO00 and SCLK00 pins to transmit data. I have kept SSI00 pin open in my circuit board. Now when I am running my circuit on debug mode, I noticed that the callback function is not being called when the SPI transfer takes place. However, the FSP err is being acknowledged as FSP_SUCCESS. Is it necessary to use SSI00 pin to receive command from master, or can we configure this as output low at all times, or just ground that pin?
Hello,
Thank you for reaching out to Renesas! SS pin is slave select pin; it is required when we use multiple slave else this pin can be open. Can you please share your code for closer evaluation? also, settings where you configure and initialize the SPI, especially the parts where you set up the callback function and handle the transfer status flags. Also, the SPI settings in the configuration tool too. Meanwhile, you can refer to the sample code simple SPI that I have shared.
ra-fsp-examples/example_projects/fpb_ra0e1/sau_spi/sau_spi_fpb_ra0e1_ep at master · renesas/ra-fsp-examples · GitHub Kind regards,
Payodhi
I've made this code to demonstrate the correct SPI configuration and communication between the two internal channels of RA0E1. Let us know if you need further assistance.
SPIbridge_RA0E1.zip
Kind regards,
Hi. I found out another problem. When I initialise my SPI module (by using R_SAU_SPI_Open function), I notice that the SCLK pin goes into output high, and because of that the master clock gets clipped. Can you please show me the correct way to configure SPI pins without the use of FPB (just microcontroller and required peripherals)