avoid overwriting RAM BaS with DMA memcpy() test

This commit is contained in:
Markus Fröschle
2013-08-07 04:33:53 +00:00
parent d51caf50ee
commit 3fa25cf1f6

View File

@@ -92,7 +92,7 @@ int dma_init(void)
xprintf("DMA API initialized. Tasks are at %p\r\n", SYS_SRAM); xprintf("DMA API initialized. Tasks are at %p\r\n", SYS_SRAM);
// test // test
dma_memcpy((void *) 0x1e000000, (void *) 0x10700000, 0x100000); /* copy one megabyte of flash to RAM */ dma_memcpy((void *) 0x01000000, (void *) 0x10000000, 0x100000); /* copy one megabyte of flash to RAM */
xprintf("DMA finished\r\n"); xprintf("DMA finished\r\n");
return 1; return 1;