diff --git a/components/drivers/spi/sfud/inc/sfud_cfg.h b/components/drivers/spi/sfud/inc/sfud_cfg.h index 61225ecf62..eb79f84dc3 100644 --- a/components/drivers/spi/sfud/inc/sfud_cfg.h +++ b/components/drivers/spi/sfud/inc/sfud_cfg.h @@ -57,6 +57,6 @@ #error "Please configure RT_SFUD_USING_SFDP or RT_SFUD_USING_FLASH_INFO_TABLE at least one kind of mode (in rtconfig.h)." #endif -#define SFUD_FLASH_DEVICE_TABLE NULL +#define SFUD_FLASH_DEVICE_TABLE {0} #endif /* _SFUD_CFG_H_ */ diff --git a/components/drivers/spi/spi_flash_sfud.c b/components/drivers/spi/spi_flash_sfud.c index 1df8c4023c..427673378c 100644 --- a/components/drivers/spi/spi_flash_sfud.c +++ b/components/drivers/spi/spi_flash_sfud.c @@ -501,7 +501,7 @@ static void sf(uint8_t argc, char **argv) { } } else if (!rt_strcmp(operator, "bench")) { if ((argc > 2 && rt_strcmp(argv[2], "yes")) || argc < 3) { - rt_kprintf("DANGER: It will erase full chip! Please run 'sf bench yes'."); + rt_kprintf("DANGER: It will erase full chip! Please run 'sf bench yes'.\n"); return; } /* full chip benchmark test */