Hello,
this is a two part post regarding some issues & quirks i've noticed while working with the I2C for the S32G RTD + DesignStudio1:
I've been having trouble with the baud rate IBDF register. I'm using an input clock of 133Mhz to the I2C module from the clock tree, for most clocks IBDF settings, i see no response from attached I2C devices. However, with a decimal IBDF register setting of '73' (0x49),
I do see responses from attached devices. I set this value via the RTD SetBaudRate_Privileged function. But '73' in Design Studio shows an invalid baud rate (2MHz):
I'm trying to understand why this IBDF register value is working, and what the real baud rate of the unit is, and how to understand which IBDF register values are actually functional on my system, right now i've been performing baud scans of attached devices to see what works, which is not ideal.
Could you recommend an IBDF register value that would work with my clock settings. That would give a baudrate between 80 and 400 kHz ?
Secondly, I noticed in the RTD generated code, the glitch filter arrays are misused when trying to calculate the baudrate: This is in I2c_Ip.c. See how the glitch filter array is used when the glitchfilter is disabled in the i2c instance.
If you are not comfortable sharing information in this public post, you can open a private support ticket from the NXP main page: