Hey Alan, Can you point to the change? I'm curious how it happened, and what we can do to prevent these types of "side-effects" when people are touching the config system.
Best, Anthony On Sun, Mar 21, 2021 at 11:22 AM Alan Carvalho de Assis <[email protected]> wrote: > Hi Flavio, > > You need to enable also the CONFIG_BCH, some recent modification in > the BCH created this side-effect. > > BR, > > Alan > > On 3/21/21, Flavio Castro Alves Filho <[email protected]> wrote: > > Hello, > > > > I am trying to use my stm32f4discovery board with MX25L800 dataflash > > memory, through SPI and SmartFS file system. > > > > I installed a NuttX driver for this memory type and I am having > > problems making this memory work. I cannot format the memory. > > > > Here is the output on the console, with FS Debug enabled and the commands > > used: > > > > ABCDF > > smart_scan: Entry > > smart_scan: Scan sector 0 > > ... > > smart_scan: Scan sector 511 > > smart_fsck: Entry > > smart_fsck_directory: ERROR: Invalid phys sector 65535 > > smart_readsector: Entry > > smart_readsector: ERROR: Logical sector 0 not allocated > > smart_scan: SMART Scan > > smart_scan: Erase size: 4096 > > smart_scan: Erase count: 256 > > smart_scan: Sect/block: 2 > > smart_scan: MTD Blk/Sect: 8 > > SmartFS initialized > > INFO: mx25l MTD Flash driver initialized > > up_rtc_getdatetime: Warning: PCF8563 RTC integrity is not guaranteed > > (bit 7 in VL_SECONDS register is set) > > . > > NuttShell (NSH) NuttX-10.0.1 > > nsh>mksmartfs /dev/smart0 > > nsh: mksmartfs: mksmartfs failed: 2 > > nsh>flash_eraseall /dev/smart0 > > flash_eraseall: ERROR: Failed to open '/dev/smart0': 6 > > nsh> > > > > Can anybody give me any advice on where to start searching for the > > solution? > > > > Here is my configuration file: > > > > CONFIG_ARCH="arm" > > CONFIG_ARCH_BOARD="stm32f4discovery" > > CONFIG_ARCH_BOARD_STM32F4_DISCOVERY=y > > CONFIG_ARCH_CHIP="stm32" > > CONFIG_ARCH_CHIP_STM32=y > > CONFIG_ARCH_CHIP_STM32F407VG=y > > CONFIG_ARCH_STACKDUMP=y > > CONFIG_BOARDCTL_USBDEVCTRL=y > > CONFIG_BOARD_LATE_INITIALIZE=y > > CONFIG_BOARD_LOOPSPERMSEC=16717 > > CONFIG_BUILTIN=y > > CONFIG_C99_BOOL8=y > > CONFIG_CDCACM=y > > CONFIG_DEBUG_ERROR=y > > CONFIG_DEBUG_FEATURES=y > > CONFIG_DEBUG_FS=y > > CONFIG_DEBUG_FS_ERROR=y > > CONFIG_DEBUG_FS_INFO=y > > CONFIG_DEBUG_FS_WARN=y > > CONFIG_DEBUG_HARDFAULT_ALERT=y > > CONFIG_DEBUG_INFO=y > > CONFIG_DEBUG_WARN=y > > CONFIG_ETH0_PHY_LAN8742A=y > > CONFIG_EXAMPLES_TCPECHO=y > > CONFIG_FS_PROCFS=y > > CONFIG_FS_PROCFS_REGISTER=y > > CONFIG_FS_SMARTFS=y > > CONFIG_HAVE_CXX=y > > CONFIG_INTELHEX_BINARY=y > > CONFIG_LIBCXX=y > > CONFIG_LIBC_FLOATINGPOINT=y > > CONFIG_LIBC_LOCALTIME=y > > CONFIG_LIBM=y > > CONFIG_MAX_TASKS=16 > > CONFIG_MM_REGIONS=2 > > CONFIG_MTD=y > > CONFIG_MTD_MX25L=y > > CONFIG_MTD_SMART=y > > CONFIG_MTD_SMART_FSCK=y > > CONFIG_NET=y > > CONFIG_NETDB_DNSCLIENT=y > > CONFIG_NETDEV_PHY_IOCTL=y > > CONFIG_NETINIT_DHCPC=y > > CONFIG_NETINIT_DNS=y > > CONFIG_NETINIT_DNSIPADDR=0x08080808 > > CONFIG_NETINIT_NOMAC=y > > CONFIG_NETINIT_THREAD=y > > CONFIG_NETUTILS_DHCPC=y > > CONFIG_NET_BROADCAST=y > > CONFIG_NET_ICMP=y > > CONFIG_NET_ICMP_SOCKET=y > > CONFIG_NET_LOCAL=y > > CONFIG_NET_PKT=y > > CONFIG_NET_SOCKOPTS=y > > CONFIG_NET_TCP=y > > CONFIG_NET_TCPBACKLOG=y > > CONFIG_NET_TCP_KEEPALIVE=y > > CONFIG_NET_UDP=y > > CONFIG_NFILE_DESCRIPTORS=8 > > CONFIG_NSH_BUILTIN_APPS=y > > CONFIG_NSH_DISABLE_DATE=y > > CONFIG_NSH_DISABLE_IFCONFIG=y > > CONFIG_NSH_DISABLE_IFUPDOWN=y > > CONFIG_NSH_DISABLE_LOSMART=y > > CONFIG_NSH_DISABLE_PS=y > > CONFIG_NSH_FILEIOSIZE=512 > > CONFIG_PREALLOC_TIMERS=4 > > CONFIG_PSEUDOFS_SOFTLINKS=y > > CONFIG_RAM_SIZE=114688 > > CONFIG_RAM_START=0x20000000 > > CONFIG_RAW_BINARY=y > > CONFIG_RR_INTERVAL=200 > > CONFIG_RTC=y > > CONFIG_RTC_EXTERNAL=y > > CONFIG_RTC_PCF8563=y > > CONFIG_SCHED_HPWORK=y > > CONFIG_SCHED_ONEXIT=y > > CONFIG_SCHED_ONEXIT_MAX=4 > > CONFIG_SCHED_WAITPID=y > > CONFIG_SDCLONE_DISABLE=y > > CONFIG_SERIAL_TERMIOS=y > > CONFIG_STACK_CANARIES=y > > CONFIG_START_DAY=2 > > CONFIG_START_MONTH=11 > > CONFIG_START_YEAR=2012 > > CONFIG_STM32F4DISBB=y > > CONFIG_STM32_ETHMAC=y > > CONFIG_STM32_I2C1=y > > CONFIG_STM32_JTAG_SW_ENABLE=y > > CONFIG_STM32_OTGFS=y > > CONFIG_STM32_PHYADDR=0 > > CONFIG_STM32_PHYSR=31 > > CONFIG_STM32_PHYSR_100FD=0x0018 > > CONFIG_STM32_PHYSR_100HD=0x0008 > > CONFIG_STM32_PHYSR_10FD=0x0014 > > CONFIG_STM32_PHYSR_10HD=0x0004 > > CONFIG_STM32_PHYSR_ALTCONFIG=y > > CONFIG_STM32_PHYSR_ALTMODE=0x001c > > CONFIG_STM32_RMII_EXTCLK=y > > CONFIG_STM32_SPI1=y > > CONFIG_STM32_USART1=y > > CONFIG_STM32_USART2=y > > CONFIG_STM32_USART3=y > > CONFIG_SYMTAB_ORDEREDBYNAME=y > > CONFIG_SYSLOG_CONSOLE=y > > CONFIG_SYSTEM_FLASH_ERASEALL=y > > CONFIG_SYSTEM_NSH=y > > CONFIG_SYSTEM_PING=y > > CONFIG_USART1_SERIAL_CONSOLE=y > > CONFIG_USART2_RXBUFSIZE=128 > > CONFIG_USART2_TXBUFSIZE=128 > > CONFIG_USART3_2STOP=1 > > CONFIG_USART3_BAUD=9600 > > CONFIG_USART3_RS485=y > > CONFIG_USBDEV=y > > CONFIG_USER_ENTRYPOINT="nsh_main" > > > > Best regards, > > > > Flavio > > > > > > -- > > Flavio de Castro Alves Filho > > > > [email protected] > > Twitter: http://twitter.com/#!/fraviofii > > LinkedIn profile: www.linkedin.com/in/flaviocastroalves > > >
