v2025-07-10 or later
Whether a hardware debugger can be used via tools like OpenOCD or GDB entirely depends on whether the RISC-V CPU includes JTAG functionality.
None of the CPUs provided by RVX include this functionality.
If users want to perform hardware-based debugging, they must obtain a CPU that supports it.
Variables can be printed using printf for debugging purposes.
Include the header file ervp_printf.h to use this functionality.
Several debugging functions, which are extensions of printf, are available as listed below:
Function Name | Description |
---|---|
debug_printx(var) | Prints var in %08x format. |
debug_printd(var) | Prints var in %d format. |
debug_printf(var) | Prints var in %f format. |
debug_printc(var) | Prints var in %c format. |
debug_prints(var) | Prints var in %s format. |
debug_printn() | Prints a blank line. |
debug_print_line() | Prints only the current code location. |