You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nuttx.apache.org by Flavio Castro Alves Filho <fl...@gmail.com> on 2021/03/21 15:11:14 UTC

Problem with SmartFS access

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

flavio.alves@gmail.com
Twitter: http://twitter.com/#!/fraviofii
LinkedIn profile: www.linkedin.com/in/flaviocastroalves

Re: Problem with SmartFS access

Posted by Flavio Castro Alves Filho <fl...@gmail.com>.
Hello Abdelatif,

At first, it didn't work.

But then I restarted the whole test and it is finally working.

Here is my output:

ABCDF
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>ls
/:
 dev/
 proc/
nsh>mount -t smartfs /dev/smart0 /mnt
nsh: mount: mount failed: 19
nsh>mksmartfs /dev/smart0
nsh>mount -t smartfs /dev/smart0 /mnt
nsh>cd /mnt
nsh>echo test > test.txt
nsh>ls
/mnt:
 test.txt
nsh>umount /mnt
nsh>ABCDF
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>mount -t smartfs /dev/smart0 /mnt
nsh>cd /mnt
nsh>ls
/mnt:
 test.txt
nsh>cat test.txt
test
nsh>

Thank you for your help.

Best regards,

Flavio

Em seg., 22 de mar. de 2021 às 09:55, Abdelatif Guettouche
<ab...@gmail.com> escreveu:
>
> Try: mount -t smartfs /dev/smart0 --> mount -t smartfs /dev/smart0 /mnt
>
> On Mon, Mar 22, 2021 at 1:17 PM Flavio Castro Alves Filho
> <fl...@gmail.com> wrote:
> >
> > Hello Alan,
> >
> > Enabling the CONFIG_BCH, I could finally run flash_eraseall and
> > mksmartfs commands.
> >
> > But the mount command is not working.
> >
> > Below there is my NuttX output:
> >
> > ABCDF
> > 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>flash_eraseall /dev/smart0
> > nsh>mksmartfs /dev/smart0
> > nsh>mount -t smartfs /dev/smart0
> > nsh: mount: mount failed: 15
> > nsh>cat /proc/fs/usage
> >   Filesystem    Size      Used  Available Mounted on
> >   procfs          0B        0B         0B /proc
> > nsh>
> >
> > And 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_BCH=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_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"
> >
> > Am I still missing anything?
> >
> > What I realized is that the /mnt directory is not showing when I list
> > the directories on the root. Is it normal?
> >
> > Best regards,
> >
> > Flavio
> >
> > Em dom., 21 de mar. de 2021 às 12:22, Alan Carvalho de Assis
> > <ac...@gmail.com> escreveu:
> > >
> > > 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 <fl...@gmail.com> 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
> > > >
> > > > flavio.alves@gmail.com
> > > > Twitter: http://twitter.com/#!/fraviofii
> > > > LinkedIn profile: www.linkedin.com/in/flaviocastroalves
> > > >
> >
> >
> >
> > --
> > Flavio de Castro Alves Filho
> >
> > flavio.alves@gmail.com
> > Twitter: http://twitter.com/#!/fraviofii
> > LinkedIn profile: www.linkedin.com/in/flaviocastroalves



-- 
Flavio de Castro Alves Filho

flavio.alves@gmail.com
Twitter: http://twitter.com/#!/fraviofii
LinkedIn profile: www.linkedin.com/in/flaviocastroalves

Re: Problem with SmartFS access

Posted by Abdelatif Guettouche <ab...@gmail.com>.
Try: mount -t smartfs /dev/smart0 --> mount -t smartfs /dev/smart0 /mnt

On Mon, Mar 22, 2021 at 1:17 PM Flavio Castro Alves Filho
<fl...@gmail.com> wrote:
>
> Hello Alan,
>
> Enabling the CONFIG_BCH, I could finally run flash_eraseall and
> mksmartfs commands.
>
> But the mount command is not working.
>
> Below there is my NuttX output:
>
> ABCDF
> 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>flash_eraseall /dev/smart0
> nsh>mksmartfs /dev/smart0
> nsh>mount -t smartfs /dev/smart0
> nsh: mount: mount failed: 15
> nsh>cat /proc/fs/usage
>   Filesystem    Size      Used  Available Mounted on
>   procfs          0B        0B         0B /proc
> nsh>
>
> And 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_BCH=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_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"
>
> Am I still missing anything?
>
> What I realized is that the /mnt directory is not showing when I list
> the directories on the root. Is it normal?
>
> Best regards,
>
> Flavio
>
> Em dom., 21 de mar. de 2021 às 12:22, Alan Carvalho de Assis
> <ac...@gmail.com> escreveu:
> >
> > 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 <fl...@gmail.com> 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
> > >
> > > flavio.alves@gmail.com
> > > Twitter: http://twitter.com/#!/fraviofii
> > > LinkedIn profile: www.linkedin.com/in/flaviocastroalves
> > >
>
>
>
> --
> Flavio de Castro Alves Filho
>
> flavio.alves@gmail.com
> Twitter: http://twitter.com/#!/fraviofii
> LinkedIn profile: www.linkedin.com/in/flaviocastroalves

Re: Problem with SmartFS access

Posted by Flavio Castro Alves Filho <fl...@gmail.com>.
Hello Alan,

Enabling the CONFIG_BCH, I could finally run flash_eraseall and
mksmartfs commands.

But the mount command is not working.

Below there is my NuttX output:

ABCDF
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>flash_eraseall /dev/smart0
nsh>mksmartfs /dev/smart0
nsh>mount -t smartfs /dev/smart0
nsh: mount: mount failed: 15
nsh>cat /proc/fs/usage
  Filesystem    Size      Used  Available Mounted on
  procfs          0B        0B         0B /proc
nsh>

And 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_BCH=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_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"

Am I still missing anything?

What I realized is that the /mnt directory is not showing when I list
the directories on the root. Is it normal?

Best regards,

Flavio

Em dom., 21 de mar. de 2021 às 12:22, Alan Carvalho de Assis
<ac...@gmail.com> escreveu:
>
> 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 <fl...@gmail.com> 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
> >
> > flavio.alves@gmail.com
> > Twitter: http://twitter.com/#!/fraviofii
> > LinkedIn profile: www.linkedin.com/in/flaviocastroalves
> >



-- 
Flavio de Castro Alves Filho

flavio.alves@gmail.com
Twitter: http://twitter.com/#!/fraviofii
LinkedIn profile: www.linkedin.com/in/flaviocastroalves

Re: Problem with SmartFS access

Posted by Abdelatif Guettouche <ab...@gmail.com>.
Please note that this issue has been fixed:
https://github.com/apache/incubator-nuttx-apps/pull/624

On Sun, Mar 21, 2021 at 6:03 PM Alan Carvalho de Assis
<ac...@gmail.com> wrote:
>
> Hi Greg and Anthony,
>
> On 3/21/21, Gregory Nutt <sp...@gmail.com> wrote:
> >
> >> ... what we can
> >> do to prevent these types of "side-effects" when people are touching the
> >> config system.
> >
> > The use of defconfig files implies that we never change default values
> > of configuration.  If someone does change the default value of a
> > configuration setting, then it effects ALL configurations that depend on
> > that default.  We need to catch this is the review step.   During
> > review, if we notice that there is a change to the default value of the
> > configuration setting, then we must insist that all defconfig files be
> > modified so that the previous configuration is not changed due to the
> > side-effect.
> >
> > CI cannot catch this.  As noted, the error does not occur until run
> > time.  A proper regression test would catch this but we do not do any
> > automated regression testing.  That is a major hole in the testing.
> >
>
> Yes, the CI cannot catch it, but using some QA Unit Tests running in
> the Linux simulator or QEMU we could catch it. Abdelatif tested the
> smartfs example in the "sim" board and the issue also happened.
>
> Of course it cannot catch all the issues, but at least most of the
> issues could be avoided using some basic tests.
>
> BR,
>
> Alan

Re: Problem with SmartFS access

Posted by spudaneco <sp...@gmail.com>.
Brute force testing is not a solution unless the testing is very complete and extensive.  Testing is not required for the case of m9dified default configuration settings.  A simple inspection of the Kconf files will detect the problem in all cases,Sent from my Galaxy
-------- Original message --------From: Alan Carvalho de Assis <ac...@gmail.com> Date: 3/21/21  11:03 AM  (GMT-06:00) To: dev@nuttx.apache.org Subject: Re: Problem with SmartFS access Hi Greg and Anthony,On 3/21/21, Gregory Nutt <sp...@gmail.com> wrote:>>> ... what we can>> do to prevent these types of "side-effects" when people are touching the>> config system.>> The use of defconfig files implies that we never change default values> of configuration.  If someone does change the default value of a> configuration setting, then it effects ALL configurations that depend on> that default.  We need to catch this is the review step.   During> review, if we notice that there is a change to the default value of the> configuration setting, then we must insist that all defconfig files be> modified so that the previous configuration is not changed due to the> side-effect.>> CI cannot catch this.  As noted, the error does not occur until run> time.  A proper regression test would catch this but we do not do any> automated regression testing.  That is a major hole in the testing.>Yes, the CI cannot catch it, but using some QA Unit Tests running inthe Linux simulator or QEMU we could catch it. Abdelatif tested thesmartfs example in the "sim" board and the issue also happened.Of course it cannot catch all the issues, but at least most of theissues could be avoided using some basic tests.BR,Alan

Re: Problem with SmartFS access

Posted by Alan Carvalho de Assis <ac...@gmail.com>.
Hi Greg and Anthony,

On 3/21/21, Gregory Nutt <sp...@gmail.com> wrote:
>
>> ... what we can
>> do to prevent these types of "side-effects" when people are touching the
>> config system.
>
> The use of defconfig files implies that we never change default values
> of configuration.  If someone does change the default value of a
> configuration setting, then it effects ALL configurations that depend on
> that default.  We need to catch this is the review step.   During
> review, if we notice that there is a change to the default value of the
> configuration setting, then we must insist that all defconfig files be
> modified so that the previous configuration is not changed due to the
> side-effect.
>
> CI cannot catch this.  As noted, the error does not occur until run
> time.  A proper regression test would catch this but we do not do any
> automated regression testing.  That is a major hole in the testing.
>

Yes, the CI cannot catch it, but using some QA Unit Tests running in
the Linux simulator or QEMU we could catch it. Abdelatif tested the
smartfs example in the "sim" board and the issue also happened.

Of course it cannot catch all the issues, but at least most of the
issues could be avoided using some basic tests.

BR,

Alan

Re: Problem with SmartFS access

Posted by Gregory Nutt <sp...@gmail.com>.
> ... what we can
> do to prevent these types of "side-effects" when people are touching the
> config system.

The use of defconfig files implies that we never change default values 
of configuration.  If someone does change the default value of a 
configuration setting, then it effects ALL configurations that depend on 
that default.  We need to catch this is the review step.   During 
review, if we notice that there is a change to the default value of the 
configuration setting, then we must insist that all defconfig files be 
modified so that the previous configuration is not changed due to the 
side-effect.

CI cannot catch this.  As noted, the error does not occur until run 
time.  A proper regression test would catch this but we do not do any 
automated regression testing.  That is a major hole in the testing.



Re: Problem with SmartFS access

Posted by Anthony Merlino <an...@vergeaero.com>.
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 <ac...@gmail.com>
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 <fl...@gmail.com> 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
> >
> > flavio.alves@gmail.com
> > Twitter: http://twitter.com/#!/fraviofii
> > LinkedIn profile: www.linkedin.com/in/flaviocastroalves
> >
>

Re: Problem with SmartFS access

Posted by Alan Carvalho de Assis <ac...@gmail.com>.
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 <fl...@gmail.com> 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
>
> flavio.alves@gmail.com
> Twitter: http://twitter.com/#!/fraviofii
> LinkedIn profile: www.linkedin.com/in/flaviocastroalves
>