From: OpenOCD-Gerrit <ope...@us...> - 2021-12-03 21:53:35
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Main OpenOCD repository". The branch, master has been updated via c07e4b37829067a872e2a52f9a490bd8903e66da (commit) via abd94b832524e84e1500aa9dac85e0423a62b32d (commit) from 55da5b47cba1de8e99bda8d71c721da24d1bf1d4 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit c07e4b37829067a872e2a52f9a490bd8903e66da Author: Tomas Vanek <va...@fb...> Date: Sat Nov 20 13:36:00 2021 +0100 doc: document 'atsamv gpnvm' command Change-Id: I922c75e2d074447558f85bfda5421aa24a850be1 Signed-off-by: Tomas Vanek <va...@fb...> Reviewed-on: https://review.openocd.org/c/openocd/+/6729 Tested-by: jenkins Reviewed-by: Antonio Borneo <bor...@gm...> diff --git a/doc/openocd.texi b/doc/openocd.texi index 4b93a896c..ccad381b2 100644 --- a/doc/openocd.texi +++ b/doc/openocd.texi @@ -6184,6 +6184,21 @@ USER PAGE: 0xAEECFF80FE9A9239 All members of the ATSAMV7x, ATSAMS70, and ATSAME70 families from Atmel include internal flash and use ARM's Cortex-M7 core. This driver uses the same command names/syntax as @xref{at91sam3}. + +@example +flash bank $_FLASHNAME atsamv 0x00400000 0 0 0 $_TARGETNAME +@end example + +@deffn {Command} {atsamv gpnvm} [@option{show} [@option{all}|number]] +@deffnx {Command} {atsamv gpnvm} (@option{clr}|@option{set}) number +With no parameters, @option{show} or @option{show all}, +shows the status of all GPNVM bits. +With @option{show} @var{number}, displays that bit. + +With @option{set} @var{number} or @option{clear} @var{number}, +modifies that GPNVM bit. +@end deffn + @end deffn @deffn {Flash Driver} {at91sam7} commit abd94b832524e84e1500aa9dac85e0423a62b32d Author: Tomas Vanek <va...@fb...> Date: Sat Nov 20 11:44:55 2021 +0100 flash/nor/kinetis_ke: remove 'kinetis mdm test_securing' cmd The command might be a leftover from development of the driver. There is no documentation what it does. Change-Id: Iaa5aa1ac51638bd6acce172a5dd03846a165dc27 Signed-off-by: Tomas Vanek <va...@fb...> Reviewed-on: https://review.openocd.org/c/openocd/+/6728 Tested-by: jenkins Reviewed-by: Ivan-Artekit <iv...@ar...> diff --git a/src/flash/nor/kinetis_ke.c b/src/flash/nor/kinetis_ke.c index 225dc6f07..48749e617 100644 --- a/src/flash/nor/kinetis_ke.c +++ b/src/flash/nor/kinetis_ke.c @@ -933,39 +933,6 @@ static int kinetis_ke_ftmrx_command(struct flash_bank *bank, uint8_t count, return ERROR_OK; } -COMMAND_HANDLER(kinetis_ke_securing_test) -{ - int result; - struct target *target = get_current_target(CMD_CTX); - struct flash_bank *bank = NULL; - uint32_t address; - - uint8_t FCCOBIX[2], FCCOBHI[2], FCCOBLO[2], fstat; - - result = get_flash_bank_by_addr(target, 0x00000000, true, &bank); - if (result != ERROR_OK) - return result; - - assert(bank); - - if (target->state != TARGET_HALTED) { - LOG_ERROR("Target not halted"); - return ERROR_TARGET_NOT_HALTED; - } - - address = bank->base + 0x00000400; - - FCCOBIX[0] = 0; - FCCOBHI[0] = FTMRX_CMD_ERASESECTOR; - FCCOBLO[0] = address >> 16; - - FCCOBIX[1] = 1; - FCCOBHI[1] = address >> 8; - FCCOBLO[1] = address; - - return kinetis_ke_ftmrx_command(bank, 2, FCCOBIX, FCCOBHI, FCCOBLO, &fstat); -} - static int kinetis_ke_erase(struct flash_bank *bank, unsigned int first, unsigned int last) { @@ -1252,13 +1219,6 @@ static const struct command_registration kinetis_ke_security_command_handlers[] .usage = "", .handler = kinetis_ke_mdm_mass_erase, }, - { - .name = "test_securing", - .mode = COMMAND_EXEC, - .help = "", - .usage = "", - .handler = kinetis_ke_securing_test, - }, COMMAND_REGISTRATION_DONE }; ----------------------------------------------------------------------- Summary of changes: doc/openocd.texi | 15 +++++++++++++++ src/flash/nor/kinetis_ke.c | 40 ---------------------------------------- 2 files changed, 15 insertions(+), 40 deletions(-) hooks/post-receive -- Main OpenOCD repository |