[realtek-ambz2] Add GDB init command

This commit is contained in:
Kuba Szczodrzyński
2023-05-29 22:25:23 +02:00
parent 6135e4f7b0
commit f1e41f7cc1
2 changed files with 8 additions and 2 deletions

View File

@@ -13,7 +13,13 @@
},
"debug": {
"protocol": "openocd",
"protocols": []
"protocols": [
"openocd"
],
"openocd_config": "amebaz2.cfg",
"gdb_init": [
"mem 0x9b000000 0x9c000000 ro"
]
},
"upload": {
"maximum_ram_size": 262144,

View File

@@ -7,7 +7,7 @@ extern uint8_t lt_uart_port;
void lt_init_family() {
// make the SDK less verbose by default
ConfigDebugErr = 0;
ConfigDebugErr = _DBG_MISC_ | _DBG_FAULT_ | _DBG_BOOT_;
ConfigDebugWarn = 0;
ConfigDebugInfo = 0;
lt_uart_port = LT_UART_DEFAULT_PORT;