X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fflash%2Fnor%2Fstellaris.c;h=c855995f7d8129377f4efc0ee291f9f67bc73800;hb=16b6b5e7a86353dbc0c4823fe3d772c0faca7c1c;hp=7351aed950726f38b8dd3bf403f4edf12ccb88cb;hpb=42cb62cf3b47b982d6444948b483f9c6ce32de05;p=fw%2Fopenocd diff --git a/src/flash/nor/stellaris.c b/src/flash/nor/stellaris.c index 7351aed95..c855995f7 100644 --- a/src/flash/nor/stellaris.c +++ b/src/flash/nor/stellaris.c @@ -438,8 +438,7 @@ FLASH_BANK_COMMAND_HANDLER(stellaris_flash_bank_command) if (CMD_ARGC < 6) { - LOG_WARNING("incomplete flash_bank stellaris configuration"); - return ERROR_FLASH_BANK_INVALID; + return ERROR_COMMAND_SYNTAX_ERROR; } stellaris_info = calloc(sizeof(struct stellaris_flash_bank), 1); @@ -1351,8 +1350,7 @@ COMMAND_HANDLER(stellaris_handle_mass_erase_command) if (CMD_ARGC < 1) { - command_print(CMD_CTX, "stellaris mass_erase "); - return ERROR_OK; + return ERROR_COMMAND_SYNTAX_ERROR; } struct flash_bank *bank; @@ -1439,9 +1437,9 @@ done: static const struct command_registration stellaris_exec_command_handlers[] = { { .name = "mass_erase", + .usage = "", .handler = stellaris_handle_mass_erase_command, .mode = COMMAND_EXEC, - .usage = "bank_id", .help = "erase entire device", }, {