Merged
Conversation
fba89c3 to
dd44d31
Compare
augustofg
requested changes
May 26, 2025
README.md
Outdated
|
|
||
| To configure a build using XVC: | ||
|
|
||
| cmake ~/openmmc/ -DBOARD=afc -DVERSION=4.0 -DDEBUG_PROBE=xvc -DXVC_HOST=de-23rabpm-co-cratectrl -DXVC_PORT=2542 |
Member
There was a problem hiding this comment.
Prefer not using real our internal hostname / port here. Change it to -DXVC_HOST=xvc_hostname -DXVC_PORT=xvc_port_number
README.md
Outdated
Comment on lines
+85
to
+89
| Explanation of relevant flags: | ||
| - `DDEBUG_PROBE`: Selects the debug interface. | ||
| - `DXVC_HOST`: Hostname or IP address of the crate controller running the XVC server. | ||
| - `DXVC_PORT`: TCP port for the XVC server (dafault 2542). | ||
| - `DVERSION`: Specifies the AFC version to be flashed. |
Member
There was a problem hiding this comment.
I prefer removing this, these flags are already covered previously.
README.md
Outdated
|
|
||
| This will create a `openocd.cfg` file in `<build_dir>/out`. | ||
|
|
||
| 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. |
Member
There was a problem hiding this comment.
For AFCv4.0 cards, you can program the MMC microcontroller via Xilinx XVC protocol if your MicroTCA crate supports it using the backplane JTAG interface. First, make sure the FPGA is powered off (M1 state), then configure the XVC hostname and port:
README.md
Outdated
| ### OpenOCD | ||
| 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). | ||
|
|
||
| You can specify the debug probe in the CMake configuration with the -DDEBUG_PROBE=<probe_name> flag. Example for CMSIS-DAP: |
Member
There was a problem hiding this comment.
This information is redundant, read the previous paragraph.
d891cf5 to
e1cca9b
Compare
e1cca9b to
56dfe32
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.