Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
20 years ago

Nios II Uart

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

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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.