summaryrefslogtreecommitdiff
path: root/hw/bsp/imxrt/family.c
AgeCommit message (Collapse)Author
2026-07-24address #3787 Codex round 2: board-gate PHY resets, session robustnesshathach
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-24imxrt: hold EVKB Ethernet PHY in reset while tracing, 50 MHz trace pinhathach
Fresh bring-up pass on mimxrt1170_evkb: holding the 100M RTL8201 in reset (ENET_RST_B = GPIO_LPSR_04) stops its RMII lines driving against the shared trace pads and doubles the clean trace-pin rate to 50 MHz (100 MHz CSTRACE root; 133 MHz root is marginal, stock 132 corrupts). Validated 3x 8 s TinyUSB captures at 11.46M fetches. D1-D3 remain silent in every configuration - the welded R1882-R1884 are electrically open; reflow is the remaining step to width 4. Board notes gain JP4 (must be shorted for an external probe on J58).
2026-07-24imxrt: TRACE_ETM for RT1011 and RT1176, validate both boardshathach
metro_m7_1011 (custom ETM-header rework): 500 MHz core, 66 MHz TRACECLK width 4, +50 ps; trace_etm_init ungates the 132 MHz trace root that BOARD_BootClockRUN leaves gated. mimxrt1170_evkb: 996 MHz CM7 at width 1, CSTRACE pinned to 50 MHz (stock 132 corrupts - the Ethernet PHY loads the CLK net) and the CM7 platform trace-funnel port enabled in firmware: J-Link does not program that funnel and everything reads register-perfect yet silent without it. FlexSPI boot needs the committed SP/PC hooks; D1-D3 stay dead pending the R1882-R1884 continuity check (width-4 TODO).
2026-04-03fix hil host cdc echo test with imxrt and other fast mcuhathach
2026-02-28replace board_millis() with tusb_time_millis_api()hathach
2025-12-20SCB_EnableDCache() is required for rt1011hathach
2025-11-25bsp: Disable SysTick ISR if FreeRTOS is enabledZixun LI
2025-10-15fix build warning with clanghathach
2025-09-15fix imxrt buildhathach
2025-09-12Move BOARD_ConfigMPU into board specific initHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-03-26hcd/ehci: hcd_edpt_open() return false if ep is already opened. implement ↵hathach
hcd_edpt_close()
2025-03-26added mimxrt1064_evk to hil test poolhathach
2025-03-26imxrt: disable BOARD_ConfigMPU() since it cause issue with imxrt1060/64. ↵hathach
Update imxrt configtool forr some board to get uart pin init.
2024-12-27embed metadata to family.c and board.h to generate supported boards dochathach
2024-12-17enable CFG_TUD/THU_MEM_DCACHE_ENABLE for imxrt with M7 by defaulthathach
2024-11-30Fix CI.HiFiPhile
2024-11-02Replace cache clean/invalidate by MPU config.HiFiPhile
2024-10-10add new tusb_int_handler(rhport, in_isr) as common irq handlerhathach
update tusb_init() to take rhport and role, defined as macro with optional argument for backward compatible
2024-07-18add unique id for imxrthathach
2024-04-23clang work with lpc54hathach
2024-04-22clang work with imxrt tested with metro rt1011 and rt1060 evk. Don't use ↵hathach
startfiles for imxrt
2023-11-22correctly use xtal for initialize usbphy, rt1170 usb is workinghathach
2023-11-16update rt1170 evk with led and button, but usb not working yethathach
2023-11-16update metro m7 airlift and sdhathach
2023-11-16update imxrt1010 with mexhathach
2023-11-16add imxrt1170 evkbhathach
2023-11-16add metro m7 1011 sd with trace etm, try to enable but not working yethathach
2023-09-27change hcd_int_handler(rhport, in_isr) signature: add in_isrhathach
change tuh_int_handler() to take in_isr as optional parameter (default = true)
2023-08-03more board_api.h renamehathach
2023-07-18correct jlink dev for rt1010hathach
2023-07-14add clock_config.c for imxrt generated by mcuxpresso confighathach
2023-06-16fix build warningshathach
2023-05-16EHCI: fix xfer failed with disconnected device as stalledhathach
- change CFG_TUH_ENDPOINT_MAX to 16 (max endpoint pair per device) if not defined - change QHD_MAX for EHCI, should be user configurable and more optimized in the future
2023-05-09simplify cmake target, remove -bsphathach
2023-05-08change imxrt board_uart_read() to non-blockinghathach
simple host seems to work
2023-05-08fix linking missing ivt symbol for imxrt with cmakehathach
changed device port = 0, host port =1 for imxrt 1060 and 1064
2023-03-17fix trailing space and new linehathach
temporarily disable codespell
2023-02-13add uf2 linker for metro m7 1011hathach
2023-02-12Turn data cache oncaleb crome
This fixes https://github.com/hathach/tinyusb/issues/1894. I'm not really sure if this is the correct way to fix it, and I have not tested on all the rest of the family members, however, this lets the i.MX1010 work again. The problem: the latest SDK update does not enable the data cache by default This causes an assert in board_init() when attemping to control clock gating. I haven't investigated further as to *why* it's a problem, but it is a problem.
2022-06-06more ci fixhathach
2022-06-06fix ci, remove use of CFG_TUSB_RHPORT0_MODE in bsphathach
2022-05-05set irq priority for freertoscaleb crome
2022-02-22Guard clock setup for USB2Scott Shawcroft
2022-02-22Add dual role (concurrent) exampleScott Shawcroft
This reads HID devices over host and then translates that to ASCII and sends it over CDC device.
2021-10-17more with -Wcast-qualhathach
2021-04-28fix build with imxrthathach
2021-02-23rt1011 msc host workhathach
2020-11-29complete grouping imxrt boardshathach