I have nothing changed to the I²C code of the fit module. The only thing I have changed for the SPI code in r_sci_rx64m.c was the calling order of SoftwareUnlock . New: static void rxi_handler(sci_hdl_t const hdl) { [...] hdl- tx_idle = true; R_BSP_SoftwareUnlock(&hdl- xcvr_lock); /* Do callback if available */ if ((hdl- callback != NULL) && (hdl- callback != FIT_NO_FUNC)) { args.hdl = hdl; args.event = SCI_EVT_XFER_DONE; hdl- callback((void *)&args); } [...] } Mind that the I²C address is 7 bit only (and not 8 bit) and you would need to divide an 8 bit address by 2. Also, I've set the pin configuration explicitly ( MPC , Portx . PDR , and Portx . PMR ) to make sure everything is set up correctly.
↧