Closed coollofty closed 1 year ago
I got exactly the same error in i2s_set_pin
, same LoadProhibited, same EXCVADDR. I didn't figure out why, but when I moved the task from core 0 to core 1, the error went away.
edit: I was using a component that set an interrupt routine. The problem went away when I disabled this component.
Sorry for not responding to your question in a timely manner! Since this problem has lost its time, I will close it after a week. If you still need to solve this problem, please leave a comment or open a new issue, thank you!
我使用如下代码停止了Camera: cam_deinit(); i2s_driver_uninstall(I2S_NUM_0); i2c_driver_delete(I2C_NUM_0);
然后再调用(代码来自web_tts工程的app_main.c): ESP_ERROR_CHECK(i2c_bus_init()); ESP_ERROR_CHECK(audio_init());
就会出错
错误是:E (27020) I2S: Register I2S Interrupt error
如果不对摄像头进行初始化,一上来直接调用音频的代码,是没有问题的。同样,如果先初始化音频,再销毁,然后再使用摄像头,cam_take函数将永远不会返回。