Skip to content

Commit 0dc3f9a

Browse files
committed
Change STM32F103 address to 0x08002000
Fits in 8k after removing debug code
1 parent 3ebcaed commit 0dc3f9a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/stm32f103/config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#ifndef CONFIG_H_INCLUDED
2020
#define CONFIG_H_INCLUDED
2121

22-
#define APP_BASE_ADDRESS 0x08002C00
22+
#define APP_BASE_ADDRESS 0x08002000
2323
#define FLASH_PAGE_SIZE 1024
2424

2525
#endif

src/stm32f103/stm32f103x8.ld

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@
2020
/* Linker script for STM32F103x8, 64k flash, 20k RAM. */
2121

2222
/* Define memory regions. */
23+
/* 8k for the bootloader */
2324
MEMORY
2425
{
25-
rom (rx) : ORIGIN = 0x08000000, LENGTH = 64K
26+
rom (rx) : ORIGIN = 0x08000000, LENGTH = 8K
2627
ram (rwx) : ORIGIN = 0x20000000, LENGTH = 20K
2728
}
2829

0 commit comments

Comments
 (0)