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

memcpy ( )

Altera_Forum
Honored Contributor II
1,270 Views

Hello  

 

 

The memcpy can been used to transfer the data in flash to sdram? 

 

I know that the function can transfer the data in flash to sram. 

 

 

 

Thank you
0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
275 Views

Yes, memcpy can copy data from flash to sdram but not the other way round. 

 

But perhaps this wasn't what you meant to ask, if so then please rephrase your question.
0 Kudos
Altera_Forum
Honored Contributor II
275 Views

Thank you! 

 

Why the memcpy functin can been used to transfer data through synchronize or asynchronism memory. 

The synchronize memory can make the nios reacgh better performance?
0 Kudos
Altera_Forum
Honored Contributor II
275 Views

To wombat: 

What do you mean by saying "memcpy can copy data from flash to SDRAM but not the other way round. 

"
0 Kudos
Altera_Forum
Honored Contributor II
275 Views

As you know, flash chips need special programming sequences to change the value of data within them. 

 

memcpy doesn't use these sequences so it can't alter the value of data in flash. 

 

If you want to alter the value of data in flash then you should use the functions in altera_avalon_cfi_flash.h to do it.
0 Kudos
Reply