diff --git a/boards/_base/realtek-ambz2.json b/boards/_base/realtek-ambz2.json index 0bdd708..05d4ffd 100644 --- a/boards/_base/realtek-ambz2.json +++ b/boards/_base/realtek-ambz2.json @@ -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, diff --git a/cores/realtek-ambz2/base/lt_api.c b/cores/realtek-ambz2/base/lt_api.c index aec6832..83c5f2d 100644 --- a/cores/realtek-ambz2/base/lt_api.c +++ b/cores/realtek-ambz2/base/lt_api.c @@ -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;