🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    lovyan launcher doesn't compile on M5Stack basic

    Arduino
    2
    4
    4.5k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      cepics
      last edited by cepics

      Hi all,

      arduino IDE 2.0.1 doesn't compile M5Stack_LovyanLauncher sketch with this error:
      (this is only the "red" part of the output)

      In file included from C:\Users\Documents\Arduino\libraries\M5Stack_LovyanLauncher\LovyanLauncher\LovyanLauncher.ino:43:
      C:\Users\Documents\Arduino\libraries\M5Stack_LovyanLauncher\LovyanLauncher\src\WiFiWPS.h: In member function 'void WiFiWPS::wpsInitConfig()':
      C:\Users\Documents\Arduino\libraries\M5Stack_LovyanLauncher\LovyanLauncher\src\WiFiWPS.h:23:16: error: 'struct esp_wps_config_t' has no member named 'crypto_funcs'
           wps_config.crypto_funcs = &g_wifi_default_wps_crypto_funcs;
                      ^~~~~~~~~~~~
      C:\Users\Documents\Arduino\libraries\M5Stack_LovyanLauncher\LovyanLauncher\src\WiFiWPS.h:23:32: error: 'g_wifi_default_wps_crypto_funcs' was not declared in this scope
           wps_config.crypto_funcs = &g_wifi_default_wps_crypto_funcs;
                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      C:\Users\Documents\Arduino\libraries\M5Stack_LovyanLauncher\LovyanLauncher\src\WiFiWPS.h: In member function 'virtual bool WiFiWPS::setup()':
      C:\Users\Documents\Arduino\libraries\M5Stack_LovyanLauncher\LovyanLauncher\src\WiFiWPS.h:100:37: error: no matching function for call to 'onEvent(void (&)(arduino_event_id_t, system_event_info_t))'
           onevent = WiFi.onEvent(WiFiEvent);
                                           ^
      In file included from C:\Users\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.5\libraries\WiFi\src/WiFiSTA.h:28,
                       from C:\Users\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.5\libraries\WiFi\src/WiFi.h:32,
                       from c:\Users\Documents\Arduino\libraries\M5Stack_TreeView\src/MenuItemWiFiClient.h:4,
                       from C:\Users\Documents\Arduino\libraries\M5Stack_LovyanLauncher\LovyanLauncher\LovyanLauncher.ino:31:
      C:\Users\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.5\libraries\WiFi\src/WiFiGeneric.h:159:21: note: candidate: 'wifi_event_id_t WiFiGenericClass::onEvent(WiFiEventCb, arduino_event_id_t)' <near match>
           wifi_event_id_t onEvent(WiFiEventCb cbEvent, arduino_event_id_t event = ARDUINO_EVENT_MAX);
                           ^~~~~~~
      C:\Users\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.5\libraries\WiFi\src/WiFiGeneric.h:159:21: note:   conversion of argument 1 would be ill-formed:
      In file included from C:\Users\Documents\Arduino\libraries\M5Stack_LovyanLauncher\LovyanLauncher\LovyanLauncher.ino:43:
      C:\Users\Documents\Arduino\libraries\M5Stack_LovyanLauncher\LovyanLauncher\src\WiFiWPS.h:100:37: error: invalid conversion from 'void (*)(arduino_event_id_t, system_event_info_t)' to 'WiFiEventCb' {aka 'void (*)(arduino_event_id_t)'} [-fpermissive]
           onevent = WiFi.onEvent(WiFiEvent);
                                           ^
      In file included from C:\Users\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.5\libraries\WiFi\src/WiFiSTA.h:28,
                       from C:\Users\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.5\libraries\WiFi\src/WiFi.h:32,
                       from c:\Users\Documents\Arduino\libraries\M5Stack_TreeView\src/MenuItemWiFiClient.h:4,
                       from C:\Users\Documents\Arduino\libraries\M5Stack_LovyanLauncher\LovyanLauncher\LovyanLauncher.ino:31:
      C:\Users\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.5\libraries\WiFi\src/WiFiGeneric.h:161:21: note: candidate: 'wifi_event_id_t WiFiGenericClass::onEvent(WiFiEventSysCb, arduino_event_id_t)' <near match>
           wifi_event_id_t onEvent(WiFiEventSysCb cbEvent, arduino_event_id_t event = ARDUINO_EVENT_MAX);
                           ^~~~~~~
      C:\Users\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.5\libraries\WiFi\src/WiFiGeneric.h:161:21: note:   conversion of argument 1 would be ill-formed:
      In file included from C:\Users\Documents\Arduino\libraries\M5Stack_LovyanLauncher\LovyanLauncher\LovyanLauncher.ino:43:
      C:\Users\Documents\Arduino\libraries\M5Stack_LovyanLauncher\LovyanLauncher\src\WiFiWPS.h:100:37: error: invalid conversion from 'void (*)(arduino_event_id_t, system_event_info_t)' to 'WiFiEventSysCb' {aka 'void (*)(arduino_event_t*)'} [-fpermissive]
           onevent = WiFi.onEvent(WiFiEvent);
                                           ^
      Multiple libraries were found for "SD.h"
        Used: C:\Users\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.5\libraries\SD
        Not used: C:\Users\AppData\Local\Arduino15\libraries\SD
      exit status 1
      
      Compilation error: 'struct esp_wps_config_t' has no member named 'crypto_funcs'
      

      all the libraries are up to date....

      I could upload the code with M5burner, but I need to modify the clock of the sd card in M5Stack.cpp from 40Mhz to 10Mhz to work with M5stack basic....

      some tips?

      tnks a lot

      1 Reply Last reply Reply Quote 0
      • C
        cepics
        last edited by

        nobody?!?!

        1 Reply Last reply Reply Quote 0
        • ajb2k3A
          ajb2k3
          last edited by

          @lovyan03 are you still here?

          UIFlow, so easy an adult can learn it!
          If I don't know it, be patient!
          I've ether not learned it or am too drunk to remember it!
          Author of the WIP UIFlow Handbook!
          M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

          1 Reply Last reply Reply Quote 2
          • C
            cepics
            last edited by

            yes!!

            1 Reply Last reply Reply Quote 0
            • First post
              Last post