URL
https://opencores.org/ocsvn/neorv32/neorv32/trunk
[/] [neorv32/] [trunk/] [docs/] [userguide/] [debugging_with_ocd.adoc] - Diff between revs 72 and 74
Show entire file |
Details |
Blame |
View Log
Rev 72 |
Rev 74 |
Line 173... |
Line 173... |
|
|
After the upload, GDB will make the processor jump to the beginning of the uploaded executable
|
After the upload, GDB will make the processor jump to the beginning of the uploaded executable
|
(by default, this is the beginning of the instruction memory at `0x00000000`) skipping the bootloader
|
(by default, this is the beginning of the instruction memory at `0x00000000`) skipping the bootloader
|
and halting the CPU right before executing the `blink_led` application.
|
and halting the CPU right before executing the `blink_led` application.
|
|
|
|
[IMPORTANT]
|
|
After gdb has connected to the CPU, it is recommended to disable the CPU's global interrupt flag
|
|
(`mstatus.mie`, = bit #3) to prevent unintended calls of potentially outdated trap handlers. The global
|
|
interrupt flag can be cleared using the following gdb command:
|
|
`set $mstatus = ($mstatus & ~(1<<3))`. Interrupts can be enabled globally again by the following command:
|
|
`set $mstatus = ($mstatus | (1<<3))`.
|
|
|
|
|
:sectnums:
|
:sectnums:
|
==== Software Breakpoints
|
==== Software Breakpoints
|
|
|
The following steps are just a small showcase that illustrate a simple debugging scheme.
|
The following steps are just a small showcase that illustrate a simple debugging scheme.
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.