Moved M0 memory region to larger first AHB region (32K), moved USB bulk buffers to smaller AHB RAM area.

This commit is contained in:
Jared Boone
2014-01-02 15:10:09 -08:00
parent 7920490f1e
commit 63292419c8
4 changed files with 5 additions and 5 deletions

View File

@ -22,7 +22,7 @@
MEMORY
{
ram (rwx) : ORIGIN = 0x00000000, LENGTH = 4K
ram (rwx) : ORIGIN = 0x00000000, LENGTH = 32K
}
/* Include the common ld script. */

View File

@ -35,7 +35,7 @@ MEMORY
* to get performance benefit of having two USB buffers addressable
* simultaneously (on two different buses of the AHB multilayer matrix)
*/
ram_m0 (rwx) : ORIGIN = 0x2000C000, LENGTH = 16K
ram_m0 (rwx) : ORIGIN = 0x20000000, LENGTH = 32K
}
/* Include the common ld script. */
@ -43,7 +43,7 @@ INCLUDE libopencm3_lpc43xx.ld
SECTIONS
{
.m0 0x2000C000 : {
.m0 0x20000000 : {
PROVIDE(__m0_start__ = .);
KEEP(*(.m0_bin*));
. = ALIGN(4);

View File

@ -36,7 +36,7 @@ MEMORY
* to get performance benefit of having two USB buffers addressable
* simultaneously (on two different buses of the AHB multilayer matrix)
*/
ram_m0 (rwx) : ORIGIN = 0x2000C000, LENGTH = 16K
ram_m0 (rwx) : ORIGIN = 0x20000000, LENGTH = 32K
}
/* Include the common ld script. */

View File

@ -22,6 +22,6 @@
#include "usb_bulk_buffer.h"
uint8_t* const usb_bulk_buffer = (uint8_t*)0x20004000;
uint8_t* const usb_bulk_buffer = (uint8_t*)0x20008000;
const uint32_t usb_bulk_buffer_mask = 32768 - 1;
volatile uint32_t usb_bulk_buffer_offset = 0;