mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
SAMV71-XULT: Need to call sem_progmem_initialize() before using progmem MTD driver
This commit is contained in:
@@ -66,6 +66,10 @@
|
||||
# include "sam_qspi.h"
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_PROGMEM_CHARDEV
|
||||
# include "sam_progmem.h"
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_ROMFS
|
||||
# include <arch/board/boot_romfsimg.h>
|
||||
#endif
|
||||
@@ -274,6 +278,10 @@ int sam_bringup(void)
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_PROGMEM_CHARDEV
|
||||
/* Initialize the SAMV71 FLASH programming memory library */
|
||||
|
||||
sam_progmem_initialize();
|
||||
|
||||
/* Create an instance of the SAMV71 FLASH program memory device driver */
|
||||
|
||||
mtd = progmem_initialize();
|
||||
|
||||
Reference in New Issue
Block a user