esp32+IDF V5.1.1版本编译freertos报错

 error: 'portTICK_RATE_MS' undeclared (first use in this function); did you mean 'portTICK_PERIOD_MS

解决方法:

使用命令 idf.py menuconfig 打开配置界面配置freeRtos     

使能configENABLE_BACKWARD_COMPATIBLITY

esp32+IDF V5.1.1版本编译freertos报错_第1张图片

你可能感兴趣的:(ESP32入门教程,esp32)