blue-pill: copying linker script over
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user