Nios® II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
12408 Discussions

Altera Avalon I2C Master Core w/Nios II

Altera_Forum
Honored Contributor I
1,840 Views

Hi all, 

 

I am trying to run the Altera Avalon Master I2C core from Nios II w/Eclipse. 

I am accessing the core registers in memory using "altera_avalon_i2c_regs.h" 

 

In the memory debug view, it seems that all of my calls are responded to in memory, other than IOWR_ALT_AVALON_I2C_TFR_CMD, which is the register that holds the data to be transmitted. It remains zero at all times. 

 

Any ideas, or any recommendations on other I2C cores ? 

 

Thanks, 

rabee
0 Kudos
1 Reply
Altera_Forum
Honored Contributor I
355 Views

It is a registre for write only, then always that you try to read, the funtion return 0000000 

 

 

--- Quote Start ---  

Hi all, 

 

I am trying to run the Altera Avalon Master I2C core from Nios II w/Eclipse. 

I am accessing the core registers in memory using "altera_avalon_i2c_regs.h" 

 

In the memory debug view, it seems that all of my calls are responded to in memory, other than IOWR_ALT_AVALON_I2C_TFR_CMD, which is the register that holds the data to be transmitted. It remains zero at all times. 

 

Any ideas, or any recommendations on other I2C cores ? 

 

Thanks, 

rabee 

--- Quote End ---  

Reply