USB can get past set address

This commit is contained in:
R
2024-04-12 23:53:30 +01:00
parent 5f9fc4959c
commit 8a66c040ca
3 changed files with 110 additions and 26 deletions
+3 -9
View File
@@ -4,18 +4,12 @@ MEMORY
{
/* Try to squeeze down to this target size */
FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 2K
/* We have a total of 512 bytes here.
- Need 256 bytes to buffer a flash page across USB packets
- Need space for USB buffers
- Tiny tiny amount of free space
*/
USBRAM (rw) : ORIGIN = 0x400060c0, LENGTH = 64
LOL_NO_RAM (rw) : ORIGIN = 0x400060c0, LENGTH = 0
}
SECTIONS
{
PROVIDE(_bootloader_limit = ORIGIN(FLASH) + LENGTH(FLASH));
PROVIDE(_bootloader_stack = ORIGIN(USBRAM) + LENGTH(USBRAM));
.vector :
{
@@ -54,7 +48,7 @@ SECTIONS
*(.srodata .srodata.*)
. = ALIGN(4);
PROVIDE( _edata = .);
} >USBRAM AT>FLASH
} >LOL_NO_RAM AT>FLASH
.bss :
{
@@ -66,7 +60,7 @@ SECTIONS
*(COMMON*)
. = ALIGN(4);
PROVIDE( _ebss = .);
} >USBRAM
} >LOL_NO_RAM
PROVIDE( _end = _ebss);
}