-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
on-chip software debugger support (#26)
* Rebase dbg branch after float merge * Make it compile against codal master
- Loading branch information
Showing
8 changed files
with
191 additions
and
40 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#ifndef HF2DBG_H | ||
#define HF2DBG_H 1 | ||
|
||
// we use a location at the top of the stack to store a magic value | ||
// which causes us to stop at the very first break point in the program | ||
#define HF2_DBG_MAGIC_PTR ((uint32_t *)(CORTEX_M0_STACK_BASE - (DEVICE_STACK_SIZE - 4))) | ||
#define HF2_DBG_MAGIC_START 0xf0ebac7f | ||
|
||
#define HF2_DBG_GET_GLOBAL_STATE 0x53fc66e0 | ||
struct HF2_GLOBAL_STATE_Result { | ||
uint32_t num_globals; | ||
uint32_t globals_addr; | ||
}; | ||
|
||
#define HF2_DBG_RESTART 0x1120bd93 | ||
#define HF2_DBG_RESUME 0x27a55931 | ||
#define HF2_EV_DBG_PAUSED 0x3692f9fd | ||
#define HF2_DBG_GET_STACK 0x70901510 | ||
|
||
#endif |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,7 @@ | |
"enums.d.ts", | ||
"hf2.cpp", | ||
"hf2.h", | ||
"hf2dbg.h", | ||
"uf2format.h", | ||
"uf2hid.h", | ||
"ns.ts", | ||
|
This file contains 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