You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 17, 2022. It is now read-only.
Hello,
I have a EL2 design running on an fpga (Nexys A7). I have a jtag controller running with openocd, with gdb connected via port 3333 on the openocd server.
My EL2 design has two code memories designed in. One can handle 2-byte and single byte reads, the other (called ICCM) can only handle 4 byte word reads.
When I have code running in the first memory, everything works fine - single step, breakpoints, etc.
When I have code running in the ICCM memory, breakpoints work, but single stepping does not.
Looking at the debug output of openocd, it appears that gdb is requesting a 2-byte read from the memory when a single step is requested. Since my memory can't handle a 2-byte read, it fails and the failure is sent all the way back to gdb.
Since it is gdb which is requesting the two-byte read, I'm assuming its a gdb problem. I looked around but couldn't find an openocd setting to solve the problem.
The text was updated successfully, but these errors were encountered:
I would suggest you can send mail to gdb mailing list since that is seems like a gdb specific question, so I guess you can get more feedback from gdb expert there.
Hello,
I have a EL2 design running on an fpga (Nexys A7). I have a jtag controller running with openocd, with gdb connected via port 3333 on the openocd server.
My EL2 design has two code memories designed in. One can handle 2-byte and single byte reads, the other (called ICCM) can only handle 4 byte word reads.
When I have code running in the first memory, everything works fine - single step, breakpoints, etc.
When I have code running in the ICCM memory, breakpoints work, but single stepping does not.
Looking at the debug output of openocd, it appears that gdb is requesting a 2-byte read from the memory when a single step is requested. Since my memory can't handle a 2-byte read, it fails and the failure is sent all the way back to gdb.
Since it is gdb which is requesting the two-byte read, I'm assuming its a gdb problem. I looked around but couldn't find an openocd setting to solve the problem.
The text was updated successfully, but these errors were encountered: