diff options
author | Brian Cully <bjc@kublai.com> | 2022-08-06 12:12:37 -0400 |
---|---|---|
committer | Brian Cully <bjc@kublai.com> | 2022-08-06 12:12:37 -0400 |
commit | 35248b205cd56633e52b9e634a942e7fd987db0b (patch) | |
tree | 37c9fd21e52e7cb0a7c547065a52d73d19d925b9 /memory.x | |
parent | 8f9bc49bb40e2972cf0c0bf1b61eb8127a9397df (diff) | |
download | luchie-35248b205cd56633e52b9e634a942e7fd987db0b.tar.gz luchie-35248b205cd56633e52b9e634a942e7fd987db0b.zip |
Blinky on a hardware timer, with ‘wfi’ in between.
Diffstat (limited to 'memory.x')
-rw-r--r-- | memory.x | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/memory.x b/memory.x new file mode 100644 index 0000000..6d8ae75 --- /dev/null +++ b/memory.x @@ -0,0 +1,13 @@ +MEMORY +{ + /* 0x0000_0000 is an alias for 0x08000_0000 */ + FLASH(rwx) : ORIGIN = 0x00000000, LENGTH = 128K + RAM(rw) : ORIGIN = 0x20000000, LENGTH = 32K +} + +REGION_ALIAS("REGION_TEXT", FLASH); +REGION_ALIAS("REGION_RODATA", FLASH); +REGION_ALIAS("REGION_DATA", RAM); +REGION_ALIAS("REGION_BSS", RAM); +REGION_ALIAS("REGION_HEAP", RAM); +REGION_ALIAS("REGION_STACK", RAM); |