Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12604 Discussions

Altera Avalon I2C Master Core w/Nios II

Altera_Forum
Honored Contributor II
2,273 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 II
788 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 ---  

0 Kudos
Reply