mirror of
https://github.com/juanjiant-bit/JIANT.git
synced 2026-12-05 20:34:27 +01:00
V10.46: safe start when the supply setup or the boot hangs
Reports of FM-1s that stay dark after installing (cause unknown). A start that hangs between the stock supply setup (V10.11) and the UI is reset by the watchdog; .noinit keeps a crumb, and the next start skips that setup (the boot loader's supplies, as up to V10.10) until power-off, and says SAFE START on screen. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
This commit is contained in:
3 files changed
+751
-736
No files matched your search
@@ -44,7 +44,7 @@
|
||||
#define FELUCCA_ID "FM-1_900" /* package identity (build.py: the .fwsc marker string) */
|
||||
#endif
|
||||
#ifndef FELUCCA_VERSION
|
||||
#define FELUCCA_VERSION "V10.45" /* (2026-11-02) V10.45: LIVE > MANO KNOB 4 the DJ FILTER again (a user's report: V10.37 turned it into the tempo, MIXER's new KNOB 4); EDIT > MORPH on ANALOG PWM SYNC RING SAW3 PLS3 draws the wave as MORPH bends it (the user: a ramp), in the Bluetooth segment. (2026-11-02) V10.44: the rest of the mock-up's pictures, in the Bluetooth segment (the app slot full; without the segment the page keeps its old picture): FX > MASTER > EQ the four bands' curve (LOW / HIGH shelves, the mids bells, a dot each, 60 250 2K 8K); GLO > SYSTEM 2 the three ports as boxes (USB TRS BT, their state), a light each way flashing as MIDI passes, PROX's bar when Bluetooth is linked or in AIR; LEVELS' picture moved there too. (2026-11-02) V10.43: pictures that show what the page does (the user's picks from the mock-up): EDIT > LEVELS / LEVELS 2 a column a DRUM-X sound, its LEVEL the height, lit as it plays, the page's four framed (was the scope); FX > MASTER the CLIP curve (in -> out, the level now a dot), PUNCH's push as a bar, the duck's gain now a line over its curve; FX > PUNCH the lane 16 steps a row, every step a box, a recorded one its punch's colour, the playhead framed (an empty lane drew nothing). (2026-11-02) V10.42: the factory presets less alike, the basics there (the user's ask): FM6's seven near copies (ICE BELL DX KEYS FM PLUCK SOFT BELL FM STRINGS WOOD, the first eight bent a little) are other instruments through the macros: FM LEAD SQR LEAD SAW LEAD, SLAP BASS SUB BASS, BELL PAD (program numbers kept, HARD BASS stays); WHEEL PEDAL BASS and DRIVE LEAD where DUB ORGAN and SOFT KEYS were; LOFI PULSE BASS appended. (2026-11-02) V10.41: MENU > SYSTEM > USB > HOST (a user's ask, an experiment): the port as the host of a class compliant USB-MIDI keyboard or controller, alone or behind a hub, what it plays in as USB-MIDI (CLK USB+BT, LEARN, MAP alike); Melodee's host (usb_host.c, recursivefieldinstruments' enumeration), input only, its main-loop side in the Bluetooth segment (the app slot full); never saved (every power-on a device); the port is not powered: a keyboard on its own power or a powered hub. (2026-11-02) V10.40: the editor sees a mode's own knobs (ANALOG SAW3 / PLS3 INT 3 -24..24, STRING FDBK's, NOISE LFSR's: editor.c ed_tdesc as the panel, a WAVE / EXCITE set from the editor resets the knobs that change meaning, the page re-reads them); HOME's lazy redraw mends a missed cell within ~10 s (a strip's n / 128 + 1 cells sent anyway a frame, was one: up to ~95 s on HOME's panel; ~4 % more sent). (2026-11-02) V10.39: ANALOG SAW3 and PLS3, each oscillator its own interval (the user's ask): NOISE's knob (EDIT 1 KNOB 4) reads INT 3 there, osc 3's interval in semitones (-24..24; INT stays osc 2's), no noise in those two WAVEs (every factory SAW3 has NOISE 0: the same sound); turning WAVE into or out of them sets that knob to 0. (2026-11-02) V10.38: intervals in tune at random (the user: GEN's ANALOG sounds took a random INT, the song out of tune): whatever chooses an engine's interval by chance (GEN and EXPLORE, the sound dice EDIT + SELECT) picks 0, a fourth, a fifth or an octave, up or down (ANALOG INT, VOICE SHIFT; GEN keeps a preset's, snapped to the nearest: GLASS KEYS' 19 kept); the random macros never aim at an interval. (2026-11-02) V10.37: GLO > MIXER KNOB 4 BPM (the DJ FILTER on LIVE > MANO), GLO's pages LIVE MIX COMPS GLOBAL SYSTEM; Bluetooth named where MIDI is (the user's ask): GLOBAL > CLOCK reads USB +BT (USB's source follows Bluetooth's clock too), GLO > SYSTEM 2 KNOB 3 shows BT's state (OFF, ADV, CONN n, AIR) beside USB and TRS IN. (2026-11-02) V10.36: LFO WAVE DRIFT (a user's ask, ambient drones and pads that breathe): a smooth random wander, each cycle a new value within half the range of the last, reached on a smoothstep (no step, no corner; with RATE 4BAR..16BAR a slow drift); the factory pads breathe by themselves (BREATHE in the presets' spare byte: DRIFT on FILTER, some a little on PITCH, over 4 or 16 bars): ANALOG SOFT PAD STRINGS JUNO PAD DARK PAD, FM6 PAD FM STRINGS, PHASE GLASS PAD VOX PAD, NOISE HISS PAD, LOFI CHIP PAD. (2026-11-02) V10.35: MENU > SYSTEM > BLUETOOTH AIR, an experiment: the radio listens instead of advertising (passive scan, nothing sent, no MIDI) and every Bluetooth packet heard around (phones, watches, headphones, TVs) feeds PROX: a body near the antenna shadows them, PROX's page and the MS_PROX source as with a phone (Optimist's scanner, fm1-base 4039a8b, minimal central level 3, in the segment: 56 KB of 72). (2026-11-02) V10.34: DRUM-X kit HIP HOP (a user's ask: boom bap, a round kick with a knock, a fat cracking snare, a tight clap, dusty band-passed hats, a woody rim, a shaker in the BELL's place) and the pattern BOOM BAP it suggests (SEQ > PATTERNS 14). (2026-11-02) V10.33: the MIDI clock steady. Out (MIDI OUT CLOCK / ALL): each of the 24 pulses at its own sample, sent at its own time (USB: usb.c ep1_tx holds it to its TIMER4 tick; BluetLine truncated
|
||||
#define FELUCCA_VERSION "V10.46" /* (2026-11-02) V10.46: a safe start (reports of FM-1s that stay dark after installing; the cause not known): a start that hangs between the supply setup (V10.11, hal/fm1_power.h) and the UI is reset by the watchdog, and the next start skips that setup (the boot loader's supplies, as up to V10.10) until the power goes off, and says SAFE START. (2026-11-02) V10.45: LIVE > MANO KNOB 4 the DJ FILTER again (a user's report: V10.37 turned it into the tempo, MIXER's new KNOB 4); EDIT > MORPH on ANALOG PWM SYNC RING SAW3 PLS3 draws the wave as MORPH bends it (the user: a ramp), in the Bluetooth segment. (2026-11-02) V10.44: the rest of the mock-up's pictures, in the Bluetooth segment (the app slot full; without the segment the page keeps its old picture): FX > MASTER > EQ the four bands' curve (LOW / HIGH shelves, the mids bells, a dot each, 60 250 2K 8K); GLO > SYSTEM 2 the three ports as boxes (USB TRS BT, their state), a light each way flashing as MIDI passes, PROX's bar when Bluetooth is linked or in AIR; LEVELS' picture moved there too. (2026-11-02) V10.43: pictures that show what the page does (the user's picks from the mock-up): EDIT > LEVELS / LEVELS 2 a column a DRUM-X sound, its LEVEL the height, lit as it plays, the page's four framed (was the scope); FX > MASTER the CLIP curve (in -> out, the level now a dot), PUNCH's push as a bar, the duck's gain now a line over its curve; FX > PUNCH the lane 16 steps a row, every step a box, a recorded one its punch's colour, the playhead framed (an empty lane drew nothing). (2026-11-02) V10.42: the factory presets less alike, the basics there (the user's ask): FM6's seven near copies (ICE BELL DX KEYS FM PLUCK SOFT BELL FM STRINGS WOOD, the first eight bent a little) are other instruments through the macros: FM LEAD SQR LEAD SAW LEAD, SLAP BASS SUB BASS, BELL PAD (program numbers kept, HARD BASS stays); WHEEL PEDAL BASS and DRIVE LEAD where DUB ORGAN and SOFT KEYS were; LOFI PULSE BASS appended. (2026-11-02) V10.41: MENU > SYSTEM > USB > HOST (a user's ask, an experiment): the port as the host of a class compliant USB-MIDI keyboard or controller, alone or behind a hub, what it plays in as USB-MIDI (CLK USB+BT, LEARN, MAP alike); Melodee's host (usb_host.c, recursivefieldinstruments' enumeration), input only, its main-loop side in the Bluetooth segment (the app slot full); never saved (every power-on a device); the port is not powered: a keyboard on its own power or a powered hub. (2026-11-02) V10.40: the editor sees a mode's own knobs (ANALOG SAW3 / PLS3 INT 3 -24..24, STRING FDBK's, NOISE LFSR's: editor.c ed_tdesc as the panel, a WAVE / EXCITE set from the editor resets the knobs that change meaning, the page re-reads them); HOME's lazy redraw mends a missed cell within ~10 s (a strip's n / 128 + 1 cells sent anyway a frame, was one: up to ~95 s on HOME's panel; ~4 % more sent). (2026-11-02) V10.39: ANALOG SAW3 and PLS3, each oscillator its own interval (the user's ask): NOISE's knob (EDIT 1 KNOB 4) reads INT 3 there, osc 3's interval in semitones (-24..24; INT stays osc 2's), no noise in those two WAVEs (every factory SAW3 has NOISE 0: the same sound); turning WAVE into or out of them sets that knob to 0. (2026-11-02) V10.38: intervals in tune at random (the user: GEN's ANALOG sounds took a random INT, the song out of tune): whatever chooses an engine's interval by chance (GEN and EXPLORE, the sound dice EDIT + SELECT) picks 0, a fourth, a fifth or an octave, up or down (ANALOG INT, VOICE SHIFT; GEN keeps a preset's, snapped to the nearest: GLASS KEYS' 19 kept); the random macros never aim at an interval. (2026-11-02) V10.37: GLO > MIXER KNOB 4 BPM (the DJ FILTER on LIVE > MANO), GLO's pages LIVE MIX COMPS GLOBAL SYSTEM; Bluetooth named where MIDI is (the user's ask): GLOBAL > CLOCK reads USB +BT (USB's source follows Bluetooth's clock too), GLO > SYSTEM 2 KNOB 3 shows BT's state (OFF, ADV, CONN n, AIR) beside USB and TRS IN. (2026-11-02) V10.36: LFO WAVE DRIFT (a user's ask, ambient drones and pads that breathe): a smooth random wander, each cycle a new value within half the range of the last, reached on a smoothstep (no step, no corner; with RATE 4BAR..16BAR a slow drift); the factory pads breathe by themselves (BREATHE in the presets' spare byte: DRIFT on FILTER, some a little on PITCH, over 4 or 16 bars): ANALOG SOFT PAD STRINGS JUNO PAD DARK PAD, FM6 PAD FM STRINGS, PHASE GLASS PAD VOX PAD, NOISE HISS PAD, LOFI CHIP PAD. (2026-11-02) V10.35: MENU > SYSTEM > BLUETOOTH AIR, an experiment: the radio listens instead of advertising (passive scan, nothing sent, no MIDI) and every Bluetooth packet heard around (phones, watches, headphones, TVs) feeds PROX: a body near the antenna shadows them, PROX's page and the MS_PROX source as with a phone (Optimist's scanner, fm1-base 4039a8b, minimal central level 3, in the segment: 56 KB of 72). (2026-11-02) V10.34: DRUM-X kit HIP HOP (a user's ask: boom bap, a round kick with a knock, a fatLine truncated
|
||||
#endif
|
||||
#if FELUCCA_OTA && !FELUCCA_FLASH
|
||||
#error "FELUCCA_OTA needs FELUCCA_FLASH"
|
||||
|
||||
+16
-1
@@ -188,6 +188,13 @@ static void felucca_init(void)
|
||||
* reset), a hang (a WDT reset) or a failed boot (bootguard: the last one died within its first 30 s): straight to the
|
||||
* UI. The UBOOT paths never get here. */
|
||||
static uint32_t crash_seen __attribute__((section(".noinit"))); /* fm1_crash.count at the last boot */
|
||||
/* (V10.46) the supply setup's boot guard (hal/fm1_power.h, since V10.11): PW_CR_START while it runs and until the UI
|
||||
* is up; a reset before that (the watchdog of a hang: .noinit kept) finds it set and the next start skips the setup
|
||||
* (PW_CR_SKIP: the boot loader's supplies, as JIANT up to V10.10), and keeps skipping it until the power goes off. A
|
||||
* power-off loses .noinit: the next power-on tries again */
|
||||
#define PW_CR_START 0x5057A001u
|
||||
#define PW_CR_SKIP 0x5057A002u
|
||||
static uint32_t pw_crumb __attribute__((section(".noinit.zbt")));
|
||||
static uint8_t boot_clean; /* no crash, hang (WDT) or failed boot before this one (boot_leds):
|
||||
* the sweep runs and the autosave is restored (project.c autosave_boot) */
|
||||
static void boot_leds(void)
|
||||
@@ -363,6 +370,8 @@ static void fm1_main(void)
|
||||
scrn.idle = fm1_ms; /* (MENU > SCREEN OFF: from here) */
|
||||
if (said) /* (p1) cpu_boot */
|
||||
cpu_off("2 CORES OFF AFTER A CRASH");
|
||||
if (pw_crumb == PW_CR_SKIP) ui_message("SAFE START: POWER SETUP SKIPPED");
|
||||
else pw_crumb = 0; /* (V10.46) the UI is up: the supply setup went well */
|
||||
bt_boot(boot_clean); /* (V10.12) BLUETOOTH's boot guard (bt.c) */
|
||||
|
||||
for (;;) {
|
||||
@@ -527,7 +536,13 @@ void fm1_cstart(void)
|
||||
#endif
|
||||
for (s = _hot_load, d = _hot_start; d < _hot_end; s++, d++)
|
||||
*d = *s; /* (0.6.78) core 0's hottest audio code (core.h HOTRAM) */
|
||||
fm1_power_ready = (uint8_t)fm1_power_init(); /* (V10.11) the supplies as stock V15 sets them (the DC-DC on:
|
||||
if (pw_crumb == PW_CR_START || pw_crumb == PW_CR_SKIP)
|
||||
pw_crumb = PW_CR_SKIP; /* (V10.46) the last start hung here or before the UI: not again */
|
||||
else {
|
||||
pw_crumb = PW_CR_START;
|
||||
fm1_power_ready = (uint8_t)fm1_power_init();
|
||||
}
|
||||
/* (V10.11) the supplies as stock V15 sets them (the DC-DC on:
|
||||
* hal/fm1_power.h, Melodee's sequence), the radio's prerequisite */
|
||||
fm1_rails_boot(); /* (0.9.9-stab) the core supplies to M-VAVE's own levels (VDC14 1.60 V,
|
||||
* SYSVDD 1.38 V, hal/fm1_sys.h) before the second core and the audio:
|
||||
|
||||
+734
-734
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user