mirror of
https://github.com/illuminus5/skiff.git
synced 2026-12-06 12:54:32 +01:00
A six-track groovebox firmware for the M-VAVE FM-1, built on Felucca 1.1.5 by Hügelton Instruments (https://github.com/hugelton/Felucca). What it is: README.md; how it behaves: DESIGN.md; licences: LICENSING.md.
40 lines
2.4 KiB
Plaintext
40 lines
2.4 KiB
Plaintext
/* SPDX-License-Identifier: GPL-3.0-only
|
|
* Copyright (C) 2026 Leo Kuroshita (@kurogedelic), Hügelton Instruments */
|
|
/* FELUCCA memory map.
|
|
* Code + constants execute in place from XIP (app.bin offset 0 = 0x02000120).
|
|
* 0x01C00000..0x01C06000 holds .ram_text (code that must run while the flash
|
|
* is busy: the flash driver; then, from _rt_hot, Skiff's .ram_hot: audio code kept out of the XIP cache, which may
|
|
* call XIP code, since the audio ISR never runs with the flash busy (felucca.c AUDIO_RAM); both inside the PC
|
|
* guard's RAM window, fm1_guard.h); .ramx follows it there (Skiff: zero-initialised data,
|
|
* the take log and the undo copy: the region's rest was unused); 0x01C06000..0x01C08000
|
|
* stays for RAM-run debug.
|
|
* RAM : .data/.bss (96 KiB)
|
|
* POOL : big zero-initialised buffers (FX lines, canvases), section .pool
|
|
* STACKS with 256-byte guard bands (Skiff: the main loop's 11.75 KiB, about 3x the deepest use measured in
|
|
* the emulator, 4.1 KiB; its other 12 KiB went to the POOL; the interrupts' 7.75 KiB as they were: they carry USB
|
|
* and updates too); NOINIT survives resets and UBOOT entry.
|
|
* 0x01C7FD50.. is reserved: boot_info, boot-state mailbox, vector table. */
|
|
MEMORY
|
|
{
|
|
XIP (rx) : ORIGIN = 0x02000120, LENGTH = 0x8DFBC
|
|
RAMTEXT (rwx): ORIGIN = 0x01C00000, LENGTH = 0x6000
|
|
RAM (rwx) : ORIGIN = 0x01C08000, LENGTH = 96K
|
|
POOL (rw) : ORIGIN = 0x01C20000, LENGTH = 0x57000
|
|
NOINIT (rw) : ORIGIN = 0x01C7C000, LENGTH = 0x3D50
|
|
}
|
|
SECTIONS
|
|
{
|
|
.text : { KEEP(*(.text.crt0)) *(.text*) *(.rodata*) . = ALIGN(4); _etext = .; } > XIP
|
|
.ram_text : { _rt_start = .; KEEP(*(.ram_text*)) . = ALIGN(4); _rt_hot = .; KEEP(*(.ram_hot*)) . = ALIGN(4); _rt_end = .; } > RAMTEXT AT > XIP
|
|
_rt_load = LOADADDR(.ram_text);
|
|
.ramx (NOLOAD) : { . = ALIGN(4); _ramx_start = .; *(.ramx*) . = ALIGN(4); _ramx_end = .; } > RAMTEXT
|
|
.data : { . = ALIGN(4); _data_start = .; *(.data*) *(.sdata*) . = ALIGN(4); _data_end = .; } > RAM AT > XIP
|
|
_data_load = LOADADDR(.data);
|
|
.bss (NOLOAD) : { _bss_start = .; *(.bss*) *(.sbss*) *(COMMON) . = ALIGN(4); _bss_end = .; } > RAM
|
|
.pool (NOLOAD) : { _pool_start = .; *(.pool*) . = ALIGN(4); _pool_end = .; } > POOL
|
|
.noinit (NOLOAD) : { *(.noinit*) } > NOINIT
|
|
_guard0 = 0x01C77000; _ustack_lo = 0x01C77100; _ustack_top = 0x01C7A000; /* (Skiff: 11.75 KiB, was 23.75) */
|
|
_guard1 = 0x01C7A000; _sstack_lo = 0x01C7A100; _sstack_top = 0x01C7C000;
|
|
/DISCARD/ : { *(.comment) *(.note*) }
|
|
}
|