Skip to content

Commit fba89c3

Browse files
author
Joao Victor Santos
committed
Update README.md
1 parent 001e99e commit fba89c3

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,24 @@ To make a debug build (to include symbols into elf file, turn off optimizations,
7070
### OpenOCD
7171
Flashing the MMC microcontroller via SWD/JTAG is supported for CMSIS-DAP and Jlink compatible probes through OpenOCD. You can specify the debug probe with the flag `-DDEBUG_PROBE=<probe_name>`, valid options are `cmsis-dap` (default), `jlink`, `digilent_jtag_hs3` and `xvc` (support is not merged to the official OpenOCD source yet, so you build our patched version: https://github.com/lnls-dig/openocd/tree/fix-afcv3-flashing).
7272

73+
You can specify the debug probe in the CMake configuration with the -DDEBUG_PROBE=<probe_name> flag. Example for CMSIS-DAP:
74+
7375
cmake ~/openmmc/ -DBOARD=afc -DVERSION=3.1 -DDEBUG_PROBE=cmsis-dap
7476

7577
This will create a `openocd.cfg` file in `<build_dir>/out`.
7678

79+
In scenarios where the AFC board is in M7 (Error State) or M1 (Shutdown State), the Xilinx Virtual Cable (XVC) interface is particularly useful, allowing firmware upgrades over Ethernet via JTAG. This enables recovery without physical access to the crate.
80+
81+
To configure a build using XVC:
82+
83+
cmake ~/openmmc/ -DBOARD=afc -DVERSION=4.0 -DDEBUG_PROBE=xvc -DXVC_HOST=de-23rabpm-co-cratectrl -DXVC_PORT=2542
84+
85+
Explanation of relevant flags:
86+
- `DDEBUG_PROBE`: Selects the debug interface.
87+
- `DXVC_HOST`: Hostname or IP address of the crate controller running the XVC server.
88+
- `DXVC_PORT`: TCP port for the XVC server (dafault 2542).
89+
- `DVERSION`: Specifies the AFC version to be flashed.
90+
7791
To flash the application firmware only, run
7892

7993
make program_app

0 commit comments

Comments
 (0)