Copyright © https://mongoose-os.com

Mongoose OS Forum

frame

Does mos use the latest version of esp-idf?

The latest version of esp-idf adds support to I2S PDM ( I2S_MODE_PDM ).

I clone the lates mos, but It says I2S_MODE_PDM is not declared. I have include "driver/i2s.h"。

`error: 'I2S_MODE_PDM' undeclared (first use in this function)
         mode = mode | I2S_MODE_PDM;`

Does mos use the latest version of esp-idf?

Comments

  • aiferaifer China

    And how to use the latest version of esp-idf in mos local build?

  • rojerrojer Dublin, Ireland
    edited May 17

    we maintain our own fork of esp-idf, the source is here.
    current version of the build image is 2.0-r4, you can find the specific ESP-IDF included in it by looking at the corresponding branch, here.
    you can see that it was build from commit a41ac2d of the IDF with our patches on top.

  • aiferaifer China

    Thanks.
    current version of the build image 2.0-r4, I2S mode is:

    /**
         * @brief I2S Mode, defaut is I2S_MODE_MASTER | I2S_MODE_TX
         *
         */
        typedef enum {
            I2S_MODE_MASTER = 1,
            I2S_MODE_SLAVE = 2,
            I2S_MODE_TX = 4,
            I2S_MODE_RX = 8,
            I2S_MODE_DAC_BUILT_IN = 16
        } i2s_mode_t;

    and in the latest esp-idf , I2S mode is:

    typedef enum {
        I2S_MODE_MASTER = 1,
        I2S_MODE_SLAVE = 2,
        I2S_MODE_TX = 4,
        I2S_MODE_RX = 8,
        I2S_MODE_DAC_BUILT_IN = 16,       /*!< Output I2S data to built-in DAC, no matter the data format is 16bit or 32 bit, the DAC module will only take the 8bits from MSB*/
        //I2S_MODE_ADC_BUILT_IN = 32,     /*!< Currently not supported yet, will be added for the next version*/
        I2S_MODE_PDM = 64,
    } i2s_mode_t;

    When will the current version of the build image be upgraded?

  • rojerrojer Dublin, Ireland

    yeah, should be in the next few days. i'm waiting for a few changes to land upstream and will update the build image.

Sign In or Register to comment.