summaryrefslogtreecommitdiff
path: root/hw/bsp/nrf
AgeCommit message (Collapse)Author
19 hourssysview: fix cycle-3 review findingshathach
- kill_traffic(): stop the recording at --duration-ms exactly, then reap the workload, instead of waiting on it (up to 60s) before -stop - sysview_report.py: key open_calls by (func id, context) so interleaved callers of the same function don't cross-pair CALL/RET - build.yml: intersect the sysview dep-fetch board list with the PR's own HIL selection (tinyusb.json vs hfp.json), and skip entirely when HIL is not running for this PR - nrf54h20dk: shrink SYSVIEW_BUFFER_SIZE_DEFAULT to 4096 -- .data/.bss sit in the 32 KiB primary RAM, so the family's 65536 default fails to link - tusb_sysview.c: copy pcTaskName into a local buffer at snapshot time so a task deleted mid-lap can't leave SendTaskInfo() dereferencing a freed TCB - sysview_ci.py: drop a comparison against a baseline whose capture config (example/workload/duration_s) changed, and fail cdc_burst when the link stays enumerated but echoes nothing back - SKILL.md: document the WCH post-mortem dump path (OpenOCD, no J-Link)
21 hourssysview: per-family RTT buffer defaults, 65536 on RAM-rich partshathach
The dual-role dogfood measured the 4096 fallback losing 96.7% of ISR exit contexts on mimxrt1064_evk and 99.1% on metro_m4_express; a local-board run measured stm32u575nucleo losing ~19% of the whole stream under a 12 s cdc_msc workload. The default was too small for any real capture on fast parts and every user had to rediscover that per board. Families now declare SYSVIEW_BUFFER_SIZE_DEFAULT in family.cmake (the SYSVIEW_RAM_BASE_DEFAULT pattern): imxrt, nrf, rp2040, samd5x_e5x, stm32f4, stm32f7, stm32h7 and stm32u5 set 65536, the measured-safe value. -DSYSVIEW_BUFFER_SIZE still beats everything; small-RAM parts keep the 4096 fallback and their per-board overrides (stm32f072disco's 2048 verified still honoured). lpc55 measured 34 lost events on the same route, an order of magnitude lighter, so it keeps the fallback rather than inheriting a default on thin evidence.
21 hourssysview: FreeRTOS trace hooks, stack high-water and heap trackinghathach
hw/bsp/sysview_freertos_hooks.h maps the FreeRTOS trace macros onto SystemView task records (task names, switches, ready/blocked) and adds heap tracking; the FreeRTOSConfig.h of the families used on the rig include it when SYSVIEW is on. The FreeRTOS examples grow their USB task stacks when CFG_TU*_SYSVIEW is enabled, the same way they already do for CFG_TUSB_DEBUG -- the instrumentation's stack cost is real (measured overflows on lpc55 before the bump).
2026-07-24nrf: etm-trace for nrf52840dk and nrf5340dkhathach
nrf52840dk: 16 MHz TRACECLK (hardware cap) width 4, P25 soldered, SW7=Alt; no family code needed (J-Link arms TRACECONFIG). nrf5340dk: TRACE_ETM builds force the TAD port to 16 MHz (SystemInit's 64 MHz is marginal), +3 ns sample timing; the interface MCU's UART1 flow control drives the trace pins - SB27/SB28 must be cut (P0.10/P0.11 = TRACEDATA1/0).
2026-05-04Adjust RAM configuration for nrf54h20 to optimize memory usage in video exampleshathach
2026-04-10clean uphathach
2026-04-10fix nrf54 and freertos porthathach
2026-04-10add dwc2_clock_init() to have nrf54 initial sequence. currently stub for ↵hathach
other ports. add board_uart_read() for nrf
2026-04-09Add initial board support for nRF54LM20 DKgab-k
2026-04-06remove IAR toolchain support from make build systemhathach
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) <[email protected]>
2026-04-04make board_uart_read()/write() return -1 when unimplemented for consistency ↵hathach
across all families
2026-02-28replace board_millis() with tusb_time_millis_api()hathach
2025-11-28fix build with zephyr with latest nrfx v4hathach
2025-10-28fix warning with strict prototypes warningshathach
2025-10-28disable warning for startup filehathach
2025-10-23fix more buildhathach
2025-10-23refactor family.cmake: rename add_board_target() to family_add_board() and ↵hathach
move it to family_configure_common() also move startup and linker from board target to actual exe
2025-10-14fix lots of warnings for missing-prototypes for irqhandlerhathach
2025-10-14fix missing prototypeshathach
2025-10-13fix build with west zephyrhathach
2025-10-13rename pca10056 to nrf52840dk, pca10059 to nrf52840donglehathach
2025-10-13update make build system rename pca10095 to nrf5340dkhathach
2025-10-13get cmake build with 54h20 not tested on actual hw, probably not runninghathach
2025-01-25fix cihathach
2025-01-25cmake remove EXAMPLE-tinyusb target as libraryhathach
2025-01-25use board alias for pca10056hathach
2025-01-25use board alias for pca10056hathach
2025-01-25add -DRTOS=zephyr to ci west buildhathach
2025-01-24add cmake RTOS=zephyr (default noos) for zephyr buildhathach
2025-01-23kind of work with zephyr with pca10056 with cmake -DBUILD_ZEPHYRhathach
2025-01-23kind of work with zephyr with pca10056 with cmake -DBUILD_ZEPHYRhathach
2025-01-22- change to use CMAKE_SYSTEM_CPU to prevent CMAKE_SYSTEM_PROCESSOR conflict ↵hathach
with zephyr - change tinyusb CMakeLists.txt to function tinyusb_target_add() instead of defining tinyusb lib target
2025-01-21zephyrhathach
2024-12-27embed metadata to family.c and board.h to generate supported boards dochathach
2024-11-30Add bin & hex output to cmake targets.HiFiPhile
2024-08-22skip dual/host_info_to_device_cdc for pico due to a bug in pio-usbhathach
2024-08-21update circle ci to build make (#2769)Ha Thach
* update build.py script to work with circleci * build make with circle ci * build vm for esp only * nrf imxrt with large resource * nrf imxrt with large resource * remove 2 of nrf boards
2024-05-15implement max3421e hcd_edpt_abort_xfer()hathach
2024-04-24update clang make build for stm32: f0 f1 f2 f3 f4 f7 h7 g0 g4 l0 l4 samd21 ↵hathach
samd51 nrf
2024-04-23clang work with lpc54hathach
2024-04-22fix linker libgcc for nrfhathach
2024-04-22clang compile with lpc17hathach
2024-04-22clang work with lpc43hathach
2024-04-22clang tested with mcb1800, add heap to lpc18 linkerhathach
2024-04-22fix nrfx v3 spim freq when inithathach
fix clang build with nrf
2024-04-22fix build with nrfx v3, though max3421e spi does not seem to work well.hathach
2024-04-22dcd nrf change atoimc_bool to atomic_flaghathach
2024-04-19- update nrfx to v3.4.0hathach
- compile nrf with __STARTUP_CLEAR_BSS and link flag -nostartfiles
2024-04-19adding clang for nrfhathach
2024-03-22remove pca10095 suppport for max3421hathach
also remove pico_bootsel_via_double_reset from rp2040