1. *** New version of B4J is available ***
    B4J v7.8
    Dismiss Notice

B4R Question [SOLVED]rESP8266FileSystem v1.11 compatible with ESP8266 V2.5.0?

Discussion in 'B4R Questions' started by bdunkleysmith, May 23, 2019.

  1. bdunkleysmith

    bdunkleysmith Active Member Licensed User

    Previously functional code, of which this is an extract:

    Sub Process_Globals
    Public Serial1 As Serial
    Private usocket As WiFiUDP
    Private wifi As ESP8266WiFi
    Private fs As ESP8266FileSystem
    Private ip(4As Byte
    Private port As UInt = 3661
    Private astream As AsyncStreams
    Private bc As ByteConverter
    Private lcd As LiquidCrystal
    Private PIN_A0, PIN_CLK, PIN_DATA As Pin
    Private btnValues() As UInt = Array As UInt(501803305208201025' RIGHT, UP, DOWN, LEFT, SELECT, NO BUTTON
        Private btn As UInt
    End Sub

    Private Sub AppStart
    162552Array As Byte (12131415))
        PIN_A0.Initialize(PIN_A0.A0, PIN_A0.MODE_INPUT)
    "PIN_CLK_StateChanged")        'in lieu of attachInterrupt(1, clkStatusFall, FALLING)
    If(fs.initialize) Then
    Log("File system successfully initialized")
    Log("Could not initialize filesystem")
    End If
    End Sub
    cannot now initialize the file system.

    Has anyone else encountered an issue with rESP8266FileSystem since updating the ESP8266 SDK?

    Note that I am using ESP8266 V2.5.0 because updating it to the latest version (2.5.2) appears to cause problems with rESP8266WiFi V1.4
  2. thetahsk

    thetahsk Active Member Licensed User

    Try to format (fs.Format) your filesystem before you call fs.initialize.
    Note that this can take more than a minute to complete.
    Last edited: May 23, 2019
  3. bdunkleysmith

    bdunkleysmith Active Member Licensed User

    My bad as the young people say!

    I hadn't noticed in the updated Board Selector dialog box that I had selected an option (eesz) without an allocation for SPIFFS, ie. 4M.

    Changing that to 4M1M resolved the problem:


    Thanks for letting me use this community as a sounding board.
    Last edited: May 24, 2019
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice