This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Memcop from the flash to the ram

Hi, I tried to copy all the memory from the FLASh to the RAM.
When I try it with small code I succeed but when the code go larger (around 94Kbyts) I failed.

I work with at91sam7x512.

I do:

memcpy(mem_get_start_ram(), // dest mem_get_start_rom(), // source mem_get_size_rom()); // size

The start_ram - 0x00200000
The start_rom - 0x00000000
The size_rom - 0x00016FE0

after the memcpy it's go to prefetch abort, what did wrong?

thanks all, chiko