Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
17268 Discussions

trouble using IOWR_32DIRECT and IOWR_8DIRECT in same code?

Altera_Forum
Honored Contributor II
2,536 Views

Guys 

 

Im very new to nios and altera. 

 

Im working on my first application using spi. that part works fine 

 

What im having issues with is once i use IOWR_32DIRECT, later calls to IOWR_8DIRECT in same code seem to cause code to freeze. 

 

I read in system console help that i need to respect memory boundaries, and i think im doing that.  

 

If i write to IOWR_32DIRECT(0x00040010....), that works... 4 bytes 

then if i write to IOWR_8DIRECT(0x00040014), i get errors. i would imagine that as long as i preserve the 4 byte boundaries, that id be able to write 8 bit words.... no? 

 

Is there something that im doing wrong? Or is it once IOWR_32 is used, i can only IOWR/IOR_32... cant IOWR/IORD_8/16 anymore?? 

 

sorry if this is a "dumb" question. gotta learn somehow 

 

thanks!!
0 Kudos
0 Replies
Reply