|
ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
|
Directories | |
| inc | |
| src | |
usb_msc_mram on the USB-HS port (J7): the same synthesized read-only FAT16 view of the chip's on-board MRAM, at high speed. What differs is the HS device framework – Device Qualifier descriptor, 512-byte bulk max packet size, a full-speed fallback framework – and the USBHS controller plus UTMI PHY bring-up.
Verification is the same by-hand comparison: copy MRAM.BIN off over USB, dump the same window over SWD with savebin, and require the bytes to be identical.
The HS CDC class worked from day one. Mass storage at high speed exercised paths CDC never touched:
The app and the bridge keep JLink-readable state: device-state, speed, class instance and framework mirrors, storage-thread and media-read counters, a BOT/SETUP event trace ring with DWT cycle timestamps, and a DVSQ causal history whose high nibble is the raw DVSQ and low nibble the device state at IRQ entry. They are statics, so re-resolve their addresses with arm-none-eabi-nm after every build.
The USBHS VBUS sense pin is the only PFS-muxed HS pin; D+ and D- are dedicated PHY balls. J7's role-select GPIO is driven LOW for device mode (EK-RA8D2 v1 UM Sec 6.2 p 34). The USB IDs come from the pid.codes free-for-experiments range and are bench-only.