FIXED ! :-)

It happens that the I2C1 module was not activated into the PRCM (Power, 
Reset and Clock Management): the module clocks was not supplied (both 
interface and functional) as it was hold in idle status.
So module registers was not really accessible (and of course the module 
function was also off).

I managed to activate the module writing MODULEMODE field into register 
CM_PER_I2C1_CLKCTRL register (and also I wait for IDLEST field to confirm 
that module is ready).

After that, all works as expected!
I can drive the I2C devices attached to the bus by the PRU, off-loading the 
main processor and (mainly) keeping tight timings.


Il giorno sabato 18 luglio 2015 23:41:22 UTC+2, Gianfranco Rosso ha scritto:
>
> I finally installed CCS6 and use USB100v2 JTAG interface (after soldering 
> the header into BBB pads).
>
> It looks like as I2C1 module never goes out of reset status: RDONE flag 
> into I2C_SYSS register is always 0 even after writing I2C_EN=1 into I2C_CON 
> register (and also, SRST=0 into register I2C_SYSC).
> The very odd thing is that if I read register I2C_CON it results 0, as if 
> the SBCO instruction didn't write it effectively.
>
> Is there some write-protect lock to deal with?
>
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to