summaryrefslogtreecommitdiff
path: root/hw/bsp/same7x
diff options
context:
space:
mode:
authorhathach <[email protected]>2026-07-24 18:38:40 +0700
committerhathach <[email protected]>2026-07-24 18:38:40 +0700
commite65368ea16975710f029f7ff7e2089b9ea90186d (patch)
treed9fea14ee369f90b2887db11a52e3c74e34d9b90 /hw/bsp/same7x
parentd3eaeb06e04519b480637f6e7cb007a3de08d923 (diff)
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.
Diffstat (limited to 'hw/bsp/same7x')
-rw-r--r--hw/bsp/same7x/family.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/bsp/same7x/family.c b/hw/bsp/same7x/family.c
index 6a3466354..d99c17efb 100644
--- a/hw/bsp/same7x/family.c
+++ b/hw/bsp/same7x/family.c
@@ -82,6 +82,7 @@ void board_init(void) {
PMC->PMC_SCER = PMC_SCER_PCK3;
while (!(PMC->PMC_SR & PMC_SR_PCKRDY3)) {}
}
+ _pmc_enable_periph_clock(ID_PIOD);
uint32_t const clk_pin = PIO_PD8D_TPIU_TRACECLK;
uint32_t const dat_pin = PIO_PD4C_TPIU_TRACED0 | PIO_PD5C_TPIU_TRACED1 |
PIO_PD6C_TPIU_TRACED2 | PIO_PD7C_TPIU_TRACED3;