aboutsummaryrefslogblamecommitdiff
path: root/rpc_client_serial.c
blob: 34da8524f4b1fd5ee36e5122a301f6c45122fdce (plain) (tree)
generated by cgit v1.2.3 (git 2.25.1) at 2024-09-20 18:51:03 +0000
HAL_NVIC_SystemReset(); while (1) { ; } } else { cli_print(cli, "No loaded application found at %p (read 0x%x)", dfu_firmware, (unsigned int) *dfu_msp_ptr); } return CLI_OK; } void configure_cli_dfu(struct cli_def *cli) { struct cli_command *c; c = cli_register_command(cli, NULL, "dfu", NULL, 0, 0, NULL); cli_register_command(cli, c, "dump", cmd_dfu_dump, 0, 0, "Show the first 256 bytes of the loaded firmware"); cli_register_command(cli, c, "jump", cmd_dfu_jump, 0, 0, "Jump to the loaded firmware"); cli_register_command(cli, c, "erase", cmd_dfu_erase, 0, 0, "Erase the firmware memory (will crash the CLI)"); }