mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-15 23:53:12 +00:00
This is a simple shell module that allows arbitrary boards with flash driver support to explore the flash device. - Reading, erasing, and writing by device offsets are supported in all cases. - If the flash page layout is available, it can be printed, and I/O can also be done to a specified page as well. One known issue is that writing to flash on targets that require doubleword-sized writes (e.g STM32L4) will fail since the number of arguments required exceeds ARGC_MAX in shell.c. Addressing that is left to future work. Signed-off-by: Marti Bolivar <marti.bolivar@linaro.org>
14 lines
356 B
Plaintext
14 lines
356 B
Plaintext
CONFIG_PRINTK=y
|
|
CONFIG_CONSOLE_SHELL=y
|
|
CONFIG_KERNEL_SHELL=y
|
|
CONFIG_STDOUT_CONSOLE=y
|
|
CONFIG_FLASH=y
|
|
# Your flash driver may not enable this, even if it's supported.
|
|
# If that's the case and you're interested in the flash layout, enable
|
|
# it here.
|
|
# CONFIG_FLASH_PAGE_LAYOUT=y
|
|
CONFIG_MPU_ALLOW_FLASH_WRITE=y
|
|
|
|
CONFIG_SYS_LOG=y
|
|
CONFIG_SYS_LOG_DEFAULT_LEVEL=4
|