hi all: when I try to implement armv8 debugger in openocd, I need to pass not only dbgbase but also ctibase. I use patch at the end of mail to pass ctibase but get below fail message:
"User : 100 2 command.c:666 command_run_line(): Runtime Error: embedded:startup.tcl:20: Unknown RTOS type H??[]?ATUSH??H??I??H??H??HD?H?t???????uH??H?TL??H?}, try one of: ThreadX, FreeRTOS, eCos, linux, ChibiOS, embKernel, or auto" here is my config content for calling target create: ocd_target ocd_target create fpga.cpu cortex_a -chain-position fpga.cpu -coreid 0 -dbgbase 196608 -ctibase 229376 did I miss any modification in target.c for adding more parameter? Thanks for your help in advance, --- a/src/target/target.c +++ b/src/target/target.c @@ -4120,6 +4120,7 @@ enum target_cfg_param { TCFG_COREID, TCFG_CHAIN_POSITION, TCFG_DBGBASE, + TCFG_CTIBASE, TCFG_RTOS, }; @@ -4134,6 +4135,7 @@ static Jim_Nvp nvp_config_opts[] = { { .name = "-coreid", .value = TCFG_COREID }, { .name = "-chain-position", .value = TCFG_CHAIN_POSITION }, { .name = "-dbgbase", .value = TCFG_DBGBASE }, + { .name = "-ctibase", .value = TCFG_CTIBASE }, { .name = "-rtos", .value = TCFG_RTOS }, { .name = NULL, .value = -1 } }; @@ -4399,7 +4401,20 @@ no_params: Jim_SetResult(goi->interp, Jim_NewIntObj(goi->interp, target->dbgbase)); /* loop for more */ break; - + case TCFG_CTIBASE: + if (goi->isconfigure) { + e = Jim_GetOpt_Wide(goi, &w); + if (e != JIM_OK) + return e; + target->ctibase = (uint32_t)w; + target->ctibase_set = true; + } else { + if (goi->argc != 0) + goto no_params; + } + Jim_SetResult(goi->interp, Jim_NewIntObj(goi->interp, target->ctibase)); + /* loop for more */ + ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk _______________________________________________ OpenOCD-devel mailing list OpenOCD-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openocd-devel