blue-pill: copying linker script over

This commit is contained in:
2018-03-12 22:48:05 -07:00
parent 943e2bfa93
commit 5f5c4ac7ae
5 changed files with 36 additions and 28 deletions

View File

@@ -4,7 +4,6 @@ constexpr uint32_t LED = 13;
constexpr unsigned long SDELAY = 100000;
constexpr unsigned long LDELAY = (SDELAY * 10) - (3 * SDELAY);
// void __attribute__ ((weak, naked)) reset_handler(void) {
int
main() {
GPIO_C->enable_clock();
@@ -21,4 +20,3 @@ main() {
delay(SDELAY);
}
}

View File

@@ -1,6 +1,6 @@
MEMORY
{
flash (rx) : ORIGIN = 0x08000000, LENGTH = 64K
flash (rx) : ORIGIN = 0x08000000, LENGTH = 128K
sram (rwx) : ORIGIN = 0x20000000, LENGTH = 20K
}
@@ -10,9 +10,8 @@ ENTRY(reset_handler);
SECTIONS
{
.text : {
*(.vectors*)
*(.vectors)
*(.text*)
. = ALIGN(4);
} > flash
.bss : { *(.bss*) } > sram
}