Mdash compatibility with ESP IDF 3.2.2

#1

Hi there,
I am using ESP32 WRover. I tried to use ESP IDF 3.2.2 that supposed to be backward compatible with ESP IDF 3.2.
Unfortunately, it doesn’t work - when starting the ESP32 board with minimal example, it is stuck with the following message:

    I (0) cpu_start: Starting scheduler on APP CPU.
    E (1102) wifi: invalid magic number 0, call WIFI_INIT_CONFIG_DEFAULT to init config
    E (1102) wifi: wifi_init_in_caller_task 715 ret=258
    1970-01-01 00:00:00 init_wifi2: esp_wifi_init(&cfg) failed

The main app is:
    void app_main()
    {
        // Initialize NVS
        esp_err_t ret = nvs_flash_init();
        if (ret == ESP_ERR_NVS_NO_FREE_PAGES || ret == ESP_ERR_NVS_NEW_VERSION_FOUND) 
        {
            ESP_ERROR_CHECK(nvs_flash_erase());
            ret = nvs_flash_init();
        }
        ESP_ERROR_CHECK( ret );
        mDashStartWithWifi(0, 0, DEVICE_ID, DEVICE_PASS);
    }

The same app starts fine with ESP IDF 3.2, although I have different issue with it that I will address separately.
Best regards,
Istvan.

#2

Looks like a version mismatch.
Let us add an API to return an IDF version, and print it during init.

#3

Any update on this topic?

#4

Yes, a new version is pushed (1.41), which has const char *mDashGetSdkVersion(void).

Also, the SDK version number is printed to the serial console upon startup:

1970-01-01 00:00:00 doinit: SDK version: v3.2-18-g977854975, log level: 2