Commit Graph

16 Commits

Author SHA1 Message Date
f08c821190 address #3787 Codex round 2: board-gate PHY resets, session robustness
The board-specific PHY-reset nets move behind a board.h opt-in
(TRACE_ETM_QUIET_ENET_PHY on same70_xplained and mimxrt1170_evkb) so other
boards of those families cannot inherit a foreign GPIO write; the
chip-level trace pin muxes stay family-wide by design (same pattern as
stm32h7). same70 reference: width 1 is the validated default until the
J403.16 rework, and the hooks now wait (bounded) for PCKRDY3 before Ozone
arms trace. ra8m1 reference caches the boot ROM in AfterTargetConnect so
--attach sessions decode ROM execution too. etm_capture rejects an
unexpanded CMake JLINK_DEVICE with a clear error; PIO-USB + TRACE_ETM on
RP2350 is now a compile error (48 MHz trace clock is too slow for PIO-USB
and a runtime switch would desync the stream); etm_profile keeps
same-named statics from different modules as distinct rows.
Build-verified: same70_xplained, mimxrt1170_evkb, raspberry_pi_pico2.
2026-07-24 21:30:42 +07:00
e65368ea16 address #3787 reviews: bsp fixes, script hardening, board-note accuracy
Bot findings (Copilot/Codex): no-op board_trace_pinmux stubs for
lpcxpresso18s37/43s67 (TRACE_ETM otherwise broke their build), SAME70
ID_PIOD clock enable, capture-script duplicate BeforeTargetConnect on the
RA references, profile-script support for --no-timestamps itraces.

Deep review (whole branch): same70_xplained board row + caveat restored,
stale pico2 72 MHz claim corrected to the shipped 48, explicit
SetTracePortWidth(4) in the three references that relied on Ozone's
default, coverage-cell guard, median-based SysTick calibration, dead
session flag removed, stale RA8M1 divider comment fixed (0x02 = /4 is the
validated chip max) and the debugger guard indented.

EVKB bench findings: only R1884/D3 remains open (D1/D2 meter-verified);
RT1176 trace width is 1 or 4 only - J-Link arms the CSSYS TPIU and its
own sampler at 4-bit for any width>=2 request; a powered MCU-Link USB
breaks the external probe even with JP4 shorted.
2026-07-24 18:38:40 +07:00
2a2d5f65ad same7x: ETM trace support for same70_xplained
J403 (bottom-side Cortex Debug+ETM footprint, header required):
TRACECLK=PD8 peripheral D, TRACED0-3=PD4-7 peripheral C. TRACE_ETM builds
hold the KSZ8081 PHY in reset (PD4-7 are its RMII receive outputs and it
drives against the trace stream), clock the TPIU from PCK3 (MCK/2) and
mux the pins; the ozone reference starts PCK3 in the post-reset/download
hooks - TPIU programming while PCK3 is stopped is silently lost. Width-1
validated at the stock 300 MHz core; width 4 blocked on a dead D1 line
(suspect probe channel, h743eval crosscheck pending).
2026-07-24 15:56:14 +07:00
4c7a9fed96 remove IAR toolchain support from make build system
IAR is only supported with CMake. Remove all IAR-specific references
from the Make build system including toolchain files, SRC_S_IAR,
LD_FILE_IAR variables, and IAR toolchain detection.

Also fix GET_SECTOR_COUNT truncation in msc_file_explorer and
broken formatting in stm32f7 board_uart_write.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-06 11:17:34 +07:00
9838a231ad make board_uart_read()/write() return -1 when unimplemented for consistency across all families 2026-04-04 21:32:39 +07:00
6c4f119ddd - update SAME70 BSP: remove unused definitions, consolidate startup files
- and add unique ID
- add freertos
2026-03-07 13:01:32 +07:00
3a0227b771 fix Jlink device name
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2026-03-06 12:52:13 +01:00
c186063a63 Merge remote-tracking branch 'tinyusb/master' into samx7x_update 2026-03-06 11:59:25 +01:00
8444c25ab6 replace board_millis() with tusb_time_millis_api() 2026-02-28 00:01:40 +07:00
fc9f63e62d bsp/samx7x: fix build
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2026-02-27 10:43:22 +01:00
8221ea220b bsp: Disable SysTick ISR if FreeRTOS is enabled 2025-11-25 16:30:32 +01:00
113a763bc3 fix warning with strict prototypes warnings 2025-10-28 11:10:29 +07:00
cc597d5cd5 disable warning for startup file 2025-10-28 00:15:39 +07:00
c8a1b757f0 refactor family.cmake: rename add_board_target() to family_add_board() and move it to family_configure_common()
also move startup and linker from board target to actual exe
2025-10-23 02:23:20 +07:00
4dfac3f356 Update hw/bsp/same7x/boards/same70_qmtech/board.h
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-15 20:37:04 +07:00
a5fde08285 refactor same7x using codex 2025-10-14 17:18:26 +07:00