Do_board_reset_init

I am trying to debug a sample program using softconsole and polarfire soc. What exactly does do_board_reset_init do. I need to know if we can modify this function or see what is performed under do_board_reset_init

xPack OpenOCD (Microchip SoftConsole build), x86_64 Open On-Chip Debugger 0.10.0+dev-00859-g95a8cd9b5-dirty (2020-10-21-21:19)
Licensed under GNU GPL v2
For bug reports, read
OpenOCD: Bug Reporting
MPFS
Info : only one transport option; autoselect ‘jtag’
Info : Hardware thread awareness created
do_board_reset_init

In the shipped board files it does nothing, it’s for the user to add his own stuff into it. So if you want your custom logic/behaviour, then make your own custom OpenOCD board config file. Define what you need, and then the target config file will find out that the do_board_reset_init was defined and call it every time the board_reset_init is invoked.

1 Like