Part Number: TMS320F28388D
Tool/software:
Good morning,
I would like to ask a technical question. I wanted to manage an I2C module (i2ca) from the CPU2 to read the time of a RTC. The problem is that when I debug the code, the i2c stays continuously in BUSY (bit BB of CMDR register).
The issue is that the code is the same as in another project where all the code was in CPU1, and it worked fine. Then I started to worry about the fact that the migration to CPU2 can't be done. First, I have seen that GPIOCTRREGS is not accessible from CPU2 (so you can't configure the pins from CPU2), even so, initializing the pins from CPU1 still doesn't work.
Then already, regarding the I2C, the I2CAREGS is supposed to be accessible from CPU1 and CPU2, and in fact I see that the I2C configuration registers are written correctly. However, it still does not work.
What was on my mind is the possibility that by declaring the GPIOs of the SDA and SCL signals as INPUT (GPxDIR=0), the I2CA module declared on CPU2 can change the GPIO of SDA and SCL as OUTPUT? The CPU2 certainly cannot because it cannot write to GPIOCTRLREGS but the I2C module can?????
I hope you can help me with this problem.
Best regards,
Pedro
