I2c adl_ret_err_param

I am trying to couple an RFID reader over I2C.
When I try to write on the I2C bus I get the ADL_RET_ERR_PARAM value returned.
Writes to other, previously working I2C devices, on the bus seem to fail as well when I attach the RFIDreader to the bus.
Writes to non-existing addresses on the bus give me the same error.

How should debug this? I guess there is a problem with the RFID reader or the I2C connection, but I am not sure.
Help appreciated :slight_smile:

Edit:
I had connected the wrong pins of the RFID reader :unamused:
Now the other devices are still working but the RFID reader still gives me this error when writing to it.

Hi,

It is most probably related to the parameter “adl_busAccess_t” which you would have passed which sets the opcode and address.

adl_busAccess_t adl_busAccess;
adl_busAccess.Address = 0;
adl_busAccess.Opcode = 0;
retval = adl_busWrite(RFIDHandle, &adl_busAccess, 1, buffer)

This is what I’m using.
I only get this error while writing on the bus now, the peripheral is actually responding even though the return value is -2.