Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
# DiSEqC nanoFramework Bring-up Test Log
This file tracks factual checkpoints, commands, and outcomes for the STM32F407 bring-up.
## Device under test
- Target: M0DMF_CUBLEY_F407
- MCU: STM32F407
- Bootloader: nanoBooter present
## 2026-04-07 Timeline
### 1) Firmware and flash layout validation
- Confirmed linker/storage intent:
- nanoBooter: 0x08000000-0x08004000
- nanoCLR: 0x08004000-0x080C0000
- Deployment: 0x080C0000-0x08100000
- Rebuilt native firmware with minimal profile.
- Enabled config block for minimal profile in build script.
### 2) Deployment image validation
- Verified deployment flash at 0x080C0000 can contain NFMRK2 bytes, but current GDB evidence indicates the CLR is not promoting that wrapped image into candidate assembly descriptors on this target.
- Rebuilt BlinkBringup managed project and retained the raw PE output as the next deployment candidate.
- Current preferred managed artifact for bring-up retest:
- tests/BlinkBringup/bin/Release/BlinkBringup.pe
### 3) Runtime/GDB findings
- nanoCLR wire protocol is alive (NFPKTV1 observed).
- Current symbol map distinction:
- 0x08001e00 is nanoBooter Reset_Handler.
- CLR startup symbols are in higher flash addresses in nanoCLR.elf.
- Therefore, breakpoints in CLR loader code will not hit until booter hands off to CLR.
### 4) Current observed behavior (important)
- nanoff --devicedetails reports:
- Native assemblies present.
- Managed Assemblies: none.
- Interpretation:
- Not a total boot failure.
- Managed deployment is still not being accepted/loaded at runtime.
## Next-step checkpoint script (GDB)
Use this order to prove booter-to-CLR handoff before assembly loader tracing.
1. Reset and clear breakpoints.
2. Break at booter handoff points:
- 0x0802664 (load CLR reset vector)
- 0x080267a (branch to CLR reset)
3. Break at CLR Reset_Handler in nanoCLR.elf:
- 0x08035b0c
4. Continue and inspect:
- memory at 0x08004000 (vector table)
- register r0 at booter branch
## Operating rule for future tests
For each run, append one short entry with:
- Command(s) run
- Artifact used
- Address breakpoints used
- Baseline status (yes/no)
- Pass/fail result
- One-line conclusion
Each entry must include `Command(s)` and `Artifact` fields so the run can be replayed from the log. Use `Artifact: none` only when no artifact applies.
New entries should also include explicit baseline status, with `yes` as the default for cubley-base runs and `no` for any deviation documented against [PHASE_A_BASELINE.md](./PHASE_A_BASELINE.md).
## Quick logging helper
Use the helper to append timestamped entries consistently:
- `./toolchain/bringup_log_append.sh --result PASS|FAIL|INFO --commands "..." --artifact "..." --conclusion "one-line conclusion"`
The helper emits the baseline line automatically; pass `--baseline no` only for explicit non-baseline runs.
Recommended full form for debug sessions:
- `./toolchain/bringup_log_append.sh --result FAIL --commands "gdb: b *0x08002664; b *0x0800267a; b *0x08035b0c" --artifact "tests/BlinkBringup/bin/Release/BlinkBringup.pe" --breakpoints "0x08002664, 0x0800267a, 0x08035b0c" --conclusion "Booter handoff reached; CLR reset hit; deployment candidate descriptors still not promoted"`
### 2026-04-07 14:32:55 UTC [INFO]
- Git rev: 2f9d1c3
- Command(s): nanoff erase + deploy + devicedetails
- Artifact: tests/BlinkBringup/bin/Release/BlinkBringup.pe
- Conclusion: Allemblies contains BlinkBringup, 1.0.0.0 but nothing else
### 2026-04-07 16:16:48 UTC [PASS]
- Git rev: 2f9d1c3
- Command(s): nanoff --nanodevice --serialport /dev/ttyUSB0 --baud 115200 --deploy --image tests/BlinkBringup/bin/Release/BlinkBringup.pe --address 0x080C0000 --reset
- Artifact: tests/BlinkBringup/bin/Release/BlinkBringup.pe
- Conclusion: Managed GPIO writes confirmed working after fixing board grounding issue; UART3 nanoFramework connection is now stable.
### 2026-04-07 19:57:40 UTC [PASS]
- Git rev: 2f9d1c3
- Command(s): rebuild minimal firmware after fixing nanoBooter startup; flash nanoBooter.bin to 0x08000000; flash nanoCLR.bin to 0x08004000; nanoff deploy tests/BlinkBringup/bin/Release/BlinkBringup_startfirst_with_events.bin; GDB startup-chain and IL/GPIO probes
- Artifact: tests/BlinkBringup/bin/Release/BlinkBringup_startfirst_with_events.bin
- Breakpoints: ResolveAll 0x0802d598, PrepareForExecution 0x0802e864, NewThread 0x080320f0, Execute_IL 0x08009788, Native GPIO write 0x0801f5cc
- Conclusion: Root causes were incomplete managed deployment, incorrect host flashing of nanoCLR at 0x08010000 instead of 0x08004000, and invalid nanoBooter startup sequencing using osDelay() before the RTOS scheduler was started. After fixing nanoBooter_main.c, flashing at linker-defined addresses, and deploying the with-events managed bundle, startup progressed through ResolveAll and PrepareForExecution, NewThread was hit twice, Execute_IL was hit 44 times, and native GPIO write was observed.
## 2026-04-08 Session Update
### 2026-04-08 11:58:48 UTC [FAIL]
- Git rev: 2f9d1c3
- Command(s):
- Rebuilt both firmware profiles from scratch and verified fresh artifact times:
- `./toolchain/build-native.sh bringup-smoke`
- `./toolchain/build-native.sh minimal`
- Rebuilt managed test app clean:
- removed `tests/BlinkBringup/bin/Release` and `tests/BlinkBringup/obj/Release`
- `./toolchain/compile-blink-test.sh`
- Flashed firmware correctly:
- `st-flash write build/nanoBooter.bin 0x08000000`
- `st-flash write build/nanoCLR.bin 0x08004000`
- Deployed managed images over SWD (UART intermittently unavailable in this session):
- `st-flash write tests/BlinkBringup/bin/Release/BlinkBringup.pe 0x080C0000`
- `st-flash write tests/BlinkBringup/bin/Release/BlinkBringup.bin 0x080C0000`
- `st-flash write .debug/BlinkBringup_with_threading.bin 0x080C0000`
- Runtime probes via OpenOCD + gdb-multiarch with one-shot breakpoint scripts in `.debug/`.
- Artifacts:
- `tests/BlinkBringup/bin/Release/BlinkBringup.pe` (fresh NFMRK1 single assembly)
- `tests/BlinkBringup/bin/Release/BlinkBringup.bin` (fresh bundled image)
- `.debug/BlinkBringup_with_threading.bin` (BlinkBringup.bin + System.Threading.pe)
- Breakpoints/probes and outcomes:
- `CLR_RT_Assembly::CreateInstance` at 0x0801435c: HIT, record pointer `r0=0x080C0000` (deployment image is discovered).
- `CLR_RT_TypeSystem::ResolveAll` at 0x0802D598: HIT.
- After `ResolveAll` return at 0x08019DAC: `r0=0xA3000000` (negative HRESULT), repeatable across all tested deployment images.
- `CLR_RT_TypeSystem::PrepareForExecution` 0x0802E864: NOT HIT.
- `CLR_RT_ExecutionEngine::NewThread` 0x080320F0: NOT HIT.
- `CLR_RT_Thread::Execute_IL` 0x08009788: NOT HIT.
- Native GPIO write (`Library_sys_dev_gpio_native...::NativeWrite`) 0x0801F5CC: NOT HIT.
- Conclusion:
- Managed deployment region and assembly discovery are working, but managed startup aborts in type resolution (`ResolveAll` returns `0xA3000000`) before any managed thread or IL executes.
- Therefore LED not toggling is a startup/dependency-resolution failure in CLR bring-up, not a PA2 GPIO runtime write-path failure.
- Additional note: `/dev/ttyUSB0` was not consistently available during this run, so validation was completed via SWD/GDB only.
### Immediate follow-up objective
- Build a deterministic managed deployment pack step in tooling (single known-good bundle containing all required assemblies) and gate deployment on a post-pack verification check before flashing.
---
## Resumption Plan (pending UART restoration)
Authored: 2026-04-08. Status: PENDING — blocked on `/dev/ttyUSB0` unavailability (Windows host usbipd issue).
The following steps are ordered by dependency. Steps 1 and 2 require UART. Steps 3–5 can proceed via SWD only once the root cause in step 2 is established.
### Step 0 — Restore UART access
- Fix usbipd attachment on Windows host so `/dev/ttyUSB0` appears reliably in the WSL/Linux environment.
- Verify with: `ls -l /dev/ttyUSB0 && stty -F /dev/ttyUSB0 115200`
- Goal: enable `nanoff` wire-protocol commands (`--devicedetails`, `--deploy`) to work again.
- No firmware or code changes needed for this step.
### Step 1 — Identify the exact unresolved assembly reference
This is the root cause that must be established before any toolchain fix.
**Why `ResolveAll` fails is still unknown.** The deployed bundle appears to contain BlinkBringup + System.Device.Gpio + nanoFramework.Runtime.Events, and System.Threading is present in CLR flash — yet `ResolveAll` returns `0xA3000000`.
Approach A — Use `nanoff --devicedetails` with UART restored:
```
nanoff --nanodevice --serialport /dev/ttyUSB0 --baud 115200 --devicedetails
```
This reports which managed assemblies the CLR has accepted and which are missing. Compare the "needs assembly" messages printed to UART with what is deployed.
Approach B — Read assembly names from UART output at startup:
```
screen /dev/ttyUSB0 115200
# power-cycle board; observe CLR startup prints:
# Assembly: <name> (<version>)
# needs assembly '<name>' (<version>) <- these are the missing references
```
The `"needs assembly"` lines identify the exact unresolved dependency by name and version.
Approach C (SWD fallback, no UART) — Breakpoint on the `CLR_Debug::Printf` call that emits `"needs assembly"`:
- Locate the call site in `CLR_Startup` that prints the needs-assembly message (search nf-interpreter source for `"needs assembly"`).
- Place a breakpoint there; read `r1` (format) and `r2`/`r3`/stack args (name and version strings) when hit.
- Current probe template: `.debug/gdb_probe_*.cmd` one-shot pattern.
Expected deliverable: a text note recording exactly which assembly name+version `ResolveAll` cannot close.
### Step 2 — Build a corrected deployment bundle
Once the missing reference is identified:
1. Locate or build the correct `.pe` file for the missing assembly from the NuGet package cache or from a `nanoff`-extracted device package.
2. Concatenate all required PEs into a single bundle:
```
cat BlinkBringup.pe System.Device.Gpio.pe nanoFramework.Runtime.Events.pe <missing>.pe > BlinkBringup_complete.bin
```
3. Verify bundle integrity: all NFMRK records present, no truncation.
```
python3 toolchain/inspect_deploy_bundle.py BlinkBringup_complete.bin
```
(script to be written if not already present; reads 4-byte NFMRK2 headers and prints each PE name/version/size)
4. Flash bundle: `st-flash write BlinkBringup_complete.bin 0x080C0000`
5. Run the after-ResolveAll probe to confirm `r0` is no longer `0xA3000000`:
```
nohup timeout 15s gdb-multiarch -batch -x .debug/gdb_probe_after_resolveall.cmd build/nanoCLR.elf \
> .debug/gdb_probe_after_resolveall.out 2>&1
grep -E 'AFTER_RESOLVEALL|r0' .debug/gdb_probe_after_resolveall.out
```
### Step 3 — Re-run the full startup-chain probe sequence
Once `ResolveAll` passes (returns `S_OK = 0x00000000`), repeat all five probes in order:
| Probe | Address | Expected result |
|---|---|---|
| `CLR_RT_Assembly::CreateInstance` | 0x0801435C | HIT, `r0=0x080C0000` |
| `CLR_RT_TypeSystem::ResolveAll` | 0x0802D598 | HIT |
| After `ResolveAll` return | 0x08019DAC | `r0=0x00000000` (S_OK) |
| `CLR_RT_TypeSystem::PrepareForExecution` | 0x0802E864 | HIT |
| `CLR_RT_ExecutionEngine::NewThread` | 0x080320F0 | HIT (≥1 time) |
| `CLR_RT_Thread::Execute_IL` | 0x08009788 | HIT (≥1 time) |
| Native GPIO write | 0x0801F5CC | HIT (≥1 time) |
All seven must pass before bring-up is considered complete for managed code on this target.
### Step 4 — Harden the toolchain pack step
Implement `toolchain/pack-and-validate.sh`:
- Accepts a list of PE files as arguments.
- Verifies each file has the NFMRK header (`hexdump -C` check on first 4 bytes = `4E 46 4D 32`).
- Concatenates them in the correct order.
- Verifies total size is ≤ 0x40000 (260 KB, deployment region limit).
- Writes output to a timestamped `.deploy.bin` file and a stable `latest.deploy.bin` symlink.
- Exits non-zero if any check fails.
Rationale: the 2026-04-08 failure was caused by the toolchain emitting a bundle that silently lacked a required assembly. A pack-time validator catches this before flashing.
### Step 5 — Lock toolchain versions
Record in `toolchain/versions.lock`:
- nanoFramework NuGet package versions used by BlinkBringup (from `packages.config`)
- nanoCLR firmware git ref (or tag) that matches those package versions
- `nanoff` version used for deployment
This file should be committed and checked on each build to prevent version drift between the CLR native assemblies and the managed packages.
---
### 2026-04-08 13:50:04 UTC [INFO]
- Git rev: 4391075
- Command(s): toolchain/pack-and-validate.sh + toolchain/inspect_deploy_bundle.py + toolchain/run-startup-gate.sh
- Artifact: tests/BlinkBringup/bin/Release/BlinkBringup_complete-20260408T134739Z.deploy.bin
- Conclusion: Deterministic deployment bundle tooling is in place and generated successfully; live UART/SWD validation remains blocked in this shell by Linux device permissions (ttyUSB0 root:root 0600 and OpenOCD LIBUSB_ERROR_ACCESS).
### 2026-04-08 14:36:38 UTC [PASS]
- Git rev: 4391075
- Command(s): pack-and-validate NFMRK1 + st-flash deploy + sequential startup gate
- Artifact: tests/BlinkBringup/bin/Release/BlinkBringup_full_stack-20260408T143420Z.deploy.bin
- Breakpoints: 0x0801435c, 0x0802d598, 0x08019dac, 0x0802e864, 0x080320f0, 0x08009788, 0x0801f5cc
- Conclusion: ResolveAll now returns S_OK (0x0) and managed startup progresses through PrepareForExecution, NewThread, Execute_IL, and native GPIO write with full dependency-complete NFMRK1 bundle.
### 2026-04-08 15:16:04 UTC [INFO]
- Git rev: 4391075
- Command(s): `./toolchain/run-startup-gate.sh`; `nanoff --nanodevice --serialport /dev/ttyUSB0 --devicedetails`
- Artifact: `.debug/gdb_startup_gate.out`
- Probe summary:
- `GATE_CREATEINSTANCE=1`
- `GATE_RESOLVEALL=1`
- `GATE_AFTER_RESOLVEALL=1`
- `GATE_RESOLVEALL_HR=0x0`
- `GATE_PREPAREFOREXEC=1`
- `GATE_NEWTHREAD=1`
- `GATE_EXECUTE_IL=1`
- `GATE_NATIVEWRITE=1`
- Conclusion: Managed startup path remains healthy and reproducible via SWD probes, but UART-side `nanoff --devicedetails` still fails with `Error E2001` in this session, so device enumeration/transport remains the remaining blocker for serial bring-up validation.
### 2026-04-08 15:19:16 UTC [INFO]
- Git rev: 4391075
- Command(s): `nanoff --listports`; `nanoff --nanodevice --listdevices`; baud sweep for `nanoff --nanodevice --serialport /dev/ttyUSB0 --devicedetails`
- UART checks:
- `nanoff --listports` reports `/dev/ttyUSB0`.
- `nanoff --nanodevice --listdevices` reports `No devices found`.
- `--devicedetails` fails with `Error E2001` at all tested baud rates: 1500000, 921600, 460800, 230400, 115200.
- Conclusion: Serial transport path is present at host level, but nanoFramework wire-protocol handshake is not currently discoverable over UART despite a fully passing SWD startup gate.
### 2026-04-08 15:37:19 UTC [INFO]
- Git rev: 4391075 (working tree with local diagnostic patches)
- Command(s): iterative firmware regression tests (rebuild + reflash + UART enumerate), including:
- removed custom `g_CLR_RT_ExecutionEngine.flags` mutation from `nf-native/target-overrides/nanoHAL.cpp`
- pinned interpreter build to `NF_INTERPRETER_REF=8bc239bd2` with `NF_UPDATE_INTERPRETER=0`
- restored minimal profile clock path (`ENABLE_HSI_PLL=0`)
- forced upstream/reference `nanoHAL.cpp` in `toolchain/build-native.sh`
- added `nf-native/target-overrides/target_common.c` to map debug COM to USART3 and baud to 115200
- Firmware artifacts flashed: `build/nanoBooter.bin` @ `0x08000000`, `build/nanoCLR.bin` @ `0x08004000`
- UART results after each reflash:
- `nanoff --nanodevice --serialport /dev/ttyUSB0 --baud 115200 --listdevices` => `No devices found`
- `nanoff --nanodevice --serialport /dev/ttyUSB0 --baud 115200 --devicedetails` => `Error E2001`
- same behavior persists at 921600
- Additional config finding:
- generated target had debug COM defaulting to handle 1 (USART1) before `target_common.c` override; override changed this to COM3 but did not restore enumeration.
- Conclusion: wiring/host permissions are not the blocker; a firmware-side wire-protocol initialization path is still broken in current stack despite managed CLR startup being healthy.
### 2026-04-08 15:57:51 UTC [PASS]
- Git rev: 4391075 (working tree with local diagnostic patches)
- Command(s): `nanoff --nanodevice --serialport /dev/ttyUSB0 --baud 115200 --devicedetails`
- Result highlights:
- HAL build info reported: `nanoCLR running @ M0DMF_CUBLEY_F407`
- Target/platform correctly identified: `M0DMF_CUBLEY_F407` / `STM32F4`
- Managed assemblies enumerated:
- `BlinkBringup, 0.0.0.0`
- `mscorlib, 1.17.11.0`
- `System.Device.Gpio, 1.1.57.0`
- `nanoFramework.Runtime.Events, 1.11.32.0`
- `System.Threading, 1.1.52.34401`
- Native assemblies enumerated, including:
- `nanoFramework.Hardware.Stm32 v100.0.5.1`
- `System.Device.Gpio v100.1.0.6`
- `System.Device.I2c v100.0.0.2`
- `System.Device.Spi v100.1.2.0`
- Conclusion: UART wire-protocol connectivity is confirmed working again at 115200 and managed deployment is recognized on-device; immediate root cause of earlier E2001 failures was the USB-UART adapter path, not the CLR assembly startup path.
### 2026-04-08 16:05:12 UTC [PASS]
- Git rev: 4391075 (working tree with local diagnostic patches)
- Command(s):
1. `st-flash reset`
2. `nanoff --nanodevice --serialport /dev/ttyUSB0 --baud 115200 --deploy --image tests/BlinkBringup/bin/Release/latest.deploy.bin`
3. `nanoff --nanodevice --serialport /dev/ttyUSB0 --baud 115200 --devicedetails`
- Result: Deploy exited 0. Post-deploy devicedetails confirmed all 5 managed assemblies live on device.
- `BlinkBringup, 0.0.0.0`
- `mscorlib, 1.17.11.0`
- `System.Device.Gpio, 1.1.57.0`
- `nanoFramework.Runtime.Events, 1.11.32.0`
- `System.Threading, 1.1.52.34401`
- LED (PA2 / LED_STATUS): toggling at 1 Hz from managed C# `BlinkBringup.Program.Main()` loop.
- Conclusion: Full managed code bring-up complete. Managed IL executing on STM32F407, GPIO output confirmed via hardware, wire-protocol deployment via nanoff confirmed working end-to-end.
### 2026-04-08 16:26:18 UTC [PASS]
- Correction to previous LED conclusion:
- Symptom observed: managed assemblies deployed and visible, but LED did not blink after cold reset.
- Root cause: GPIOA peripheral clock was not enabled at board startup in custom board init.
- Evidence before fix (post-reset register read):
- `RCC_AHB1ENR = 0x00101002` (GPIOAEN bit 0 clear)
- `GPIOA_MODER = 0xA8000000` (PA2 mode not set)
- This prevented managed GPIO access to PA2 (`LED_STATUS`) from taking effect.
- Permanent firmware fix:
- File changed: `nf-native/board_cubley.cpp`
- Added in `boardInit()` after `stm32_clock_init()`:
- `RCC->AHB1ENR |= RCC_AHB1ENR_GPIOAEN;`
- Validation after rebuild/reflash/redeploy:
1. Rebuilt firmware (`toolchain/build-native.sh`, profile `minimal`)
2. Flashed `build/nanoBooter.bin` and `build/nanoCLR.bin`
3. Deployed `tests/BlinkBringup/bin/Release/latest.deploy.bin`
4. Verified post-reset registers without manual poke:
- `RCC_AHB1ENR = 0x00101003` (GPIOAEN set)
- `GPIOA_MODER = 0xA8000010` (PA2 output)
- `GPIOA_ODR = 0x00000004`
5. User confirmation: LED is flashing.
- Conclusion: Managed LED blink is now robust across reset/power cycle; issue fixed in firmware startup path.
### 2026-04-08 22:00:30 UTC [INFO]
- Git rev: a9bb2bd (working tree with local diagnostic/tooling patches)
- Command(s):
- Recreated missing GDB probe command files under `.debug/` and corrected probe sequencing (`reset halt` -> set breakpoint -> `reset run`) for one-shot startup-gate probes.
- Refreshed probe addresses from current `build/nanoCLR.elf` symbols/disassembly:
- `CreateInstance` `0x0801434C`
- `ResolveAll` `0x0802D588`
- `After ResolveAll` `0x08019D9C`
- `PrepareForExecution` `0x0802E854`
- `NewThread` `0x080320E0`
- `Execute_IL` `0x08009788`
- `NativeWrite` `0x0801F5BC`
- Probed `NativeWrite` argument registers at runtime (`r5=0x2`) to verify managed write targets pin index 2 (PA2).
- Result:
- Pin mapping did not regress in vendored target content (PA2 remains `LED_STATUS`; managed pin argument observed as 2).
- During one failing run, startup regressed at `ResolveAll` with `r0=0xA3000000` before IL execution.
- Conclusion: No evidence of PA2 remap regression. Intermittent no-LED episodes correlate with managed dependency resolution state, not pin-map drift.
### 2026-04-08 22:00:30 UTC [PASS]
- Git rev: a9bb2bd (working tree with local diagnostic/tooling patches)
- Command(s):
- Updated `toolchain/compile-blink-test.sh` fallback bundling to include `nanoFramework.Runtime.Events.pe` automatically when available (from app output or `packages/` cache).
- Rebuilt BlinkBringup and regenerated `tests/BlinkBringup/bin/Release/BlinkBringup.bin`.
- Verified bundle composition with `toolchain/inspect_deploy_bundle.py` (5 NFMRK1 records including runtime events).
- Reflashed deterministic baseline over SWD (`nanoBooter`, `nanoCLR`, deployment image).
- Re-ran startup gate: all probes PASS (`ResolveAll HR=0x0`, `PrepareForExecution`, `NewThread`, `Execute_IL`, and `NativeWrite` all hit).
- User power-cycled board and confirmed LED activity restored.
- Artifact:
- `tests/BlinkBringup/bin/Release/BlinkBringup.bin` (full-stack fallback bundle)
- Conclusion: Build/deploy process is stable again for this target; managed startup and PA2 GPIO path are both validated after power cycle.
### 2026-04-09 08:00:10 UTC [PASS]
- Git rev: 7b85dc6
@@### 2026-04-09 16:30 UTC [DIAGNOSTIC]
@@- Git rev: 87c3638
@@- Command(s):
@@ 1. Recompiled managed assemblies (./toolchain/build-managed.sh compile) after fixing W5500Socket.Open() signature
@@ 2. Deployed rebuilt W5500Bringup.bin (nanoff --deploy --image tests/W5500Bringup/bin/Release/W5500Bringup.bin --reset)
@@ 3. Verified Cubley.Interop v1.0.0.0 present in device (nanoff --devicedetails)
@@ 4. Tested CLR startup with mailbox probe (tests/swd_read_bringup_status.sh)
@@ 5. Deployed BlinkBringup.bin test to isolate issue
@@ 6. Rebuilt CLR firmware clean (NF_INCREMENTAL_BUILD=0 ./toolchain/build-native.sh w5500-native)
@@ 7. Flashed fresh nanoBooter.bin and nanoCLR.bin to 0x08000000 and 0x08004000
@@- Artifact: tests/W5500Bringup/bin/Release/W5500Bringup.bin + tests/BlinkBringup/bin/Release/BlinkBringup.bin
@@- Probe results:
@@ - Mailbox: 0xd5350000 (stage 53, RUNNING, detail 0)
@@ - W5500Bringup: Stage 53 (stuck)
@@ - BlinkBringup: Stage 53 (stuck)
@@ - Both apps reached same fixture, ruling out app-specific issue
@@ - Fresh CLR build: Still stage 53
@@- Conclusion:
@@ **BLOCKER IDENTIFIED - CLRStartupThread Deadlock**: CLR firmware (from nf-interpreter) is stuck at stage 0x35 before entering managed code execution. This occurs universally across all deployed managed apps (W5500Bringup, BlinkBringup). The CLRStartupThreadWrapper sets mailbox to 0x35 then calls CLRStartupThread(), which blocks indefinitely without yielding control. Receiver thread and scheduler remain responsive (device accepts UART commands after hardware reset). A clean rebuild of CLR firmware (NF_INCREMENTAL_BUILD=0) does not resolve the issue, eliminating stale artifacts as root cause.
@@
@@## ROOT CAUSE FINDINGS
@@
@@**W5500Socket.Open() Signature Mismatch (FIXED)**:
@@- Original issue: managed code called `W5500Socket.Open(out int socketHandle)` with BYREF_I4 marshalling
@@- Native interop declared `Library_cubley_interop_W5500Socket_NativeOpen___STATIC__I4__BYREF_I4` (incorrect sig)
@@- Probe showed ResolveAll hitting in CLR but PrepareForExecution never reached (MISS)
@@- **Fix applied**:
@@ - CubleyInteropNative.cs: wrap Open(out handle) as managed method, call NativeOpen() returning fixed handle=1
@@ - cubley_interop.cpp: renamed method to `___STATIC__I4` (removed BYREF)
@@ - w5500_interop.cpp: removed 3x byref assignments in NativeOpen body
@@ - Recompiled managed assemblies with ./toolchain/build-managed.sh compile
@@- **Result**: Cubley.Interop loads without dependency errors; all managed assemblies deployed successfully
@@
@@**CLRStartupThread Universal Hang (UNRESOLVED)**:
@@- Symptom: Mailbox frozen at 0xd5350000 (stage 0x35, RUNNING, detail 0)
@@- Location: nanoCLR_main.c CLRStartupThreadWrapper() line 59 (SetStartupMailbox(0x35)) -> CLRStartupThread() blocks forever
@@- Evidence: Multiple deployments (W5500Bringup, BlinkBringup) all hit same fixture
@@- Scope: Issue persists after clean rebuild (not a build artifact or stale state)
@@- Likely Cause: CLRStartupThread implementation has an infinite loop, exception loop, or breakpoint trap; source not available in workspace (part of upstream nf-interpreter)
@@
@@## BLOCKING ISSUE DETAILS
@@
@@### Stage 0x35 Semantics
@@- Format: 0xD5 (magic) | 0x35 (stage) | 0x00 (result=RUNNING) | 0x00 (detail)
@@- Lifecycle:
@@ 1. main() sets 0x30 (init)
@@ 2. halInit() done, set 0x31 (HAL ready)
@@ 3. osKernelInitialize() done, set 0x32 (kernel init)
@@ 4. ReceiverThread created, set 0x32 (thread created)
@@ 5. CLRStartupThreadWrapper() called:
@@ - Sets 0x35 "about to run CLRStartupThread()"
@@ - Calls CLRStartupThread(argument) **<-- BLOCKS HERE, NEVER RETURNS**
@@ - Would set 0x36 on failure (if it returned)
@@ 6. ... managed code execution would follow if stage 0x35 transitioned
@@
@@### Why Managed Code Never Runs
@@- CLRStartupThread must:
@@ 1. Load managed PE files from deployment region (0x080C0000+)
@@ 2. Initialize CLR runtime
@@ 3. Resolve assembly dependencies
@@ 4. Prepare JIT/IL engine
@@ 5. Create main thread and call Program.Main()
@@- We know ResolveAll() HIT in an earlier probe (before recompile), so the issue is somewhere between ResolveAll and PrepareForExecution
@@- After recompile (fixing interop signature), we have not re-probed since CLRStartupThread itself is unreachable
@@
@@## DIAGNOSTIC RECOMMENDATIONS
@@
@@1. **Inspect upstream nf-interpreter CLRStartupThread**:
@@ - File likely: `src/CLR/Startup/CLR_Startup_Thread.cpp` in nf-interpreter sources
@@ - Look for: infinite loops, tight polling, bkpt instructions, or exception handlers
@@
@@2. **Check build configuration**:
@@ - Review `CMakeLists.txt` for debug/instrumentation flags that may have enabled breakpoints
@@ - Check compiler optimization levels (LTO warnings observed in build output)
@@
@@3. **Enable CLR diagnostic output** (if available):
@@ - May require recompiling nf-interpreter with DEBUG=1 or ENABLE_CLR_DIAGNOSTICS=1
@@ - Would need to rebuild Docker container with diagnostic flags
@@
@@4. **Alternative: Downgrade or upgrade nf-interpreter ref**:
@@ - Current build from git commit (check nf-interpreter checkout revision)
@@ - Try upstream main or a known-good stable tag
@@
@@## SUMMARY OF FIXES APPLIED
@@
@@✅ **W5500Socket.Open() Interop Signature**: Fixed managed code calling wrong InternalCall signature. Cubley.Interop now wraps managed calls with correct parameter handling.
@@
@@❌ **CLRStartupThread Hang**: Not yet resolved. Device CLR firmware stalls before managed code execution. Requires investigation into nf-interpreter upstream or build configuration changes.
@@
@@## NEXT SESSION PLAN
@@
@@1. Identify nf-interpreter git ref used in build (check `NF_INTERPRETER_REF` in toolchain/build-native.sh or docker logs)
@@2. Clone/check nf-interpreter source for CLRStartupThread implementation
@@3. Compare against known-good version or check recent commits for breakage
@@4. Consider building with diagnostic/debug flags to capture CLR startup logs
@@5. Test with alternative nf-interpreter versions if current is broken
- Command(s): ./toolchain/build-native.sh minimal; st-flash write build/nanoBooter.bin 0x08000000; st-flash write build/nanoCLR.bin 0x08004000; nanoff --nanodevice --listdevices; nanoff --nanodevice --serialport /dev/ttyUSB0 --baud 115200 --devicedetails; 8x+5x stress loops with/without st-flash reset
- Artifact: build/nanoBooter.bin; build/nanoCLR.bin; DiSEqC_Control/bin/Release/DiSEqC_Control.bin
- Conclusion: USART3 wire protocol is operational again on fresh minimal firmware; nanoff list/devicedetails stable across repeated attempts and SWD resets. Hardened HalSystemConfig debug handle mapping to explicit ConvertCOM_DebugHandle(3).
### 2026-04-09 08:42:20 UTC [PASS]
- Git rev: ef3c81b
- Command(s): ./toolchain/build-native.sh w5500-native; st-flash write build/nanoBooter.bin 0x08000000; st-flash write build/nanoCLR.bin 0x08004000; ./toolchain/compile-w5500-test.sh; nanoff --deploy tests/W5500Bringup/bin/Release/W5500Bringup.bin @0x080C0000
- Artifact: build/nanoBooter.bin; build/nanoCLR.bin; tests/W5500Bringup/bin/Release/W5500Bringup.bin
- Conclusion: Switched target back to W5500 bring-up: w5500-native firmware flashed, W5500Bringup managed bundle deployed, and nanoff devicedetails confirms W5500Bringup 1.0.0.0 loaded with required dependencies.
### 2026-04-09 11:37:57 UTC [FAIL]
- Git rev: ef3c81b + local mailbox diagnostics (uncommitted)
- Command(s):
- Added SWD mailbox plumbing and probes (`diseqc_interop.cpp`, `DiSEqCNative.cs`, `w5500_interop.cpp`, `tests/swd_read_bringup_status.sh`).
- Rebuilt/flashed `w5500-native` repeatedly and deployed both `W5500Bringup` and dedicated `MailboxSmoke` managed apps (manual packed bundles via `toolchain/pack-and-validate.sh`).
- Verified device-side assembly visibility via `nanoff --devicedetails` after successful deploy cycles.
- Probed mailbox repeatedly over SWD (`tests/swd_read_bringup_status.sh`) and cross-validated probe correctness with explicit SWD write/read (`tests/poke_bringup_status.sh`).
- Artifact: build/nanoCLR.bin; tests/W5500Bringup/bin/Release/W5500Bringup.bin; tests/MailboxSmoke/bin/Release/latest.deploy.bin
- Conclusion: SWD mailbox transport is valid, but runtime mailbox state remains at firmware sentinel `0xD5010000` (stage=1, running) across repeated deploy/reboot cycles; managed app assemblies load but observed execution does not advance mailbox stage/result. End-to-end mailbox signaling is not yet passing.
### 2026-04-09 11:56:33 UTC [FAIL]
- Git rev: ef3c81b + local startup-marker diagnostics (uncommitted)
- Command(s):
- Instrumented `build/nanoCLR_main.c` with startup markers around kernel init/thread create and CLR thread wrapper entry.
- Rebuilt/flashed `w5500-native`, deployed `MailboxSmoke` bundle, and sampled mailbox repeatedly over SWD.
- Verified marker progression to `0xD5350000` (stage `0x35`) after boot and after successful managed deployment.
- Verified `nanoff --devicedetails` shows `MailboxSmoke, 1.0.0.0` loaded, while mailbox never moves beyond stage `0x35`.
- Artifact: build/nanoCLR.bin; tests/MailboxSmoke/bin/Release/latest.deploy.bin
- Conclusion: CLR startup thread is entered (stage `0x35`), but mailbox updates from managed/native interop are never observed afterward; execution appears stalled/blocked within CLR startup path before user-managed code or mailbox interop calls execute.
### 2026-04-09 13:10:31 UTC [FAIL]
- Git rev: ef3c81b + local deep CLR instrumentation (uncommitted)
- Command(s):
- Patched active Docker volume source `nanoframework_nf-interpreter:/nf-interpreter/targets/ChibiOS/_nanoCLR/CLR_Startup_Thread.c` with mailbox markers:
- `0x40` thread entered
- `0x41` after `nanoHAL_Initialize_C()`
- `0x42` before `AssertBlockStorage()`
- `0x43` after `AssertBlockStorage()`
- `0x44` immediately before `ClrStartup(*clrSettings)`
- `0x45` immediately after `ClrStartup` return (expected unreachable)
- Rebuilt/flashed `w5500-native` and probed mailbox over SWD.
- Artifact: build/nanoCLR.bin
- Conclusion: mailbox reaches `0xD5440000` consistently (stage `0x44`, running), proving startup advances through nanoHAL and block storage checks, then stalls inside `ClrStartup(*clrSettings)` before returning or advancing to managed mailbox writes.
### 2026-04-09 14:32:48 UTC [FAIL]
- Git rev: ef3c81b + local mailbox bindtest diagnostics (uncommitted)
- Command(s):
- Rebuilt and packed bindtest managed bundle (`tests/MailboxSmoke/bin/Release/latest.deploy.bin`) with assembly identity `DiSEqC_Control.Interop`.
- Bounded transport probes with explicit timeouts:
- `timeout 8s nanoff --nanodevice --serialport /dev/ttyUSB0 --baud 115200 --listdevices` -> timeout (`rc=124`).
- `timeout 20s nanoff --nanodevice --serialport /dev/ttyUSB0 --baud 115200 --deploy --image tests/MailboxSmoke/bin/Release/latest.deploy.bin --address 0x080C0000 --reset` -> `Error E2001`.
- Additional baud sweep attempts (`230400`, `460800`) also timed out on `--listdevices`.
- Verified SWD path remains healthy in same session: `st-info --probe` succeeds and `tests/swd_read_bringup_status.sh` reads mailbox `0xD5440000`.
- Artifact: tests/MailboxSmoke/bin/Release/latest.deploy.bin; /tmp/list.log; /tmp/deploy.log
- Conclusion: current blocker is UART wire-protocol transport instability (listdevices/deploy timeouts or E2001), not SWD or mailbox read path; bindtest interop hypothesis cannot be validated until serial deploy becomes stable again.
### 2026-04-09 14:51:14 UTC [FAIL]
- Git rev: ef3c81b + local mailbox bindtest diagnostics (uncommitted)
- Command(s):
- `st-flash reset`
- `nanoff --nanodevice --serialport /dev/ttyUSB0 --baud 115200 --devicedetails`
- `nanoff --nanodevice --serialport /dev/ttyUSB0 --baud 115200 --deploy --image tests/MailboxSmoke/bin/Release/latest.deploy.bin --address 0x080C0000 --reset`
- `nanoff --nanodevice --serialport /dev/ttyUSB0 --baud 115200 --devicedetails`
- `./tests/swd_read_bringup_status.sh`
- Artifact: tests/MailboxSmoke/bin/Release/latest.deploy.bin
- Result highlights:
- UART transport recovered after SWD reset; `nanoff --devicedetails` succeeded.
- Before deploy, managed assemblies showed `MailboxSmoke, 1.0.0.0` + `mscorlib`.
- Bindtest deploy completed successfully (`Getting details...OK`, `Deploying managed application...OK`, `Rebooting...OK`).
- After deploy, managed assemblies showed only `mscorlib, 1.17.11.0`.
- `DiSEqC_Control.Interop v1.0.0.0` remained visible only under `Native Assemblies`.
- SWD mailbox remained unchanged at `0xD5440000` (stage `0x44`, running).
- Conclusion: mailbox feature still does not work end-to-end. With transport restored, the bindtest image can be deployed but is not accepted as a live managed assembly, and execution still never advances past the pre-`ClrStartup()` mailbox marker.
### 2026-04-09 16:01:40 UTC [FAIL]
- Git rev: ef3c81b + local mailbox diagnostics (uncommitted)
- Command(s):
- Reverted MailboxSmoke assembly name from `DiSEqC_Control.Interop` back to `MailboxSmoke` in `.nfproj`.
- Rebuilt with `FORCE_REBUILD=1 ./toolchain/compile-mailbox-smoke.sh`.
- Packed new bundle at `tests/MailboxSmoke/bin/Release/MailboxSmoke_original-*.deploy.bin`.
- Deployed via `st-flash reset` + `nanoff --deploy`.
- Post-deploy `nanoff --devicedetails` confirmed assemblies.
- Sampled mailbox via `./tests/swd_read_bringup_status.sh`.
- Artifact: tests/MailboxSmoke/bin/Release/MailboxSmoke_original-20260409T145918Z.deploy.bin
- Result highlights:
- Deploy succeeded (`Getting details...OK`, `Deploying managed application...OK`, `Rebooting...OK`).
- **Post-deploy managed assemblies: `MailboxSmoke, 1.0.0.0` + `mscorlib, 1.17.11.0` (now includes MailboxSmoke)**
- SWD mailbox: `0xD5440000` (stage `0x44` = 68 decimal, RUNNING), unchanged from before.
- Conclusion: Assembly name was the root cause of managed app disappearance after deploy. Restoring to `MailboxSmoke` now allows managed assembly to load and persist on-device. However, runtime execution still stalls inside `ClrStartup()` before returning to execution context; mailbox remains at stage `0x44`. **Root issue shifted from assembly identity to CLR startup stall.**
### 2026-04-09 16:08:45 UTC [INFO]
- Git rev: ef3c81b + local GDB isolation diagnostics (uncommitted)
- Command(s):
- Packed dependency-complete MailboxSmoke deployment bundle (4 records):
- `MailboxSmoke.pe`
- `mscorlib.pe`
- `nanoFramework.Runtime.Events.pe`
- `System.Threading.pe`
- Deployed full-stack bundle via `nanoff --deploy` (deploy log shows `Getting details...OK`, `Deploying managed application...OK`, `Rebooting...OK`).
- Ran non-invasive SWD/GDB runtime sampling (no interpreter source patching):
- reset-run, timed halt, capture `PC`, `bt`, and instruction window.
- Ran startup milestone breakpoint pass at:
- `ClrStartup` `0x08018F88`
- `ResolveAll` `0x0802F144`
- `PrepareForExecution` `0x08030410`
- `NewThread` `0x08033DE8`
- Artifact: tests/MailboxSmoke/bin/Release/MailboxSmoke_full_stack-20260409T153106Z.deploy.bin; /tmp/gdb_sample.log; /tmp/gdb_direct.log
- Result highlights:
- Dependency-complete bundle generated successfully (`RECORD_COUNT: 4`).
- GDB runtime sample halted in managed IL:
- `FINAL_PC=0x08009A92`
- symbol: `CLR_RT_Thread::Execute_IL(...)`
- backtrace: `Execute_IL` -> `ClrStartup` -> `CLRStartupThreadWrapper`.
- Startup breakpoints were reached through `NewThread` (`halted: PC: 0x08018f8c`, `0x0802f148`, `0x08030414`, `0x08033dec`).
- Mailbox remains unchanged at `0xD5440000` (stage `0x44`) in subsequent SWD checks.
- Conclusion: adding `nanoFramework.Runtime.Events` + `System.Threading` did not clear the mailbox symptom in this run. Managed IL is executing, so the earlier strict "stall before managed handover" hypothesis no longer fully explains current behavior. Next isolation target is managed-to-native boundary (`MailboxSet/Get` and W5500 native entrypoints) with one-probe-per-session GDB runs.
### 2026-04-09 16:14:33 UTC [FAIL]
- Git rev: ef3c81b + local GDB isolation diagnostics (uncommitted)
- Command(s):
- Added one-probe-per-session helper `toolchain/probe-one-breakpoint.sh` to isolate native interop entrypoints using fresh OpenOCD/GDB sessions.
- Ran one-shot probes at native addresses:
- `MAILBOX_SET` `0x08023F00`
- `MAILBOX_GET` `0x08023F10`
- `W5500_OPEN` `0x08023F20`
- `W5500_CLOSE` `0x08024010`
- Each probe run bounded with timeout (`30s`) to classify hit/miss deterministically.
- Artifact: /tmp/onebp_set3.log; /tmp/onebp_get3.log; /tmp/onebp_open3.log; /tmp/onebp_close3.log
- Result highlights:
- All four interop probes timed out without breakpoint hit (`MISS rc=124`).
- During each probe run, debugger snapshots still show CPU in managed IL (`CLR_RT_Thread::Execute_IL(...)`).
- Managed PE metadata strings in `MailboxSmoke.pe` include `DiSEqC_Control.Native` symbols and `NativeSetBringupStatus`, but do **not** include assembly identity `DiSEqC_Control.Interop`.
- Native assembly export remains `g_CLR_AssemblyNative_DiSEqC_Control_Interop` (`"DiSEqC_Control.Interop"`, checksum `0x12345678`).
- Mailbox status remains unchanged (`0xD5440000`, stage `0x44`) after these runs.
- Conclusion: managed IL execution is active, but none of the mailbox/W5500 native interop entrypoints are being reached in the current MailboxSmoke runtime path. The fault domain is now narrowed to managed-side control flow / internal-call binding at the managed-to-native boundary (not pre-CLR startup and not transport).
### 2026-04-09 16:32:23 UTC [FAIL]
- Git rev: ef3c81b + local interop-split diagnostics (uncommitted)
- Command(s):
- Added dedicated managed interop library project `DiSEqC_Control.Interop` with raw `[MethodImpl(InternalCall)]` declarations in native table order and wired `tests/MailboxSmoke` to reference it.
- Rebuilt with `FORCE_REBUILD=1 ./toolchain/compile-mailbox-smoke.sh` and packed full-stack bundle including:
- `MailboxSmoke.pe`
- `DiSEqC_Control.Interop.pe`
- `mscorlib.pe`
- `nanoFramework.Runtime.Events.pe`
- `System.Threading.pe`
- Deployed via `nanoff --deploy` and verified with `nanoff --devicedetails`.
- Re-ran SWD mailbox read and startup/interops probe attempts (`probe-clr-startup.sh`, `probe-one-breakpoint.sh`).
- Artifact: `tests/MailboxSmoke/bin/Release/MailboxSmoke_interop_split_full_stack-20260409T162116Z.deploy.bin`; `/tmp/probe_startup_interop_split.out`; `/tmp/deploy_interop2.log`; `/tmp/devicedetails_interop2.log`
- Result highlights:
- Build succeeded and produced `DiSEqC_Control.Interop.pe` in MailboxSmoke output.
- Deploy completed (`Getting details...OK`, `Deploying managed application...OK`, `Rebooting...OK`).
- Post-deploy managed assemblies still show only:
- `MailboxSmoke, 1.0.0.0`
- `mscorlib, 1.17.11.0`
- `nanoFramework.Runtime.Events, 1.11.32.0`
- `System.Threading, 1.1.52.34401`
- `DiSEqC_Control.Interop` remains visible under **Native Assemblies** only; no managed assembly entry is accepted/retained for that name.
- SWD mailbox remains unchanged at `0xD5440000` (stage `0x44`, RUNNING).
- Startup probe partial pass confirms early managed pipeline still advances (`CLRSTARTUP=HIT`, `CREATEINSTANCE=HIT`, `RESOLVEALL=HIT`) before debugger/OpenOCD session instability interrupted full table capture.
- Conclusion: splitting wrappers into a managed assembly named `DiSEqC_Control.Interop` did not restore mailbox/W5500 native entrypoint execution in this target state; managed deployment still effectively runs as `MailboxSmoke` while `DiSEqC_Control.Interop` remains native-only. The managed-to-native dispatch fault remains unresolved, with probe tooling noise now a secondary blocker for deterministic hit/miss completion.
### 2026-04-09 17:15:12 UTC [FAIL]
- Git rev: 87c3638
- Command(s): st-flash --reset write build/nanoBooter.bin 0x08000000; st-flash --reset write build/nanoCLR.bin 0x08004000; st-flash reset; nanoff --deploy tests/W5500Bringup/bin/Release/W5500Bringup.bin; nanoff --devicedetails; st-info --probe
- Artifact: build/nanoBooter.bin; build/nanoCLR.bin; tests/W5500Bringup/bin/Release/W5500Bringup.bin
- Conclusion: Blocked by transport outage: ST-Link cannot enter SWD mode (chipid 0x000/LIBUSB timeouts) and UART nanoff list/devicedetails fails (timeout/E2001), so flash/deploy verification could not complete for M0DMF_CUBLEY_F407.
- Note: Git rev 87c3638. Pre-run artifact times: nanoBooter/nanoCLR 2026-04-09 18:10:08 +0100, W5500Bringup.bin 2026-04-09 18:06:19 +0100.
### 2026-04-09 17:31:21 UTC [FAIL]
- Git rev: 87c3638
- Command(s): NF_UPDATE_INTERPRETER=0 ./toolchain/build-native.sh cubley-stable; timeout 20s st-flash write build/nanoBooter.bin 0x08000000; timeout 20s st-flash write build/nanoCLR.bin 0x08004000; timeout 15s nanoff --nanodevice --serialport /dev/ttyUSB0 --baud 115200 --devicedetails
- Artifact: build/nanoBooter.bin; build/nanoCLR.bin
- Conclusion: Cubley firmware rebuilt successfully (target M0DMF_CUBLEY_F407), but validation blocked by transport outage: ST-Link LIBUSB timeouts and UART E2001.
### 2026-04-09 17:38:02 UTC [FAIL]
- Git rev: 87c3638
- Command(s): Post-reboot transport check; timeout 8s st-info --probe; timeout 8s nanoff --listdevices; timeout 12s nanoff --devicedetails; timeout 8s st-flash --reset write build/nanoBooter.bin 0x08000000; timeout 8s st-flash --reset write build/nanoCLR.bin 0x08004000; timeout 20s st-flash --reset write build/nanoCLR.bin 0x08004000 (retry); timeout 8s st-info --probe; timeout 12s nanoff --devicedetails
- Artifact: build/nanoBooter.bin; build/nanoCLR.bin
- Conclusion: After full reboot cycle, booter flash succeeded once but nanoCLR flash failed with ST-Link LIBUSB_BUSY then LIBUSB_TIMEOUT; SWD and UART both regressed to timeout state.
### 2026-04-09 17:52:05 UTC [PASS]
- Git rev: 87c3638
- Command(s): NF_UPDATE_INTERPRETER=0 NF_INCREMENTAL_BUILD=0 ./toolchain/build-native.sh cubley-stable; st-flash --reset write build/nanoBooter.bin 0x08000000; st-flash --reset write build/nanoCLR.bin 0x08004000; st-info --probe; nanoff --nanodevice --serialport /dev/ttyUSB0 --baud 115200 --devicedetails
- Artifact: build/nanoBooter.bin; build/nanoCLR.bin
- Conclusion: Clean cubley-stable build flashed successfully over ST-Link; post-flash UART devicedetails reports target M0DMF_CUBLEY_F407 and native assembly Cubley.Interop.
### 2026-04-09 18:23:49 UTC [INFO]
- Git rev: 87c3638
- Command(s): Patched Cubley interop Open signature (removed BYREF out handle), rebuilt cubley-w5500; attempted flash/deploy
- Artifact: build/nanoBooter.bin; build/nanoCLR.bin; tests/W5500Bringup/bin/Release/W5500Bringup.bin
- Conclusion: Interop patch compiled successfully, but current shell transport is unstable/contended (ST-Link claim failures and nanoff timeouts), so LED retest awaits clean deploy on target.
### 2026-04-10 09:55:00 UTC [FAIL]
- Git rev: 87c3638
- Command(s):
- Applied USART3-only wire-protocol exposure in target serial config:
- removed `NF_SERIAL_COMM_STM32_UART_USE_USART1` from `nf-native/target-overrides/target_system_io_ports_config.h`
- removed `UART1` pin/init/uninit blocks from `nf-native/target-overrides/target_system_io_ports_config.cpp`
- Built: `./toolchain/build-native.sh core-only` (SUCCESS)
- Flashed:
- `st-flash write build/nanoBooter.bin 0x08000000`
- `st-flash write build/nanoCLR.bin 0x08004000`
- UART reliability checks:
- repeated `st-flash reset` + `nanoff --nanodevice --serialport /dev/ttyUSB0 --baud 115200 --listdevices`
- direct checks: `nanoff --listports`, `nanoff --listdevices`, `nanoff --devicedetails`
- SWD correlation:
- `./toolchain/run-startup-gate.sh`
- `./tests/swd_read_bringup_status.sh`
- Artifact:
- `.debug/uart_listdevices_matrix_20260410_094952.log`
- `.debug/uart_listdevices_matrix_rerun_20260410_095137.log`
- `.debug/uart_listdevices_clean8_20260410_095229.log`
- `.debug/gdb_startup_gate.out`
- Result highlights:
- Host serial port is present: `/dev/ttyUSB0`.
- Post-flash `nanoff --listdevices` returns `No devices found` when it completes.
- In bounded runs, `nanoff --listdevices` frequently times out (`rc=124`) before returning device info.
- Baud sweep (`115200/230400/460800/921600`) all timed out in `--listdevices` (`rc=124`).
- SWD mailbox remains readable and unchanged at `0xD5010000` (stage 1, RUNNING, detail 0).
- Startup-gate script reports all-zero probe hits in this profile/run (`GATE_STATUS=FAIL`).
- Conclusion: narrowing serial-comm exposure to USART3 did not restore UART wire-protocol enumeration in this test window. Failure mode persists as `No devices found` and/or nanoff timeout despite successful firmware build/flash and readable SWD mailbox.
### 2026-04-10 10:20:00 UTC [FAIL]
- Git rev: 87c3638
- Command(s):
- Rebuilt stable profile with clean flags:
- `NF_UPDATE_INTERPRETER=0 NF_INCREMENTAL_BUILD=0 ./toolchain/build-native.sh cubley-stable`
- Flashed stable artifacts:
- `st-flash write build/nanoBooter.bin 0x08000000`
- `st-flash write build/nanoCLR.bin 0x08004000`
- UART checks (stable):
- `timeout 12s nanoff --nanodevice --serialport /dev/ttyUSB0 --baud 115200 --listdevices`
- `timeout 15s nanoff --nanodevice --serialport /dev/ttyUSB0 --baud 115200 --devicedetails`
- Rebuilt and flashed hardware smoke profile:
- `NF_UPDATE_INTERPRETER=0 NF_INCREMENTAL_BUILD=0 ./toolchain/build-native.sh bringup-smoke`
- `st-flash write build/nanoBooter.bin 0x08000000`
- `st-flash write build/nanoCLR.bin 0x08004000`
- Raw UART capture checks (bringup-smoke):
- `timeout 8s cat /dev/ttyUSB0`
- `timeout 6s dd if=/dev/ttyUSB0 bs=1 count=256 | xxd`
- `st-flash reset` followed by `timeout 10s dd if=/dev/ttyUSB0 bs=1 count=512 | xxd`
- Artifact:
- build output logs from cubley-stable and bringup-smoke builds
- Result highlights:
- cubley-stable did not recover UART wire-protocol: `--listdevices` timed out (`rc=124`), `--devicedetails` failed with `E2001` (`rc=209`).
- bringup-smoke produced no readable bytes on `/dev/ttyUSB0`, including immediate post-reset capture window.
- Conclusion: failure currently reproduces across profiles, including raw UART smoke firmware. This points to a transport-layer or physical UART path issue (adapter/wiring/reset timing/channel ownership), not profile-specific managed startup.
### 2026-04-10 10:25:00 UTC [FAIL]
- Git rev: 87c3638
- Command(s):
- Power-cycled board, USB-UART adapter, and ST-Link.
- Ran standardized preflight: `./toolchain/uart-preflight.sh`
- Verified adapter identity:
- `lsusb`
- `udevadm info -q all -n /dev/ttyUSB0`
- `readlink -f /sys/class/tty/ttyUSB0/device/driver`
- Artifact:
- `.debug/uart_preflight_20260410_092329/summary.txt`
- `.debug/uart_preflight_20260410_092329/nanoff_listdevices.log`
- `.debug/uart_preflight_20260410_092329/nanoff_devicedetails.log`
- `.debug/uart_preflight_20260410_092329/raw_capture_prereset.log`
- `.debug/uart_preflight_20260410_092329/raw_capture_postreset.log`
- Result highlights:
- `/dev/ttyUSB0` present and not held by another process.
- USB-UART adapter enumerates as QinHeng/CH340 (`1a86:7523`) on `ch341-uart`.
- `nanoff --listdevices` timed out.
- `nanoff --devicedetails` timed out.
- Raw UART capture showed no bytes before reset and no bytes after `st-flash reset`.
- ST-Link reset path is responsive; `st-flash reset` completed normally.
- Conclusion: full host-side re-enumeration did not restore UART traffic. Current failure is below nanoFramework wire-protocol level in this session: host serial adapter is present, but no UART bytes are observed from the target even on raw capture.
### 2026-04-10 11:39:00 UTC [PASS]
- Git rev: 87c3638
- Command(s):
- Rebuilt core profile:
- `./toolchain/build-native.sh core-only`
- Flashed:
- `st-flash write build/nanoBooter.bin 0x08000000`
- `st-flash write build/nanoCLR.bin 0x08004000`
- `st-flash reset`
- Wire-protocol verification:
- `nanoff --nanodevice --serialport /dev/ttyUSB0 --baud 115200 --listdevices`
- `nanoff --nanodevice --serialport /dev/ttyUSB0 --baud 115200 --devicedetails`
- Live UART capture correlation during reset showed expected smoke UART output:
- `[bringup-smoke] start`
- `[bringup-smoke] echo ready`
- `[bringup-smoke] hb`
- Result highlights:
- `nanoff --listdevices` succeeded and enumerated `M0DMF_CUBLEY_F407 @ /dev/ttyUSB0`.
- `nanoff --devicedetails` succeeded and returned full HAL/firmware details.
- Post-swap behavior confirms UART cable orientation was the primary transport blocker.
- Conclusion: UART wire-protocol transport is now healthy on core-only at 115200 over `/dev/ttyUSB0`.
### 2026-04-10 11:48:00 UTC [PASS]
- Git rev: 87c3638
- Command(s):
- Patched preflight script timing/criteria:
- `toolchain/uart-preflight.sh`
- Arm post-reset UART capture before issuing `st-flash reset`.
- Increase default nanoff timeout from 12s to 20s.
- Add optional strict flag `--require-raw-bytes` (default off) to avoid false failures on quiet CLR builds.
- Ran syntax check and preflight:
- `bash -n ./toolchain/uart-preflight.sh`
- `./toolchain/uart-preflight.sh`
- Artifact:
- `.debug/uart_preflight_20260410_104848/summary.txt`
- `.debug/uart_preflight_20260410_104848/nanoff_listdevices.log`
- `.debug/uart_preflight_20260410_104848/nanoff_devicedetails.log`
- Result highlights:
- `nanoff --listdevices` rc=0 (device enumerated).
- `nanoff --devicedetails` rc=0 (full details returned).
- `overall_status=0` (PASS).
- Raw captures remained empty on core-only, which is expected unless strict raw-byte mode is requested.
- Conclusion: preflight gate now reflects true wire-protocol health and passes consistently on recovered UART transport.
### 2026-04-10 11:57:00 UTC [PASS]
- Git rev: 87c3638
- Command(s):
- Built and flashed smoke UART heartbeat image:
- `./toolchain/build-native.sh bringup-smoke`
- `st-flash write build/nanoBooter.bin 0x08000000`
- `st-flash write build/nanoCLR.bin 0x08004000`
- Strict preflight attempt:
- `./toolchain/uart-preflight.sh --require-raw-bytes`
- Direct raw capture correlation while reset asserted during active capture:
- `stty -F /dev/ttyUSB0 115200 cs8 raw -parenb -cstopb`
- `timeout 10s cat /dev/ttyUSB0 | xxd` + `st-flash reset`
- Artifact:
- `.debug/uart_preflight_20260410_105703/summary.txt`
- Result highlights:
- Strict preflight reported fail in smoke mode because `nanoff` probes are not expected to succeed on the smoke heartbeat firmware (no CLR wire-protocol service loop).
- Independent raw capture proved electrical UART path is healthy and active, showing repeated smoke banners/heartbeat bytes:
- `[bringup-smoke] start`
- `[bringup-smoke] echo ready`
- `[bringup-smoke] hb`
- Conclusion: strict raw-byte validation passed at the physical/UART layer; preflight strict mode should be used with a wire-protocol-capable firmware when `nanoff` success is also required.
### 2026-04-10 12:00:00 UTC [PASS]
- Git rev: 87c3638
- Command(s):
- Rebuilt stable profile (with fetch-content cleanup recovery):
- `NF_CLEAN_FETCHCONTENT=1 NF_UPDATE_INTERPRETER=0 ./toolchain/build-native.sh cubley-stable`
- Flashed:
- `st-flash write build/nanoBooter.bin 0x08000000`
- `st-flash write build/nanoCLR.bin 0x08004000`
- `st-flash reset`
- Updated preflight validation:
- `./toolchain/uart-preflight.sh`
- Artifact:
- `.debug/uart_preflight_20260410_110045/summary.txt`
- `.debug/uart_preflight_20260410_110045/nanoff_listdevices.log`
- `.debug/uart_preflight_20260410_110045/nanoff_devicedetails.log`
- Result highlights:
- `nanoff --listdevices` rc=0.
- `nanoff --devicedetails` rc=0.
- `overall_status=0` PASS on cubley-stable profile.
- Conclusion: updated preflight passes on the production-like stable profile; UART wire-protocol path is stable and recovered for continuing hardware bring-up.
### 2026-04-10 12:15:00 UTC [PASS]
- Git rev: 87c3638
- Command(s):
- Audited profile/entrypoint mapping in `toolchain/build-native.sh` and UART config overrides.
- Hardened entrypoint selection to reduce drift risk across profiles:
- `toolchain/build-native.sh`
- USB profile now explicitly copies shared `nf-native/target-overrides/nanoCLR/main.c`.
- Non-smoke/non-hardalive profiles now prefer the same shared `nf-native/target-overrides/nanoCLR/main.c` before any legacy fallback.
- Validation build:
- `NF_UPDATE_INTERPRETER=0 ./toolchain/build-native.sh core-only` (SUCCESS)
- Result highlights:
- USART serial comm exposure remains USART3-only (`target_system_io_ports_config.h/.cpp`).
- Debugger COM mapping remains COM3/USART3 in `target_common.c`.
- Profile startup entrypoint behavior is now deterministic and aligned for:
- `cubley-stable`, `cubley-w5500`, `core-only`, `legacy-network`, `cubley-usb`.
- Intentional exceptions kept unchanged:
- `bringup-smoke` uses smoke heartbeat entrypoint.
- `cubley-hardalive` uses bare-metal hardalive entrypoint.
- Conclusion: profile initialization paths are now aligned on a shared nanoCLR main implementation for normal profiles, reducing UART regression risk before hardware bring-up.
### 2026-04-10 12:23:00 UTC [PASS]
- Git rev: 87c3638
- Command(s):
- Quick profile compile sanity after entrypoint unification:
- `NF_UPDATE_INTERPRETER=0 ./toolchain/build-native.sh cubley-w5500`
- `NF_UPDATE_INTERPRETER=0 ./toolchain/build-native.sh cubley-usb`
- Result highlights:
- `cubley-w5500` build completed successfully.
- `cubley-usb` build completed successfully.
- USB profile confirmed it is using the shared dual-mode nanoCLR entrypoint path during build (`USB serial profile: using local USB support files and dual-mode nanoCLR entrypoint.`).
- Conclusion: normal operational profiles now compile with the shared initialization path in place, with no immediate regression introduced by the consistency hardening.
### 2026-04-10 13:15:00 UTC [INFO]
- Git rev: 8e589e3 (+ local W5500 interop diagnostics)
- Command(s):
- Removed all `DiSEqC` references from W5500 bring-up surfaces:
- `Cubley.Interop/CubleyInteropNative.cs` now exposes `BringupStatus` + `W5500Socket` only.
- `tests/W5500Bringup/Program.cs` now uses `BringupStatus.NativeSet/NativeGet`.
- `tests/W5500Bringup/README.md` wording updated to match W5500-only scope.
- `nf-native/cubley_interop.cpp` rewritten to a minimal native table containing only `BringupStatus` + `W5500Socket` entries.
- Rebuilt/flashed/deployed and re-ran W5500 diagnostics:
- `./toolchain/build-native.sh cubley-w5500`
- `st-flash write build/nanoBooter.bin 0x08000000`
- `st-flash write build/nanoCLR.bin 0x08004000`
- `./toolchain/compile-w5500-test.sh`
- `nanoff --deploy .../W5500Bringup.bin --address 0x080C0000 --reset`
- `./toolchain/w5500-swd-led-diag.sh --skip-deploy`
- Artifact:
- `.debug/w5500_swd_led_diag.out`
- `.debug/gdb_startup_gate.out`
- Result highlights:
- Managed deploy succeeds reliably.
- Startup probes now show partial progression (`GATE_AFTER_RESOLVEALL=1`, `GATE_PREPAREFOREXEC=1`) but still no W5500 native call hits.
- Mailbox remains at default `0xD5010000` in this run window.
- Conclusion: naming/surface cleanup is complete and removes the protocol-mixup risk; W5500 runtime path still needs on-target behavioral confirmation (LED/link/socket steps) to determine where execution stalls after startup.
### 2026-04-10 20:45:58 UTC [INFO]
- Git rev: 311470a
- Command(s): ./tests/swd_read_bringup_status.sh build/nanoCLR.elf
- Artifact: build/nanoCLR.elf
- Conclusion: SWD mailbox read succeeded with 0xD5900100 (stage 0x90 PASS detail 0), confirming early W5500 init pass in this sample.
### 2026-04-10 20:51:19 UTC [PASS]
- Git rev: 311470a
- Command(s): st-info --probe; ./toolchain/uart-preflight.sh; ./tests/swd_read_bringup_status.sh; ./tests/poke_bringup_status.sh build/nanoCLR.elf 0xD5900107; 3x ./tests/swd_read_bringup_status.sh
- Artifact: build/nanoCLR.elf; .debug/uart_preflight_20260410_204928/summary.txt
- Conclusion: Mailbox feature is operational: SWD mailbox reads are repeatable and decode to valid magic (0xD5), and current status is stable at 0xD5900100 (stage 0x90, PASS).
- Note: Probe_mailbox_setter timed out (GDB control flow), but independent mailbox read/poke/read checks succeeded.
### 2026-04-10 21:06:20 UTC [INFO]
- Git rev: 311470a
- Command(s): pkill openocd; st-flash reset; ./toolchain/uart-preflight.sh; ./toolchain/w5500-swd-led-diag.sh
- Artifact: .debug/uart_preflight_20260410_210155/summary.txt; .debug/w5500_swd_led_diag.out; .debug/gdb_startup_gate.out
- Conclusion: Current run shows W5500 early init PASS mailbox (0xD5900100, stage 0x90), but startup gate fails and W5500 Open/Config/Connect/Send/Recv probes all MISS, so bidirectional SPI socket path remains unproven.
### 2026-04-10 21:56:22 UTC [PASS]
- Git rev: 311470a
- Command(s): w5500-led-observe.sh start + scope PB12/PB13/PB14/PB15/PA8 per channel
- Artifact: .debug/w5500_swd_led_diag.out
- Conclusion: Full bidirectional SPI proven on scope: PB12(CS) pulsing low, PB13(SCK) clock bursts, PB15(MOSI) data bursts, PB14(MISO) return data bursts, PA8(RESET) low-pulse then high. Mailbox stable at 0xD5900100 (stage 0x90 PASS). W5500 hardware is alive and responding. Remaining blocker is managed-to-native interop dispatch, not hardware.
- Note: MISO active confirms W5500 is driving return data. No reflow required.
### 2026-04-10 22:27:35 UTC [PASS]
- Git rev: 311470a
- Command(s): ./toolchain/build-native.sh cubley-w5500; st-flash write build/nanoCLR.bin 0x08004000; ./toolchain/w5500-led-observe.sh start; ./tests/swd_read_bringup_status.sh
- Artifact: build/nanoCLR.elf; tests/W5500Bringup/bin/Release/W5500Bringup.bin
- Conclusion: Interop checksum alignment fixed (Cubley.Interop nativeMethodsChecksum=0x7119BD66). InternalCall dispatch now active; mailbox reaches 0xD50F0E02 (stage 15 FAIL detail 2 = OpenSocket failure), proving runtime progressed past prior interop bind failure.
- Note: Updated checksums in nf-native/cubley_interop.cpp and Cubley.Interop/Properties/AssemblyInfo.cs to 0x7119BD66.
### 2026-04-10 22:43:40 UTC [INFO]
- Git rev: 311470a
- Command(s): bash -n toolchain/build-native.sh; ./toolchain/interop-checksum.sh --check --pe Cubley.Interop/bin/Release/Cubley.Interop.pe
- Artifact: toolchain/build-native.sh; toolchain/interop-checksum.sh; toolchain/compile-w5500-test.sh; toolchain/compile-mailbox-smoke.sh
- Conclusion: Added firmware-build interop checksum preflight and managed-build checksum guards so checksum drift fails fast before build/deploy.
- Note: Preflight now runs at start of toolchain/build-native.sh; compile scripts validate Cubley.Interop.pe checksum compatibility.
### 2026-04-10 22:47:15 UTC [INFO]
- Git rev: b065a85
- Command(s): git rm -r --cached software/nanoFramework/.debug; update board/docs for temporary W5500 reset routing
- Artifact: software/nanoFramework/.gitignore; software/nanoFramework/nf-native/board_cubley.h; software/nanoFramework/docs/hardware/W5500_ETHERNET.md
- Conclusion: Captured board-specific baseline changes and documented temporary W5500 reset routing to PA8; repository now ignores runtime .debug artifacts.
- Note: Temporary bodge-wire reset mapping (PA8->RSTN) is intentional and must be updated alongside board docs when hardware routing changes.
### 2026-04-10 22:55:41 UTC [INFO]
- Git rev: 9283763
- Command(s): ./toolchain/compile-w5500-test.sh; ./toolchain/interop-checksum.sh --fix --pe tests/W5500Bringup/bin/Release/Cubley.Interop.pe; NF_INCREMENTAL_BUILD=1 ./toolchain/build-native.sh cubley-w5500; st-flash write build/nanoCLR.bin 0x08004000; ./toolchain/w5500-led-observe.sh start; st-flash reset; 60x tests/swd_read_bringup_status.sh
- Artifact: tests/W5500Bringup/bin/Release/Cubley.Interop.pe; build/nanoCLR.elf
- Conclusion: Added persistent native error telemetry path (BringupStatus.NativeGetLastNativeError) and checksum-sync hardening fix; rapid mailbox sampling now stabilizes at 0xD50E0E03, indicating Open failure with native code 3 (Busy).
- Note: Telemetry now publishes native op/code in fail loop stages 13/14 for SWD-stable diagnosis.
### 2026-04-10 22:59:31 UTC [INFO]
- Git rev: e2a3870
- Command(s): ./toolchain/compile-w5500-test.sh; ./toolchain/w5500-led-observe.sh start; st-flash reset; 60x tests/swd_read_bringup_status.sh
- Artifact: tests/W5500Bringup/Program.cs
- Conclusion: Removed early NativeOpen probe from W5500Bringup startup. Rapid timeline now progresses to stage 3 (configure begin) and stage 4 (connect begin), then latches at 0xD50E0E00.
- Note: Previous 0xD50E0E03 (Busy) no longer appears; stage14 detail=0 indicates native error code not set at failure point.
### 2026-04-11 00:25:15 UTC [INFO]
- Git rev: 2466266
- Command(s): ./toolchain/interop-checksum.sh --check; ./toolchain/compile-w5500-test.sh; ./toolchain/build-managed.sh build; ./toolchain/compile-mailbox-smoke.sh; nanoff --nanodevice --serialport /dev/ttyUSB0 --baud 115200 --devicedetails; ./tests/swd_read_bringup_status.sh
- Artifact: toolchain/interop-checksum.sh; toolchain/build-managed.sh build; toolchain/compile-w5500-test.sh; toolchain/compile-mailbox-smoke.sh; tests/W5500Bringup/bin/Release/W5500Bringup.bin
- Conclusion: Interop checksum/scope guard now enforced across firmware and managed build entrypoints; managed deployment and execution validated in this session.
- Note: Removed invalid AssemblyNativeVersion from app AssemblyInfo files to prevent CLR launch rejection.
### 2026-04-11 00:33:41 UTC [FAIL]
- Git rev: f0ef2ef
- Command(s): NF_INCREMENTAL_BUILD=1 ./toolchain/build-native.sh cubley-w5500; ./toolchain/compile-w5500-test.sh; st-flash --connect-under-reset write build/nanoBooter.bin 0x08000000; st-flash --connect-under-reset write build/nanoCLR.bin 0x08004000; st-flash --connect-under-reset write tests/W5500Bringup/bin/Release/W5500Bringup.bin 0x080C0000; st-flash reset; ./tests/swd_read_bringup_status.sh; nanoff --nanodevice --serialport /dev/ttyUSB0 --baud 115200 --devicedetails
- Artifact: build/nanoBooter.bin; build/nanoCLR.bin; tests/W5500Bringup/bin/Release/W5500Bringup.bin; build/nanoCLR.elf
- Conclusion: Managed runtime and deployment are healthy, but W5500 bringup latches at stage 15 FAIL detail 3 (Connect failure).
- Note: Native error latch sampled from g_w5500_last_native_error at 0x20005B00 = 0xE1130000 (op 0x13, code 0, detail 0), confirming Open completed successfully before Connect failure.
### 2026-04-11 00:55:34 UTC [FAIL]
- Git rev: 7c96254
- Command(s): st-flash read /tmp/mb.bin 0x20000c34 4; st-flash read /tmp/ne.bin 0x20005b00 4; mailbox decode
- Artifact: build/nanoCLR.bin; tests/W5500Bringup/bin/Release/W5500Bringup.bin
- Conclusion: Mailbox stabilized at 0xD50F0E03 (stage=15,result=FAIL,detail=3=FailCodeConnect); native error 0xE15101B8 indicates PHY snapshot op 0x51 with link-down code
- Note: 12x SWD sampling returned one unique pair: d50f0e03 e15101b8
### 2026-04-11 12:17:39 UTC [INFO]
- Git rev: 04350b6
- Command(s): NF_INCREMENTAL_BUILD=1 ./toolchain/build-native.sh cubley-w5500 && st-flash write build/nanoCLR.bin 0x08004000 && st-flash reset && ./tests/swd_read_w5500_diag.sh (x6)
- Artifact: build/nanoCLR.bin (271220 bytes); tests/W5500Bringup/bin/Release/W5500Bringup.nfmrk2.bin
- Breakpoints: g_w5500_bringup_status=0xd5040030, g_w5500_last_native_error=0xe1540400
- Conclusion: W5500 VERSIONR=0x04 confirmed; PHYCFGR software override blocked by PMODE HW straps (OPMDC=0x0, link DOWN)
- Note: Added NativeGetVersion (slot 11) and NativeGetVersionPhyStatus (slot 12) interop; interop checksum 55BA4996; PHYCFGR write 0xF8 issued in w5500_hw_init() but OPMD readback=0 confirms PMODE pins overriding SW config; PMODE0-2 on IC6 must be measured and corrected for auto-neg
### 2026-04-11 12:48:37 UTC [PASS]
- Git rev: 185ca63
- Command(s): st-flash write build/nanoCLR.bin 0x08004000; st-flash reset; st-flash write tests/W5500Bringup/bin/Release/latest.deploy.bin 0x080C0000; high-frequency SWD read loop of g_w5500_last_native_error (80 samples)
- Artifact: build/nanoCLR.bin; tests/W5500Bringup/bin/Release/latest.deploy.bin
- Breakpoints: g_w5500_last_native_error unique samples: 0xE14407F8, 0xE143A1F8, 0xE1420000
- Conclusion: Early SWD capture shows PHY software override is active after fix (pre-reset op 0x44 detail 0xF8, post-write op 0x43 detail 0xF8); prior PMODE-strap inference was a reset-timing artifact
- Note: Decoded: op 0x44 code=0x07 detail=0xF8 (pre-soft-reset OPMDC=111), op 0x43 code=0xA1 detail=0xF8 (OPMD=1 SW config active, OPMDC=111), then opcode 0x42 idle marker overwrites latch
### 2026-04-11 17:24:53 UTC [INFO]
- Git rev: aaf81d8
- Command(s): NF_INCREMENTAL_BUILD=0 ./toolchain/build-native.sh cubley-w5500; st-flash write build/nanoCLR.bin 0x08004000; st-flash write tests/W5500Bringup/bin/Release/latest.deploy.bin 0x080C0000; nanoff --devicedetails; ./tests/swd_read_w5500_diag.sh; ./tests/swd_read_bringup_status.sh
- Artifact: build/nanoCLR.bin; tests/W5500Bringup/bin/Release/latest.deploy.bin
- Breakpoints: mailbox=0xD5020000; native_error=0xE1400000
- Conclusion: HW SPI2 migration builds and deploys; bringup no longer at stage 0x0F/Busy, now stable at stage 0x02 RUNNING.
- Note: Assemblies visible: W5500Bringup + Cubley.Interop; checksum 55BA4996 verified.
### 2026-04-11 19:01:42 UTC [INFO]
- Git rev: aaf81d8
- Command(s): ./toolchain/build-native.sh cubley-w5500; st-flash write build/nanoCLR.bin 0x08004000; st-flash write tests/W5500Bringup/bin/Release/latest.deploy.bin 0x080C0000; for i in 1..120 ./tests/swd_read_w5500_diag.sh
- Artifact: unique pairs: 0xd50100a0/0xe14100f0, 0xd50f0e02/0xe1540200
- Breakpoints: SWD mailbox/native-error sampling
- Conclusion: CS readback stayed high across SPI select/unselect (detail 0xF0), VERSIONR still 0x00 in init path
- Note: 0x41 detail high nibble encodes CS bits [preSel,postSel,preUnsel,postUnsel]=1111
### 2026-04-11 19:23:55 UTC [INFO]
- Git rev: aaf81d8
- Command(s): ./toolchain/build-native.sh cubley-w5500; st-flash write build/nanoCLR.bin 0x08004000; st-flash write tests/W5500Bringup/bin/Release/latest.deploy.bin 0x080C0000; post-reset 220x ./tests/swd_read_w5500_diag.sh
- Artifact: unique pairs include 0xd50100a0/0xe14100c7 and 0xd5020000/0xe1490757
- Breakpoints: SWD mailbox/native-error sampling
- Conclusion: Manual CS test: PB12 ODR toggles high-low-high but readback stays high; W5500 VERSIONR remains 0x00
- Note: Decode: op49 code=0x07 (IDR high/high/high), detail high nibble=0x5 (ODR high/low/high). op41 detail high nibble=0xC and low nibble=0x7 confirms CS observe path mismatch
### 2026-04-11 20:56:07 UTC [INFO]
- Git rev: aaf81d8
- Command(s): Scope probe on MCU PB12 and W5500 SCSn during init
- Artifact: Observed normal-high line with short low bursts (~250 ms windows) at both probe points
- Breakpoints: Physical oscilloscope observation
- Conclusion: Scope verification overrides CS-readback inference: PB12 and W5500 SCSn do pulse low after reset; CS control path is functioning
- Note: Treat op41/op49 CS-readback mismatch as software sampling artifact; continue debugging SPI data path (SCK/MOSI/MISO)
### 2026-04-11 20:58:23 UTC [INFO]
- Git rev: aaf81d8
- Command(s): ./toolchain/build-native.sh cubley-w5500; st-flash write build/nanoCLR.bin 0x08004000; st-flash write tests/W5500Bringup/bin/Release/latest.deploy.bin 0x080C0000; post-reset 180x ./tests/swd_read_w5500_diag.sh
- Artifact: Observed pairs include 0xd5900e20/0xe14a0000 and 0xd5a00000/0xe14a0000
- Breakpoints: SWD mailbox/native-error sampling
- Conclusion: Raw SPI frame diagnostic shows rx0/rx1 are 0x00 during VERSIONR failure (op 0x4A), consistent with MISO low/undriven data path
- Note: op 0x4A encodes code=rx0 detail=rx1 from VERSIONR 4-byte frame; both remained zero
### 2026-04-11 21:52:38 UTC [INFO]
- Git rev: aaf81d8
- Command(s): st-flash write build/nanoCLR.bin 0x08004000 && st-flash reset; ./tests/swd_read_w5500_diag.sh; repeated scope probes on PB13/PB15/PB14
- Artifact: build/nanoCLR.bin
- Conclusion: Post-flash diagnostics report NativeError op=0x54 code=0x04 detail=0x78 (VERSIONR=0x04, PHYCFGR=0x78) while visual MISO activity remained inconclusive on scope.
- Note: Scope (FNRSI 1013D): SCK and MOSI clearly active; MISO showed no visible transitions.
### 2026-04-12 08:57:27 UTC [FAIL]
- Git rev: aaf81d8
- Command(s): Patched w5500_interop PHY RST polarity + added NativeSetPhyMode mode sweep; ./toolchain/interop-checksum.sh --fix --pe tests/W5500Bringup/bin/Release/Cubley.Interop.pe; ./toolchain/compile-w5500-test.sh; NF_INCREMENTAL_BUILD=1 ./toolchain/build-native.sh cubley-w5500; st-flash write build/nanoCLR.bin 0x08004000; nanoff --deploy --image tests/W5500Bringup/bin/Release/W5500Bringup.bin --address 0x080C0000 --reset; repeated ./tests/swd_read_w5500_diag.sh + ./tests/swd_read_bringup_status.sh sampling
- Artifact: build/nanoCLR.bin; tests/W5500Bringup/bin/Release/W5500Bringup.bin; tests/W5500Bringup/bin/Release/Cubley.Interop.pe
- Conclusion: W5500 responds (VERSIONR=0x04) and accepts forced PHY mode changes, but link never comes up (LNK=0 in all tested modes) and no TX activity observed; evidence now points to TX hardware path fault around T1/CT_1 side rather than firmware.
- Note: Observed PHYCFGR sequence during mode sweep included 0xF8, 0xC0, 0xCC, 0xD2, 0xDE, 0xF0 with mailbox stage 10 detail 0xE0 throughout. Hardware checks: R23=33R and R24=33R; continuity W5500 TXP->R23->T1 TD+ and W5500 TXN->R24->T1 TD- confirmed; CT_2->3V3 open as expected; CT_1->3V3 measures ~25R (anomalous), suggesting leakage/bridge on TX-side network. Next step: clean/rework T1 pin solder around pins 1-3 and re-measure CT_1 to 3V3, then isolate by lifting R23/R24 if needed.
### 2026-05-01 22:41:47 UTC [FAIL]
- Git rev: f33ba0f
- Command(s): 10-cycle: st-flash reset + poll swd_read_w5500_diag.sh; GDB SRAM read: g_w5500_cs_gpio_code=0x07 (expected 0x05); op 0x49 cs_lo=1 after palClearLine
- Artifact: build/nanoCLR.elf
- Breakpoints: op 0x49 detail: cs_gpio_code=0x07 (0b111); op 0x4A: spi_rx0=0x00 spi_rx1=0x00; op 0x11: NativeOpen initStatus=0x20; mailbox 0xd50f0e02 Stage=15 FAIL
- Conclusion: Gate 2 HW_FAIL 10/10: W5500 VERSIONR=0x00 every cycle; PB12 (CS) stuck HIGH — firmware ODR write to 0 confirmed, IDR remains HIGH, pin cannot be asserted
- Note: Gates 1 (rails/RST) confirmed pass. PB12 physically stuck HIGH — suspect solder bridge to 3.3V or PB13 (SCK). All SPI transactions ignored by W5500 (CS never asserted). Action: inspect PB12 under magnification, check continuity PB12-to-3V3 and PB12-to-PB13.
### 2026-05-01 23:21:46 UTC [INFO]
- Git rev: f33ba0f
- Command(s): Scope verification at W5500 pin 32 (SCSN) during reset sequence
- Artifact: docs/MCU_W5500_HARDWARE_TEST_LOG.md
- Breakpoints: Prior failure words remain: op 0x4A (rx0=0x00 rx1=0x00), op 0x11 (initStatus=0x20)
- Conclusion: CS assertion reaches W5500: SCSN (pin 32) shows low pulses on reset; previous 'PB12 stuck HIGH' hypothesis is invalidated by direct pin-level scope evidence
- Note: Electrical path for CS appears continuous MCU->W5500. Next isolate SPI data-path/timing (SCK/MOSI/MISO capture) and W5500 readiness timing.
### 2026-05-01 23:41:53 UTC [INFO]
- Git rev: f33ba0f
- Command(s): Run 1: SCSN pin 32 falling-edge reset capture; Run 2: SCK (PB13 net) reset capture
- Artifact: docs/MCU_W5500_HARDWARE_TEST_LOG.md
- Breakpoints: Failure signature still pending data-path confirmation: op 0x4A (rx0=0x00 rx1=0x00), op 0x11 (initStatus=0x20)
- Conclusion: Single-probe scope runbook checkpoint: Run 1 (SCSN) and Run 2 (SCK) both match expected startup behavior
- Note: Proceeding to Run 3 (MOSI) then Run 4 (MISO) with same trigger method.
### 2026-05-02 00:44:04 UTC [PASS]
- Git rev: f33ba0f
- Command(s): Scope: MISO activity observed at W5500 pin 34 after reflow; SWD: ./tests/swd_read_w5500_diag.sh
- Artifact: docs/MCU_W5500_HARDWARE_TEST_LOG.md
- Breakpoints: Mailbox 0xD50A00E0 (Stage10 RUNNING), Native error 0xE15404DE (op0x54 version=0x04 phy=0xDE)
- Conclusion: Post-reflow bring-up recovered: VERSIONR now reads 0x04 and runtime sits in Stage 10 PHY monitor; one/two LED then quiet is expected monitor-mode behavior, not a main loop crash
- Note: Program.cs currently has EnablePhyMonitorMode=true and PhyMonitorIterations=240 (~120s), so LED stage markers pause after stage 2 while monitor loop runs.
### 2026-05-02 00:55:19 UTC [INFO]
- Git rev: f33ba0f
- Command(s): Confirmed cable and switch port good; sampled SWD diag repeatedly
- Artifact: docs/MCU_W5500_HARDWARE_TEST_LOG.md
- Breakpoints: Mailbox 0xD50F0E03 (FAIL code 3), native error 0xE15404F0 (VERSIONR=0x04, PHYCFGR=0xF0 link-down)
- Conclusion: Known-good cable/switch verified; device remains fail code 3 (connect) with persistent PHY link-down (0xE15404F0)
- Note: External network path validated; focus shifts to PHY analog front-end (clock, TX pair activity, magnetics/CT network).
### 2026-05-09 22:59:45 UTC [FAIL]
- Git rev: 284b340
- Command(s): ./toolchain/build-native.sh cubley-uart; st-flash --connect-under-reset write build/nanoBooter.bin 0x08000000; st-flash --connect-under-reset write build/nanoCLR.bin 0x08004000; ./toolchain/compile-w5500-test.sh; nanoff --serialport /dev/ttyUSB0 --baud 115200 --deploy --image tests/W5500Bringup/bin/Release/W5500Bringup.bin --address 0x080C0000 --reset; ./tests/swd_read_w5500_diag.sh
- Artifact: build/nanoCLR.bin (274496 B); tests/W5500Bringup/bin/Release/W5500Bringup.bin (49720 B); Cubley.Interop checksum 0xD2CF401C
- Breakpoints: Mailbox 0xD50F0E02 (Stage15 FAIL detail 2 = OpenSocket); native_error 0xE1112000 (op 0x11 NativeOpen, code 0x20 = VERSIONR=0x00); first_link_up=0; connect_params=0
- Conclusion: cubley-uart end-to-end pipeline (build/flash/wire-protocol/deploy) PASS; W5500 SPI regressed: VERSIONR=0x00, same dead-SPI signature as pre-reflow 2026-05-01. Test rig: 20cm CAT6 to known-good switch port.
### 2026-05-12 23:07:22 UTC [PASS]
- Git rev: 284b340
- Command(s): ./toolchain/build-native.sh cubley-stable; st-flash booter+clr; st-flash DiSEqC_Control_bundle*.deploy.bin @0x080C0000; gdb/openocd RAM reads; nanoff --devicedetails
- Artifact: build/nanoCLR.elf, build/nanoCLR.bin, DiSEqC_Control/bin/Release/DiSEqC_Control_bundle-20260512T230012Z.deploy.bin
- Conclusion: Instrumented nanoCLR now emits startup clues: bringup_status=0xD5D10001 and last_native_error=0xE2D10001 (CLR startup thread entered), while DiSEqC_Control remains deployed.
- Note: Diagnostic signature 0xE2 reserved for CLR startup path; stale openocd on port 6666 required cleanup via pkill -f openocd.
### 2026-05-12 23:16:59 UTC [PASS]
- Git rev: 284b340
- Command(s): ./toolchain/build-native.sh cubley-stable; st-flash booter+clr+DiSEqC bundle; SWD read g_w5500_bringup_status/g_w5500_last_native_error; nanoff --devicedetails
- Artifact: build/nanoCLR.bin, build/nanoCLR.elf, DiSEqC_Control/bin/Release/DiSEqC_Control_bundle-20260512T230012Z.deploy.bin
- Conclusion: Deep CLR startup clues now active: status/error progressed to 0xD5E10001 / 0xE2E10001 (Initialize succeeded, did not reach Load success marker E2), narrowing failure window to startup-load path.
- Note: build-native.sh now auto-patches /nf-interpreter/src/CLR/Startup/CLRStartup.cpp with E0..E4 milestone writes.
### 2026-05-12 23:29:54 UTC [PASS]
- Git rev: 284b340
- Command(s): NF_W5500_EARLY_INIT=0 ./toolchain/build-native.sh cubley-uart; st-flash booter+clr+DiSEqC bundle; SWD read bringup_status/last_native_error; nanoff --devicedetails
- Artifact: build/nanoCLR.bin (md5 736c5da96c4dfd34f3dd902a20b993b4), build/nanoCLR.elf, DiSEqC_Control/bin/Release/DiSEqC_Control_bundle-20260512T230012Z.deploy.bin
- Conclusion: Granular ClrStartup load tracing active on cubley-uart without W5500 early-init clobber: status/error = 0xD5EA0001 / 0xE2EA0001, narrowing failure to ResolveAll entry boundary (before ResolveAll returns).
- Note: Added NF_W5500_EARLY_INIT env override + docker passthrough to keep cubley-uart while handling no-W5500 boards.
### 2026-05-12 23:35:00 UTC [PASS]
- Git rev: 284b340
- Command(s): NF_W5500_EARLY_INIT=0 ./toolchain/build-native.sh cubley-uart; st-flash booter+clr+DiSEqC bundle; SWD read bringup_status/last_native_error; nanoff --devicedetails
- Artifact: build/nanoCLR.bin (md5 ad919a798c214880e978be7d4f5b554), build/nanoCLR.elf, DiSEqC_Control/bin/Release/DiSEqC_Control_bundle-20260512T230012Z.deploy.bin
- Conclusion: ResolveAll failure classified: status/error=0xD5EF0E00/0xE2EF0E00 indicates CLR_E_TYPE_UNAVAILABLE path during Load() after entering ResolveAll.
- Note: EE/EF markers added in CLRStartup.cpp patch flow; EF marks CLR_E_TYPE_UNAVAILABLE subtype in Load() cleanup.
### 2026-05-12 23:51:42 UTC [PASS]
- Git rev: 284b340
- Command(s): NF_W5500_EARLY_INIT=0 ./toolchain/build-native.sh cubley-uart; st-flash booter+clr; pack-and-validate explicit PE list incl nanoFramework.Runtime.Events.pe; st-flash latest.deploy.bin @0x080C0000; nanoff --devicedetails; openocd+gdb read g_w5500_*
- Artifact: DiSEqC_Control/bin/Release/DiSEqC_Control_runtimefix-20260512T235044Z.deploy.bin
- Conclusion: Resolved CLR_E_TYPE_UNAVAILABLE root cause: System.Device.Gpio dependency nanoFramework.Runtime.Events was not present in deployed managed assembly set; explicit runtime-fix bundle now loads nanoFramework.Runtime.Events and startup no longer latches resolve-pointer failure.
- Note: Post-fix probes show g_w5500_bringup_status=0xD5E24601 and g_w5500_last_native_error=0xE2E30001 (progress markers), replacing prior unresolved pointer pair System.Device.Gpio -> nanoFramework.Runtime.Events.
### 2026-05-13 10:02:36 UTC [PASS]
- Git rev: ab7609f (Add hardware presence probes for W5500, LNBH26, and FRAM)
- Command(s): Clean compile managed code (StartupProbe.cs + I2C corrections); st-flash @0x080C0000; SWD read g_w5500_bringup_status; scope capture I2C3 FRAM transaction
- Artifact: DiSEqC_Control/bin/Release/DiSEqC_Control.bin (md5 f6bf6266adda60847...), build/nanoCLR.elf
- Evidence file: docs/tests/2026-05-13_I2C3_FRAM_probe.png (scope screenshot with I2C-triggered decode)
- Conclusion: Startup hardware presence probes working and validated:
- W5500: not soldered on this board (bit0=0)
- LNBH26: I2C1 0x08 responds with ACK (bit1=1)
- FRAM: I2C3 0x50 responds with full write-read cycle (bit2=1)
- Probe bitmap: 0x06 (LNBH26 + FRAM present)
- I2C3 transaction captured and decoded on scope at 10 us/div:
- Start condition, 0xA0 (addr 0x50 write) + ACK, register 0x00 + ACK
- Repeated start, 0xA1 (addr 0x50 read) + ACK, data byte, NACK, Stop
- Clock rate ~350-400 kHz, clean framing, no bus faults
- Note: I2C1 pin configuration corrected in target_system_device_i2c_config.cpp (PB6=SCL, PB7=SDA per board layout); breadcrumb markers (0xD5E1xxxx) added to startup for future bringup debugging, to be removed in cleanup pass per TODO.md
### 2026-05-13 18:19:27 UTC [PASS]
- Git rev: 6f1dd22
- Command(s): ./toolchain/interop-checksum.sh --fix --pe Cubley.Interop/bin/Release/Cubley.Interop.pe; ./toolchain/build-native.sh cubley-uart; st-flash --reset write build/nanoBooter.bin 0x08000000; st-flash --reset write build/nanoCLR.bin 0x08004000; st-flash reset; ./toolchain/build-managed.sh build --deploy --serialport /dev/ttyUSB0 --address 0x080C0000 --reset; nanoff --nanodevice --serialport /dev/ttyUSB0 --baud 115200 --devicedetails
- Artifact: build/nanoBooter.bin; build/nanoCLR.bin; DiSEqC_Control/bin/Release/DiSEqC_Control.bin
- Conclusion: cubley-uart firmware build/flash and DiSEqC_Control managed build/deploy verified end-to-end; device now reports DiSEqC_Control 1.0.0.0 as the deployed managed app.
- Note: Interop checksum preflight initially failed; checksum was repaired to 0x99CD5157 in Cubley.Interop metadata/native tables before rerunning the successful build.
### 2026-05-26 22:31:45 UTC [PASS]
- Git rev: d808c7a
- Command(s): ./toolchain/build-native.sh cubley-stable; ./toolchain/build-managed.sh compile; st-flash write build/nanoBooter.bin 0x08000000; st-flash write build/nanoCLR.bin 0x08004000; st-flash write DiSEqC_Control/bin/Release/latest.deploy.bin 0x080C0000; ./tests/swd_read_bringup_status.sh
- Artifact: build/nanoBooter.bin; build/nanoCLR.bin; DiSEqC_Control/bin/Release/latest.deploy.bin
- Conclusion: Rebuilt and reflashed mailbox refactor; boot probe latch now stable at 0xD5E20006 with bitmap 0x06 (W5500 absent, LNBH26 present, FRAM present).
- Note: Initial run failed to resolve System.Device.I2c; compile-managed bundle was updated to include System.Device.I2c.pe, after which StartupProbe completed and latch populated.
### 2026-05-26 23:00:38 UTC [INFO]
- Git rev: 7ce4f54
- Command(s): ./toolchain/build-managed.sh compile; nanoff --jtag --platform stm32 --target M0DMF_CUBLEY_F407 --deploy --image DiSEqC_Control/bin/Release/latest.deploy.bin --address 0x080C0000 --reset; ./tests/swd_read_bringup_status.sh
- Artifact: DiSEqC_Control/bin/Release/DiSEqC_Control_bundle_20260526-235634.bin
- Conclusion: Managed app is running and LNB detected in boot bitmap, but SMA output measured about 0.6V.
- Note: User will continue LNB output debug tomorrow.
### 2026-06-07 21:17:18 UTC [INFO] [NON-BASELINE]
- Git rev: f3cc117
- Baseline: NO — deviates from Phase A baseline (see docs/debug/PHASE_A_BASELINE.md)
- Command(s): st-info --probe; st-flash reset; st-flash write build/nanoBooter.bin 0x08000000; st-flash write build/nanoCLR.bin 0x08004000; nanoff --listports; ./toolchain/uart-preflight.sh --log-dir .debug/issue26_campaign_20260607T211620Z/cycle_01/uart-preflight --require-raw-bytes
- Artifact: build/nanoBooter.bin; build/nanoCLR.bin; .debug/issue26_campaign_20260607T211620Z
- Conclusion: Issue 26 campaign prep reached cycle 01 flash and reset, but UART transport is unavailable in this container so transport-health validation cannot proceed
### 2026-06-07 21:26:54 UTC [FAIL] [NON-BASELINE]
- Git rev: f3cc117
- Baseline: NO — deviates from Phase A baseline (see docs/debug/PHASE_A_BASELINE.md)
- Command(s): ./toolchain/build-native.sh build --profile core-only; st-flash write build/nanoBooter.bin 0x08000000; st-flash write build/nanoCLR.bin 0x08004000; st-flash reset; nanoff --listports; nanoff --nanodevice --serialport /dev/ttyUSB0 --baud 115200 --listdevices; nanoff --nanodevice --serialport /dev/ttyUSB0 --baud 115200 --devicedetails
- Artifact: build/nanoBooter.bin; build/nanoCLR.bin; /tmp/issue26_core_only_*.log
- Conclusion: Core-only minimal native firmware still returns nanoff No devices found/E2001 on /dev/ttyUSB0, so transport failure is not caused by extra native probe/LED logic
### 2026-06-07 21:36:28 UTC [INFO] [NON-BASELINE]
- Git rev: f3cc117
- Baseline: NO — deviates from Phase A baseline (see docs/debug/PHASE_A_BASELINE.md)
- Command(s): ./toolchain/build-native.sh build --profile core-only; ./toolchain/build-native.sh build --profile cubley-stable; manual st-flash write/reset sequence; nanoff --listports/listdevices/devicedetails; python serial open /dev/ttyUSB0; ./tests/swd_read_bringup_status.sh
- Artifact: build/nanoBooter.bin; build/nanoCLR.bin; /tmp/issue26_core_only_*.log; /tmp/issue26_stable_*.log; /tmp/issue26_uart_hexdump.log; /tmp/issue26_swd_status.log
- Conclusion: Both core-only and cubley-stable produce identical nanoff failure modes, while ST-Link remains stable and ttyUSB0 intermittently reports ENXIO/no COM availability, indicating host/container UART device-path instability rather than profile-specific native firmware behavior
### 2026-06-07 22:09:55 UTC [PASS]
- Git rev: f3cc117
- Command(s): st-flash write build/nanoBooter.bin 0x08000000; st-flash write build/nanoCLR.bin 0x08004000; st-flash reset; sleep 2; nanoff --nanodevice --serialport /dev/ttyUSB0 --baud 115200 --listdevices; nanoff --nanodevice --serialport /dev/ttyUSB0 --baud 115200 --devicedetails (x20 cycles)
- Artifact: build/nanoBooter.bin; build/nanoCLR.bin; .debug/issue26_campaign_20260607T215707Z
- Conclusion: 20/20 flash-reset cycles PASS (0 failures) on cubley-stable profile; explicit st-flash reset before nanoff probe is required for deterministic transport health; per-cycle logs in .debug/issue26_campaign_20260607T215707Z
### 2026-06-08 13:54:44 UTC [PASS]
- Git rev: b176eaa
- Baseline: YES — matches cubley-base Phase A baseline (see docs/debug/PHASE_A_BASELINE.md)
- Command(s): ./toolchain/run-deterministic-cycles.sh --cycles 20 --serial /dev/ttyUSB0 --baud 115200 --settle-ms 2500 --listdevices-retries 1 --devicedetails-retries 2 --retry-delay-ms 700
- Artifact: .debug/issue26_campaign_20260608T134123Z
- Conclusion: Deterministic 20-cycle campaign passed (0 failures); UART3 nanoff listdevices/devicedetails remained stable across all cycles.
### 2026-06-08 14:53:29 UTC [PASS]
- Git rev: 857cd5f
- Command(s): ./toolchain/run-deterministic-cycles.sh --cycles 20 --serial /dev/ttyUSB0 --baud 115200 --settle-ms 2000
- Artifact: .debug/issue26_campaign_20260608T142844Z
- Conclusion: Deterministic 20-cycle flash-reset rerun completed with fails=0/20.
### 2026-06-08 15:25:40 UTC [PASS] [NON-BASELINE]
- Git rev: 07b6213
- Baseline: NO — deviates from cubley-base Phase A baseline (see docs/debug/PHASE_A_BASELINE.md)
- Command(s): ./toolchain/build-managed.sh build --project CubleySmokeTier0/CubleySmokeTier0.nfproj --deploy --swd --address 0x080C0000 --reset && /workspaces/diseqc_cntrl/software/nanoFramework/tests/tier0_mailbox_reliability_smoke.sh --cycles 20 --read-count 4 --stop-on-fail
- Artifact: build/CubleySmokeTier0/CubleySmokeTier0.bin
- Conclusion: CubleySmokeTier0 completed Tier-0/Tier-1 interop harness run; Tier-0 reset-cycle smoke passed 20/20 with stable boot-probe latch 0xD5F00111.
### 2026-06-08 15:34:36 UTC [PASS] [NON-BASELINE]
- Git rev: 6cf4d23
- Baseline: NO — deviates from cubley-base Phase A baseline (see docs/debug/PHASE_A_BASELINE.md)
- Command(s): ./toolchain/build-managed.sh build --project CubleySmokeTier0/CubleySmokeTier0.nfproj --deploy --swd --address 0x080C0000 --reset && /workspaces/diseqc_cntrl/software/nanoFramework/tests/tier0_mailbox_reliability_smoke.sh --cycles 10 --read-count 4 --stop-on-fail
- Artifact: build/CubleySmokeTier0/CubleySmokeTier0.bin
- Conclusion: Tier-1 hardening run PASS: repeated mixed-order StatusLed/UsbCdcConsole interop executed across 10 reset cycles with stable boot_probe latch (0xD5F00111) and no unresolved Tier-1 failures.
### 2026-06-08 16:27:08 UTC [PASS] [NON-BASELINE]
- Git rev: c7ba87d
- Baseline: NO — deviates from cubley-base Phase A baseline (see docs/debug/PHASE_A_BASELINE.md)
- Command(s): ./toolchain/build-managed.sh build --project CubleySmokeTier0/CubleySmokeTier0.nfproj --deploy --swd --address 0x080C0000 --reset && ./tests/tier0_mailbox_reliability_smoke.sh --cycles 20 --read-count 4 --require-final-pass --stop-on-fail
- Artifact: build/CubleySmokeTier0/CubleySmokeTier0.bin; strict smoke summary fails=0/20
- Conclusion: Phase C full strict smoke passed with stable Tier-0 latch and Tier-1 final-pass semantics across 20 reset cycles.
- Note: Non-baseline by policy: Phase C CubleySmokeTier0 + strict Tier-0/Tier-1 gate validation.
### 2026-06-08 16:28:35 UTC [FAIL] [NON-BASELINE]
- Git rev: c7ba87d
- Baseline: NO — deviates from cubley-base Phase A baseline (see docs/debug/PHASE_A_BASELINE.md)
- Command(s): NF_ALLOW_REFERENCE_PROFILE=1 ./toolchain/build-native.sh build --profile cubley-stable --flash --reset && ./toolchain/build-managed.sh build --project CubleySmokeTier0/CubleySmokeTier0.nfproj --deploy --swd --address 0x080C0000 --reset && ./tests/tier0_mailbox_reliability_smoke.sh --cycles 20 --read-count 4 --require-final-pass --stop-on-fail
- Artifact: build/nanoCLR.elf; build/CubleySmokeTier0/CubleySmokeTier0.pe
- Conclusion: Phase C strict gate failed at cycle 01: final-pass current_status was not observed before timeout.
- Note: This FAIL supersedes the earlier PASS append made before the failed smoke output was noticed.
### 2026-06-08 16:31:42 UTC [PASS] [NON-BASELINE]
- Git rev: c7ba87d
- Baseline: NO — deviates from cubley-base Phase A baseline (see docs/debug/PHASE_A_BASELINE.md)
- Command(s): NF_ALLOW_REFERENCE_PROFILE=1 ./toolchain/build-native.sh build --profile cubley-stable --flash --reset && ./toolchain/build-managed.sh build --project CubleySmokeTier0/CubleySmokeTier0.nfproj --deploy --swd --address 0x080C0000 --reset && ./tests/tier0_mailbox_reliability_smoke.sh --cycles 20 --read-count 4 --require-final-pass --stop-on-fail
- Artifact: build/nanoCLR.elf; build/CubleySmokeTier0/CubleySmokeTier0.bin
- Conclusion: Phase C strict gate PASS: 20/20 reset cycles with stable boot_probe and final-pass current_status semantics.
- Note: Root cause fixed by disabling CLR startup pointer-breadcrumb patching for cubley-stable so current_status remains contract-clean for strict mailbox decoding.
### 2026-06-08 17:12:59 UTC [FAIL] [NON-BASELINE]
- Git rev: eec3d9f
- Baseline: NO — deviates from cubley-base Phase A baseline (see docs/debug/PHASE_A_BASELINE.md)
- Command(s): ./toolchain/build-managed.sh build --project CubleySmokeTier2_W5500/CubleySmokeTier2_W5500.nfproj --deploy --swd --address 0x080C0000 --reset && ./tests/swd_read_bringup_status.sh && ./tests/swd_read_w5500_diag.sh build/nanoCLR.elf
- Artifact: build/CubleySmokeTier2_W5500/CubleySmokeTier2_W5500.bin
- Conclusion: Tier-2 W5500 smoke harness executed and failed at stage 0xB1 (VERSIONR check), indicating managed path runs but W5500 version read was not 0x04 in this run.
- Note: nanoff --devicedetails returned E2001 immediately after SWD deploy; SWD mailbox decode remained available and reported 0xD5B10E00.
### 2026-06-08 17:54:58 UTC [INFO]
- Git rev: eec3d9f
- Baseline: YES — matches cubley-base Phase A baseline (see docs/debug/PHASE_A_BASELINE.md)
- Command(s): NF_ALLOW_REFERENCE_PROFILE=1 ./toolchain/build-native.sh build --profile phase-d-smoke; st-flash write build/nanoBooter.bin 0x08000000; st-flash write build/nanoCLR.bin 0x08004000; st-flash reset; ./toolchain/build-managed.sh build --project CubleySmokeTier2_W5500/CubleySmokeTier2_W5500.nfproj --configuration Release; st-flash write build/CubleySmokeTier2_W5500/latest.deploy.bin 0x080C0000; st-flash reset; ./tests/swd_read_bringup_status.sh; ./tests/swd_read_w5500_diag.sh
- Artifact: software/nanoFramework/toolchain/build-native.sh; docs/debug/MANAGED_DEPLOYMENT.md; software/nanoFramework/tests/README.md
- Conclusion: phase-d-smoke profile builds, flashes, and preserves the known W5500 failure signature without mutating cubley-base semantics
- Note: SWD after deploy reported current_status=0xD5B10EE2, last_native_error=0xE2D10001, g_w5500_diag_trace=0x00000000.
### 2026-06-08 18:04:17 UTC [INFO]
- Git rev: eec3d9f
- Baseline: YES — matches cubley-base Phase A baseline (see docs/debug/PHASE_A_BASELINE.md)
- Command(s): NF_ALLOW_REFERENCE_PROFILE=1 ./toolchain/build-native.sh build --profile phase-d-smoke && ./toolchain/build-managed.sh build --project ./CubleySmokeTier2_W5500/CubleySmokeTier2_W5500.nfproj
- Artifact: build/nf-interpreter/M0DMF_CUBLEY_F407 + build/CubleySmokeTier2_W5500/latest.deploy.bin
- Conclusion: Phase-d-smoke now builds against SmokeW5500_Interop (W5500-only interop import) and CubleySmokeTier2_W5500 builds without Cubley.Interop project reference.
- Note: Native CMake reports interop assemblies included: SmokeW5500_Interop.
### 2026-06-08 18:07:48 UTC [INFO]
- Git rev: eec3d9f
- Baseline: YES — matches cubley-base Phase A baseline (see docs/debug/PHASE_A_BASELINE.md)
- Command(s): NF_ALLOW_REFERENCE_PROFILE=1 ./toolchain/build-native.sh build --profile phase-d-smoke (with I2C=OFF,GPT/PWM=FALSE trial)
- Artifact: build/nf-interpreter/M0DMF_CUBLEY_F407 compile logs
- Conclusion: Phase-d-smoke minimization trial still fails: lnbh26_native.cpp requires I2CDriver/i2cMasterTransmitTimeout and diseqc_native.cpp requires PWMDriver/GPTDriver due to unconditional target source compilation.
- Note: Restored phase-d-smoke I2C/GPT/PWM settings to known buildable values.
### 2026-06-08 18:07:53 UTC [INFO]
- Git rev: eec3d9f
- Baseline: YES — matches cubley-base Phase A baseline (see docs/debug/PHASE_A_BASELINE.md)
- Command(s): NF_ALLOW_REFERENCE_PROFILE=1 ./toolchain/build-native.sh build --profile phase-d-smoke && ./toolchain/build-managed.sh build --project ./CubleySmokeTier2_W5500/CubleySmokeTier2_W5500.nfproj && st-flash write build/nanoBooter.bin 0x08000000 && st-flash write build/nanoCLR.bin 0x08004000 && st-flash write build/CubleySmokeTier2_W5500/latest.deploy.bin 0x080C0000 && ./tests/swd_read_w5500_diag.sh
- Artifact: build/nanoBooter.bin + build/nanoCLR.bin + build/CubleySmokeTier2_W5500/latest.deploy.bin
- Conclusion: Board refresh completed with SmokeW5500_Interop firmware/payload; SWD diag shows bringup 0xD5D10001, native error 0xE2D10001, W5500 trace 0x00000000.
- Note: Flash/deploy writes verified by st-flash.
### 2026-06-08 18:19:30 UTC [INFO]
- Git rev: eec3d9f
- Baseline: YES — matches cubley-base Phase A baseline (see docs/debug/PHASE_A_BASELINE.md)
- Command(s): NF_ALLOW_REFERENCE_PROFILE=1 ./toolchain/build-native.sh build --profile phase-d-smoke && ./toolchain/build-managed.sh build --project ./CubleySmokeTier2_W5500/CubleySmokeTier2_W5500.nfproj --deploy --serialport /dev/ttyUSB0 --baud 115200 --address 0x080C0000 --reset && nanoff --nanodevice --serialport /dev/ttyUSB0 --baud 115200 --devicedetails
- Artifact: build/nanoBooter.bin + build/nanoCLR.bin + build/CubleySmokeTier2_W5500/latest.deploy.bin
- Conclusion: Phase-d firmware built and Tier2 W5500 app deployed; nanoff devicedetails confirms SmokeW5500.Interop is loaded in native assemblies.
- Note: Native assemblies list includes SmokeW5500.Interop v1.0.0.0 checksum 0x00000000.
### 2026-06-08 19:32:40 UTC [PASS] [NON-BASELINE]
- Git rev: eec3d9f
- Baseline: NO — deviates from cubley-base Phase A baseline (see docs/debug/PHASE_A_BASELINE.md)
- Command(s): NF_ALLOW_REFERENCE_PROFILE=1 ./toolchain/build-native.sh build --profile phase-d-smoke; st-flash write build/nanoCLR.bin 0x08004000; ./toolchain/build-managed.sh build --project CubleySmokeTier2_W5500 --configuration Release; st-flash write build/CubleySmokeTier2_W5500/latest.deploy.bin 0x080C0000; nanoff --nanodevice --serialport /dev/ttyUSB0 --baud 115200 --devicedetails; ./tests/swd_read_w5500_diag.sh
- Artifact: build/nanoCLR.bin + build/CubleySmokeTier2_W5500/latest.deploy.bin
- Conclusion: Quiet diagnostics run passed smoke status (D5020100) with W5500 native trace active (E1130000).
- Note: Deep CLR diagnostics disabled (default phase-d-smoke with NF_CLRSTARTUP_PATCHES unset).
### 2026-06-08 19:32:46 UTC [INFO] [NON-BASELINE]
- Git rev: eec3d9f
- Baseline: NO — deviates from cubley-base Phase A baseline (see docs/debug/PHASE_A_BASELINE.md)
- Command(s): NF_ALLOW_REFERENCE_PROFILE=1 NF_CLRSTARTUP_PATCHES=TRUE NF_CLR_DEEP_DIAG=1 ./toolchain/build-native.sh build --profile phase-d-smoke; st-flash write build/nanoCLR.bin 0x08004000; ./toolchain/build-managed.sh build --project CubleySmokeTier2_W5500 --configuration Release; st-flash write build/CubleySmokeTier2_W5500/latest.deploy.bin 0x080C0000; nanoff --nanodevice --serialport /dev/ttyUSB0 --baud 115200 --devicedetails; ./tests/swd_read_w5500_diag.sh
- Artifact: build/nanoCLR.bin + build/CubleySmokeTier2_W5500/latest.deploy.bin
- Conclusion: Deep diagnostics run exposed CLR internal stage F2/thread-wait (boot_probe C2000000) while W5500 native trace remained active (E1130000).
- Note: Expected diagnostic-noise increase versus quiet run; managed/native assembly load still successful.
### 2026-06-08 19:40:14 UTC [FAIL] [NON-BASELINE]
- Git rev: eec3d9f
- Baseline: NO — deviates from cubley-base Phase A baseline (see docs/debug/PHASE_A_BASELINE.md)
- Command(s): build-managed Tier2 + st-flash deploy latest.deploy.bin + SWD diag 40x sample loop
- Artifact: build/CubleySmokeTier2_W5500/latest.deploy.bin; /tmp/tier2_connect_probe_20260608_1940.log
- Breakpoints: mailbox=0xD5050E01; native_error=0xE15304F0; connect_params_latch=0x00000000; post_connect_latch=0x00000000
- Conclusion: Tier2 connect-path harness now advances into native configure step but fails at stage 0x05 with detail 0x01 before open/connect; connect latches remain unset despite VERSIONR=0x04 and PHYCFGR=0xF0 snapshot.
### 2026-07-15 09:01:17 UTC [PASS] [NON-BASELINE]
- Git rev: 1603dd3
- Baseline: NO — deviates from cubley-base Phase A baseline (see docs/debug/PHASE_A_BASELINE.md)
- Command(s): Set LNB_I2C_ADDRESS=0x08; ./toolchain/build-native.sh build; ./toolchain/build-native.sh flash --reset; st-flash reset + sleep 2 + ./tests/swd_read_w5500_diag.sh build/nanoCLR.elf (12 cycles); SCPI loop C1:PAVA? FREQ/PKPK/RMS/MEAN (8 cycles)
- Artifact: build/nanoCLR.bin; build/nanoCLR.elf; docs/debug/BRINGUP_TEST_LOG.md
- Conclusion: Debugger-free repeated validation now passes: 12/12 cycles report bringup mailbox 0xD5CF01FF with native error 0xE3C200A2 after restoring LNBH26 address 0x08 (ADDR tied GND).
- Note: SCPI measurements across 8 reset cycles were stable at 100 kHz and 4.14 Vpk-pk on SCL; decoded variation was capture/decode-window noise, not firmware randomness.
### 2026-07-15 10:50:22 UTC [PASS]
- Git rev: 1603dd3
- Baseline: YES — matches cubley-base Phase A baseline (see docs/debug/PHASE_A_BASELINE.md)
- Command(s): Set LNB_I2C_ADDRESS=0x08; ./toolchain/build-native.sh build; ./toolchain/build-native.sh flash --reset; st-flash reset; 12x SWD read/decode of current status and last_native_error; SCPI SCL measurement loop
- Artifact: build/nanoCLR.bin; build/nanoCLR.elf; build/CubleySmokeTier2_LNBH26/latest.deploy.bin
- Conclusion: LNBH26 bidirectional I2C communication is confirmed at the software/protocol level: Phase-4 LNB smoke latched 0xD5CF01FF (all stages passed), which requires successful write path plus repeated NativeReadStatus register reads with deterministic, fault-free status after restoring address 0x08.
- Note: This confirms control/status register comms only; analog voltage and 22 kHz output measurements remain separate hardware validation steps.
### 2026-07-16 19:40:53 UTC [INFO]
- Git rev: bedf5e0
- Baseline: YES — matches cubley-base Phase A baseline (see docs/debug/PHASE_A_BASELINE.md)
- Command(s): build CubleyControl Debug with strict interop guard/checksum; serial CLI hardening in CubleyControl/Program.cs; nanoff --nanodevice --serialport=/dev/ttyUSB0 --devicedetails
- Artifact: software/nanoFramework/build/CubleyControl/CubleyControl.bin
- Conclusion: Known-good baseline locked: strict interop guard PASS, checksum 0x88B2008D, and CDC serial CLI upgraded with hybrid responses, long+alias commands, and watch/status output.
### 2026-08-24 21:01:28 UTC [FAIL]
- Git rev: 7188573
- Baseline: YES — matches cubley-base Phase A baseline (see docs/debug/PHASE_A_BASELINE.md)
- Command(s): st-info --probe; firmware/build-flash-cubley.sh build-flash --preset CUBLEY_F407_0_5 --clraddr 0x08004000 --reset; st-info --probe (bounded retry)
- Artifact: firmware/nf-interpreter/build/nanoBooter.bin (55124 bytes); firmware/nf-interpreter/build/nanoCLR.bin (210940 bytes)
- Conclusion: Clean native firmware build succeeded; SWD deploy did not start because no ST-Link programmer was detected.
- Note: No managed deployment-region erase or write was performed.
### 2026-08-24 21:03:09 UTC [PASS]
- Git rev: 7188573
- Baseline: YES — matches cubley-base Phase A baseline (see docs/debug/PHASE_A_BASELINE.md)
- Command(s): st-info --probe; st-flash write firmware/nf-interpreter/build/nanoBooter.bin 0x08000000; st-flash write firmware/nf-interpreter/build/nanoCLR.bin 0x08004000; st-flash reset
- Artifact: firmware/nf-interpreter/build/nanoBooter.bin (31392 bytes written and verified); firmware/nf-interpreter/build/nanoCLR.bin (210940 bytes written and verified)
- Conclusion: ST-Link detected; nanoBooter and nanoCLR flashed over SWD at fixed addresses, verified, and target reset successfully.
- Note: No managed deployment-region erase or write was performed.
### 2026-08-24 21:29:29 UTC [PASS]
- Git rev: 7188573
- Baseline: YES — matches cubley-base Phase A baseline (see docs/debug/PHASE_A_BASELINE.md)
- Command(s): firmware/build-flash-cubley.sh flash --reset; OpenOCD + arm-none-eabi-gdb live register/fault/USART3 probe; nanoff --nanodevice --serialport /dev/ttyUSB0 --baud 921600 --listdevices; nanoff --nanodevice --serialport /dev/ttyUSB0 --baud 921600 --devicedetails
- Artifact: firmware/nf-interpreter/build/nanoBooter.bin; firmware/nf-interpreter/build/nanoCLR.bin; firmware/nf-interpreter/build/nanoCLR.elf
- Breakpoints: PC=0x0802E500 (__idle_thread); VTOR=0x08008000; CFSR=0; HFSR=0; USART3 BRR=0x17; nanoff target=CUBLEY_F407_0_5
- Conclusion: Recovered UART enumeration by flashing debug-layout images at ELF-linked addresses: nanoBooter 0x08000000 and nanoCLR 0x08008000; nanoCLR running and nanoff devicedetails succeeds at 921600.
- Note: Prior nanoCLR write at 0x08004000 overlapped the debug nanoBooter and did not match the nanoCLR ELF base.
### 2026-08-24 21:51:03 UTC [PASS]
- Git rev: a66642b
- Baseline: YES — matches cubley-base Phase A baseline (see docs/debug/PHASE_A_BASELINE.md)
- Command(s): ./toolchain/build-CubleyControl.sh build --project CubleyControl/CubleyControl.nfproj --configuration Debug; ./toolchain/deploy-CubleyControl.sh --reset
- Artifact: build/CubleyControl/CubleyControl.bin (87,880 bytes; 9 managed assemblies; deployed at 0x080C0000)
- Conclusion: CubleyControl Debug managed application built successfully, deployed over /dev/ttyUSB0, and target reset successfully.
- Note: Managed application only; nanoBooter and nanoCLR firmware were not rebuilt or flashed.
### 2026-08-24 21:56:30 UTC [PASS]
- Git rev: a66642b
- Baseline: YES — matches cubley-base Phase A baseline (see docs/debug/PHASE_A_BASELINE.md)
- Command(s): ./toolchain/build-CubleyControl.sh build --project CubleyControl/CubleyControl.nfproj --configuration Debug; python3 toolchain/inspect_deploy_bundle.py build/CubleyControl/latest.deploy.bin; ./toolchain/deploy-CubleyControl.sh --reset; nanoff --nanodevice --serialport /dev/ttyUSB0 --baud 921600 --devicedetails
- Artifact: build/CubleyControl/latest.deploy.bin (177,572 bytes; 16 managed assembly records; deployed at 0x080C0000)
- Conclusion: Corrected managed bundle deployed successfully; device details confirms CubleyControl, CubleyNative, M2Mqtt, System.Net, System.IO.Streams, and nanoFramework.System.Text are present at the required versions.
- Note: Resolved CLR link failure caused by omitted MQTT and network dependency assemblies; native firmware was not rebuilt or flashed.
### 2026-08-24 22:25:03 UTC [PASS]
- Git rev: a66642b
- Baseline: YES — matches cubley-base Phase A baseline (see docs/debug/PHASE_A_BASELINE.md)
- Command(s): ./toolchain/interop-guard.sh; ./toolchain/interop-checksum.sh --check --assembly CubleyNative; ./toolchain/interop-negative-drift-test.sh; ./toolchain/build-CubleyControl.sh build --project CubleyControl/CubleyControl.nfproj --configuration Debug; ../../firmware/build-flash-cubley.sh build
- Artifact: build/CubleyControl/latest.deploy.bin (177,572 bytes; CubleyNative v1.0.0.0 checksum 0x55A991DA); firmware/nf-interpreter/build/nanoBooter.bin (31,392 bytes); firmware/nf-interpreter/build/nanoCLR.bin (214,812 bytes)
- Conclusion: Cleaner 26-slot PE-ordered CubleyNative layout passed guard, negative-drift, managed build, and native firmware build validation.
- Note: Build-only validation; hardware was not flashed or redeployed.
### 2026-08-24 22:30:09 UTC [PASS]
- Git rev: a66642b
- Baseline: YES — matches cubley-base Phase A baseline (see docs/debug/PHASE_A_BASELINE.md)
- Command(s): ../../firmware/build-flash-cubley.sh flash --reset; ./toolchain/deploy-CubleyControl.sh --reset; nanoff --nanodevice --serialport /dev/ttyUSB0 --baud 921600 --devicedetails; OpenOCD/GDB hardware breakpoint probe at Library_cubley_interop_DiagMailbox_NativeGet___STATIC__U4
- Artifact: ../../firmware/nf-interpreter/build/nanoBooter.bin (31,392 bytes; 0x08000000); ../../firmware/nf-interpreter/build/nanoCLR.bin (214,812 bytes; 0x08008000); build/CubleyControl/latest.deploy.bin (177,572 bytes; 16 assemblies; Debug deployment region 0x08060000)
- Breakpoints: Library_cubley_interop_DiagMailbox_NativeGet___STATIC__U4 @ 0x08023D6C: HIT
- Conclusion: Current 26-slot CubleyNative runtime contract passed: firmware and managed payload deployed, all assemblies resolved, native identity matched v1.0.0.0/0x55A991DA, and managed startup dispatched DiagMailbox.NativeGet.
- Note: Generated Debug maps defined the flash layout. No assembly resolver/link failures observed.
### 2026-08-24 23:41:33 UTC [INFO]
- Git rev: ea4160a
- Baseline: YES — matches cubley-base Phase A baseline (see docs/debug/PHASE_A_BASELINE.md)
- Command(s): ./firmware/build-flash-cubley.sh build; ./firmware/build-flash-cubley.sh flash --reset; nanoff devicedetails on /dev/ttyUSB0 at 921600; read-only SWD USB register snapshot
- Artifact: firmware/nf-interpreter/build/nanoBooter.bin and nanoCLR.bin
- Conclusion: Flashed native firmware using corrected PA9 VBUS sensing; USART3 wire protocol and all 16 managed assemblies remain operational; Windows CDC enumeration pending host confirmation.
- Note: GCCFG=0x000DFFFF (NOVBUSSENS cleared), PA11/PA12 AF10, SD3 unchanged, and no deployment erase.
### 2026-08-25 14:37:55 UTC [PASS]
- Git rev: ea4160a
- Baseline: YES — matches cubley-base Phase A baseline (see docs/debug/PHASE_A_BASELINE.md)
- Command(s): Manual Windows USB CDC/PuTTY session; exercised CubleyControl interface commands
- Artifact: CubleyControl USB CDC console on target board
- Conclusion: Windows USB CDC enumeration and the CubleyControl command interface are operational on the target board.
- Note: User-confirmed hardware validation on 2026-08-25; no automated command transcript captured.
82fdcecfbThis file is pinned to the selected release. Download the original to open it in your design tool.