This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#8454 - Implement debug() for ARM architectures via JTAG DCC
Attached to Project:
Rockbox
Opened by Catalin Patulea (Catalin Patulea) - Sunday, 13 January 2008, 19:41 GMT+2
Opened by Catalin Patulea (Catalin Patulea) - Sunday, 13 January 2008, 19:41 GMT+2
|
DetailsThe ARM hardware debugger via JTAG spec (EmbeddedICE) specifies a sideband channel for target<->debugger communication called DCC (Debug Communications Channel). openocd, an open-source debugger compatible with the EmbeddedICE standard, supports using this channel for textual debug messages from the target.
The attached patch implements the target side of this channel. Messages can be enabled in openocd using the "target_request debugmsgs enable" command. WARNING: If -DDEBUG is enabled and there is no hardware debugger attached to drain the DCC buffer, debug() becomes very slow because it has to wait for the writes to time out. However, this is unlikely to happen because -DDEBUG isn't typically enabled for target builds. |
This task depends upon
Because it's so slow I think it would be more appropriate to modify logf, as logf is enabled on a file by file basis, whereas debugf is sprinkled all over the place I think.
There would probably need to be an "Enable logf over jtag DCC" configure option because of the long timeouts when no jtag debugger is attached.