Altera_Forum
Honored Contributor
16 years agoI2C interface on Linux (with MMU)
I have a few questions about I2C interfaces on Nios II on Linux with MMU.
I found this thread http://www.alteraforum.com/forum/showthread.php?t=18441 (though forum search for "i2c" or "I2C" doesn't find it). It is a bit fragmented, and difficult to follow. I have a Microtronix i2c interface. Should the OpenCores drivers work with this? I defined I2C_0_BASE, I2C_0_IRQ based on my custom_fpga.h I2C_0_FREQ is being a bit trickier. I assumed it should be the i2c bus speed; however, I discovered that it seems to hang the system at boot if I don't define it as the system clock speed (85 MHz for me).