Hi, my name is Hendra and currently i am working with Renesas S5D5 and trying to activate the I2C.
At first let me explain about my environment. I am using:
- e2studio version 7.3.0
- SSP version 1.6.0
Driver configuration:
I am using SCI I2C channel 7 with pin 401 and 402 with setting as below:
Here is my code:
void i2c_thread_entry(void)
{ uint8_t write[6] = {0,0,0,0,0,0};
g_i2c_lcd.p_api->open(g_i2c_lcd.p_ctrl, g_i2c_lcd.p_cfg);
while (1)
{
g_i2c_lcd.p_api->write(g_i2c_lcd.p_ctrl,write, 1, false); <-- always fail here
tx_thread_sleep (1);
}
Issue:
Opening the driver is okay, but every time i execute write function always stuck in here:
this is from r_sci_i2c.c. what i know i am not using the callback so it will enter there, but i don't know why the transaction is never completed. i already check using oscilloscope but both SCL and SDA will never output signal. i am already adding pull up resistor on the bus.
also i am already trying to switch the SCI I2C to IIC but the result are the same.
please help. thank you...