commit 7c4b113573d83dc2ee12c430405225c855cc5709
parent f1350f4c47e7fbb2ecd3bdb44d870dfad2f98a56
Author: Matsuda Kenji <info@mtkn.jp>
Date: Fri, 3 Mar 2023 15:08:30 +0900
substitute spaces with tabs
Diffstat:
2 files changed, 16 insertions(+), 19 deletions(-)
diff --git a/Makefile b/Makefile
@@ -32,6 +32,6 @@ led.uf2: led.elf
$(ELF2UF2) led.elf led.uf2
flash: led.uf2
- doas mount /dev/sd3i /mnt
- doas cp led.uf2 /mnt
+ mount /dev/sd3i /mnt
+ cp led.uf2 /mnt
diff --git a/memmap.ld b/memmap.ld
@@ -1,28 +1,25 @@
MEMORY
{
- FLASH(rx) : ORIGIN = 0x10000000, LENGTH = 2048k
- RAM(rwx) : ORIGIN = 0x20000000, LENGTH = 256k
+ FLASH(rx) : ORIGIN = 0x10000000, LENGTH = 2048k
+ RAM(rwx) : ORIGIN = 0x20000000, LENGTH = 256k
}
ENTRY(reset)
SECTIONS
{
- /*
- boot2 section is for embed the precompiled boot2.
- this code from memmap_default.ld in pico-sdk
- */
- .boot2 : {
- __boot2_start__ = .;
- KEEP(*(.boot2))
- __boot2_end__ = .;
- } > FLASH
+ /* memmap_default.ld in pico-sdk */
+ .boot2 : {
+ __boot2_start__ = .;
+ KEEP(*(.boot2))
+ __boot2_end__ = .;
+ } > FLASH
- ASSERT(__boot2_end__ - __boot2_start__ == 256,
- "ERROR: Pico second stage bootloader must be 256 bytes in size")
- .text : {
- KEEP(*(.vectors))
- KEEP(*(.text*))
- } > FLASH
+ ASSERT(__boot2_end__ - __boot2_start__ == 256,
+ "ERROR: Pico second stage bootloader must be 256 bytes in size")
+ .text : {
+ KEEP(*(.vectors))
+ KEEP(*(.text*))
+ } > FLASH
}