Commit f3e09642 authored by Federico Vaga's avatar Federico Vaga

bootloader: resize bootloader

Signed-off-by: 's avatarFederico Vaga <federico.vaga@gmail.com>
parent 2c5e0acc
......@@ -72,7 +72,7 @@
#define SWDCLK_PIN_IS_LO() ( ( GPIO->P[5].DIN & 0x1 ) == 0x0 )
/** The size of the bootloader flash image */
#define BOOTLOADER_SIZE (16*1024) /* 16 KB */
#define BOOTLOADER_SIZE (32*1024) /* 32 KB */
/** The maximum flash size of any EFM32 part */
#define MAX_SIZE_OF_FLASH (1024*1024) /* 1 MB */
......
......@@ -7,8 +7,8 @@
/* Silicon Laboratories, Inc. 2014 */
MEMORY
{
FLASH (rx) : ORIGIN = 0x20000000, LENGTH = 0x4000
RAM (rwx) : ORIGIN = 0x20004000, LENGTH = 131072
FLASH (rx) : ORIGIN = 0x20008000, LENGTH = 0x8000
RAM (rwx) : ORIGIN = 0x20010000, LENGTH = 0x8000
}
/* Linker script to place sections and symbol values. Should be used together
......
......@@ -7,8 +7,8 @@
/* Silicon Laboratories, Inc. 2014 */
MEMORY
{
FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 0x10000
RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 131072
FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 0x8000
RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 0x20000
}
/* Linker script to place sections and symbol values. Should be used together
......
......@@ -47,7 +47,7 @@ int main(void)
{
supercar_blink(200, 4);
__set_MSP( ( 0x20000000 + sizeof( bootloader ) + 0x400 ) & 0xFFFFFFF0 );
__set_MSP( ( 0x20000000 + sizeof( bootloader ) + 0x8000 ) & 0xFFFFFFF0 );
/* Load the entire bootloader into SRAM. */
memcpy( (void*)0x20000000, bootloader, sizeof( bootloader ) );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment