Repository navigation
Releases
v0.1.3 — Authentic BIOS Boot & Cyan Screen Freeze Fix
🚨 Critical Bug Fix: Boot Freeze on 4-Bar Cyan Screen
The freeze with 4 horizontal grey bars on a cyan background shown at boot has been identified, reproduced, and completely resolved!
Root Cause
- An inherited CLI argument (
--bios-hleandGBARECOMP_BIOS_HLE=1) was instructing the engine to skip the official GBA BIOS boot sequence (bios_hle_boot_skip). - In Sonic Advance, skipping the official BIOS boot bypasses crucial GBA hardware, timer, and memory initialization routines, causing the game to jump straight into an uninitialized mode select state with 4 blank character/mode card containers, where input polling was completely inactive.
The Fix in v0.1.3
-
Authentic BIOS Boot (LLE):
- Switched from
--bios-hleto--no-bios-hleand setGBARECOMP_BIOS_HLE=0. - The game now runs the authentic recompiled GBA BIOS, correctly initializing memory, timers, and interrupts.
- Sonic Advance now cleanly boots through:
- GBA intro logo & chime
- SEGA logo
- Sonic Team logo
- Dimps logo
- Sonic Advance Title Screen (with Sonic emblem & "Press Start Button")
- Main Menu & Gameplay!
- Switched from
-
Native Nintendo Switch libnx Controls:
- D-Pad & Left Stick for movement
- Physical A / X -> GBA A (Jump / Confirm)
- Physical B / Y -> GBA B (Spin Dash / Cancel)
- + -> Start
- - -> Select
- Hold + and - together to safely exit to hbmenu.
-
Clean SD Card Commit:
fsdevCommitDevice("sdmc")on save flush and exit prevents SD corruption and eliminates crashes on immediate relaunch.
📦 Installation
Extract sonicadvance-nx-v0.1.3.zip to the root of your microSD card:
sdmc:/switch/sonicadvance_nx/
├── sonic_advance_nx.nro
├── rom.gba (Sonic Advance USA ROM, 8MB)
├── gba_bios.bin (GBA BIOS, 16KB)
└── save/
└── sonic_advance_usa.sav
v0.1.2 — Input Fix & SD Clean Exit Update
🐛 Bug Fixes & Changes
-
Flash Identification & Input Polling Fix:
- Resolved recursive dispatch in IWRAM helper when returning from
IdentifyFlash(0x08098CEC). IdentifyFlashnow successfully detects the 512K Flash chip, preventing the game from setting Backup Error (0x03001100 |= 0x100) which previously disabled GBA input polling at boot.- The language selection screen now responds to input and can be navigated or confirmed.
- Resolved recursive dispatch in IWRAM helper when returning from
-
Native Nintendo Switch libnx Controller Polling:
- Switched from SDL2 game controller mappings to direct Horizon OS
padInitializeAny/padUpdate/padGetButtons. - Zero-latency and rock-solid input across Handheld mode, Joy-Con pairs, and Switch Pro Controllers.
- Physical A / X -> GBA A (Jump / OK), physical B / Y -> GBA B (Roll / Cancel), L / ZL -> L, R / ZR -> R, + -> Start, - -> Select.
- Hold + and - together to safely quit back to hbmenu.
- Switched from SDL2 game controller mappings to direct Horizon OS
-
Clean SD Card Commit & Relaunch Crash Fix:
- Added
fsdevCommitDevice("sdmc")on save flushes, log writes, and application shutdown. - Prevents leaving FAT filesystem caches dirty, fixing the crash when immediately relaunching the NRO.
- Gracefully resets APM CPU boost modes and worker queues on exit.
- Added
-
Pre-Initialized Default Save Included:
- The release archive includes a pre-initialized English save in
save/sonic_advance_usa.sav, allowing the game to skip the language setup screen and boot directly into the SEGA intro and Title sequence.
- The release archive includes a pre-initialized English save in
📦 Installation
Extract the zip directly onto your Switch microSD card so that files are placed at:
sdmc:/switch/sonicadvance_nx/
├── sonic_advance_nx.nro
├── rom.gba (Sonic Advance USA ROM, 8MB)
├── gba_bios.bin (GBA BIOS, 16KB)
└── save/
└── sonic_advance_usa.sav (Pre-configured English save)
v0.1.1 — Boot Freeze & Clean Relaunch Fixes
🛠️ Bug Fixes & Improvements in v0.1.1
-
Fix Boot / Language Screen Freeze:
- Added static code coverage and
[[code_copy]]for the M4A sound mixer (0x03000000) and audio/task callback (0x08097150) ingame.toml. - Added a dedicated flash stack dispatch hook (
sa_flash_stack_dispatch) to intercept dynamic stack-frame execution (ldrb r0, [r0]; bx lr) with zero misses. - Corrected cartridge save specification from EEPROM to 512 Kbit Flash (
flash512, 64 KB) matching MacronixFLASH_V126. - The game now advances smoothly through the initial Language selection screen directly into the intro cutscene, Sega / Sonic Team logos, and gameplay at a locked 60 FPS.
- Added static code coverage and
-
Fix Immediate Relaunch Crash:
- Implemented clean shutdown of the multi-threaded PPU worker (
switch_ppu_shutdown()) and SDL2 subsystems (SDL_Quit()) upon exiting via + (Start) and - (Select). - Horizon OS audio (
audren) and display (vi/nvn) IPC sessions are fully unlinked and released, allowing immediate relaunch from hbmenu without crashing.
- Implemented clean shutdown of the multi-threaded PPU worker (
-
Enhanced Controller Usability:
- Added dual Nintendo / standard mappings: both physical A / X confirm (GBA A) and B / Y jump/roll (GBA B).
- Left Analog Stick and D-Pad both navigate menus and movement.
📦 Installation
- Extract
sonicadvance-nx-v0.1.1.zipto the root of your microSD card (or placesonic_advance_nx.nroinsdmc:/switch/sonicadvance_nx/). - Ensure your
rom.gba(Sonic Advance USA) andgba_bios.binare insdmc:/switch/sonicadvance_nx/. - Launch from Homebrew Menu in Title Override mode.
Sonic Advance NX v0.1.0
Initial public release of Sonic Advance NX, a native static recompilation port of Sonic Advance (GBA) for the Nintendo Switch.
⚡ Highlights & Features
- Native 60 FPS AArch64 Execution: All 24,000+ Game Boy Advance routines statically recompiled directly to native 64-bit ARM machine code without CPU emulation overhead.
- Multi-Core PPU Architecture: Background scanline and sprite rasterization running on a dedicated worker thread pinned to CPU Core 2 with vertical sprite culling and 1:1 sprite fast-path.
- Pixel-Perfect 4:3 Display: Authentic integer scaling preserving the original 240×160 aspect ratio without distortion or uneven scaling.
- Audio-Paced Low Latency: Smooth frame delivery paced via SDL2 audio buffers on Core 1 without scanout starvation.
- Rear Trigger Controls: Ergonomic mapping with ZL acting as L and ZR acting as R.
- Analog Stick & D-Pad Navigation: Full analog and digital directional control with tuned deadzones.
- Safe Exit: Hold + (Start) and - (Select) simultaneously to quit safely back to the Homebrew Menu.
- Isolated Saves: Game saves automatically stored in
sdmc:/switch/sonicadvance_nx/save/sonic_advance_usa.sav(EEPROM 8K). - Custom Homebrew Icon: Dedicated high-resolution icon embedded directly into the
.nro.
📦 Installation
- Extract
sonicadvance-nx-v0.1.0.zipto the root of your microSD card (or placesonic_advance_nx.nroinsidesdmc:/switch/sonicadvance_nx/). - Place your legally dumped Sonic Advance GBA ROM renamed as
rom.gbaintosdmc:/switch/sonicadvance_nx/rom.gba:- Exact Size:
8,388,608bytes (8 MB) - SHA-1:
d842afa7dd1e84de08addb94a51506f1bcafd551 - SHA-256:
afc29e3325baf68a1822e88b25fcb59c8bdc29b8cdc48fa21c56defbd60ca020
- Exact Size:
- Place your official GBA BIOS dump named
gba_bios.binintosdmc:/switch/sonicadvance_nx/gba_bios.bin:- Exact Size:
16,384bytes - SHA-1:
300c20df6731a33952ded8c436f7f186d25d3492
- Exact Size:
- Launch via Title Override (hold R while launching any installed game from the Switch home menu for full RAM allocation).
Legal: No copyrighted game code, assets, ROMs, or BIOS binaries are distributed with this release.