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++

Nios II Uart

Altera_Forum
Honored Contributor II
972 Views

Hello evrybody, 

 

I don't undertand, my uart doen't works correctly. 

In fact it works only when I drive it with IOWR & IORD but never with HAL functions. 

 

is there anybody has some little piece of c code witch drive the nios II uart ? 

 

Thanks a lot 

 

Etienne
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
253 Views

Hi etienne..  

 

If you have use Nios II / fast version, I think that you can solve this problem data cache flush. 

Because all variable in Nios II / fast version be cached. 

let try to use data cache flush function(alt_dcache_flush()), after some command 

Also, IORD and IOWR are provided to access non-cacheable memory region.
0 Kudos
Reply