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

The data transfer

Altera_Forum
Honored Contributor II
1,642 Views

I want to send the data of array in the code to the SRAM,which function should I use? 

 

the format is like this: 

 

thank you in advance!
0 Kudos
5 Replies
Altera_Forum
Honored Contributor II
462 Views

The code that you just shown seems to do the trick.

0 Kudos
Altera_Forum
Honored Contributor II
462 Views

No,the data was received which is not right!

0 Kudos
Altera_Forum
Honored Contributor II
462 Views

Well you need to give more details about what you are trying to do, how you check the results and what you expect. 

Remember to bypass the data cache when you check the results of a DMA transfer.
0 Kudos
Altera_Forum
Honored Contributor II
462 Views

I design a LCD_CORE,And I want to use the SRAM as frame buffer,So I must send a data of image to the SRAM in order to that can be displayed by the LCD_CORE. 

 

After sending the data,and the data is displayed by the LCD which is not right. 

 

thank you very much!
0 Kudos
Altera_Forum
Honored Contributor II
462 Views

I used to use the UART to receive the data,then the DMA read the data and write it to the SRAM when there is an interrupt generated by the UART.But the data is writed to the high 8 bit of the SRAM everytime and the low 8 bit are zeroed. 

 

do you have another method? 

 

thank you!
0 Kudos
Reply