报错 :Register I2S Interrupt error

mnjhuy86
Posts: 26
Joined: Fri Jun 05, 2020 8:10 am

报错 :Register I2S Interrupt error

Postby mnjhuy86 » Mon Jun 15, 2020 2:01 pm

Code: Select all

        err = i2s_isr_register(i2s_num, i2s_config->intr_alloc_flags, i2s_intr_handler_default, p_i2s_obj[i2s_num], &p_i2s_obj[i2s_num]->i2s_isr_handle);
        if (err != ESP_OK) {
#ifdef CONFIG_PM_ENABLE
            if (p_i2s_obj[i2s_num]->pm_lock) {
                esp_pm_lock_delete(p_i2s_obj[i2s_num]->pm_lock);
            }
#endif
            free(p_i2s_obj[i2s_num]);
            p_i2s_obj[i2s_num] = NULL;
            ESP_LOGE(I2S_TAG, "Register I2S Interrupt error");
            return err;
        }

Code: Select all

    ESP_LOGI(TAG, "[2.2] Create i2s stream to write data to codec chip");
    i2s_stream_cfg_t i2s_cfg = I2S_STREAM_CFG_DEFAULT();
    i2s_stream_writer = i2s_stream_init(&i2s_cfg);
    while(i2s_stream_writer == NULL)
    {
        ESP_LOGI(TAG, "[2.2] Create i2s stream failed ");
        vTaskDelay(10 / portTICK_RATE_MS);
        i2s_stream_writer = i2s_stream_init(&i2s_cfg);
    }
i2s_stream_writer = i2s_stream_init(&i2s_cfg);一直初始化失败
报错 :Register I2S Interrupt error

Who is online

Users browsing this forum: No registered users and 92 guests