@@ -199,10 +199,24 @@ esp_gmf_err_t esp_gmf_afe_manager_create(esp_gmf_afe_manager_cfg_t *cfg, esp_gmf
199199 & afe_manager -> fetch .task );
200200 ESP_GOTO_ON_FALSE (afe_manager -> fetch .task , ESP_GMF_ERR_MEMORY_LACK , __err , TAG , "Create afe fetch task failed" );
201201#else
202- xTaskCreatePinnedToCore (feed_task , "afe_feed" , cfg -> feed_stack , afe , cfg -> feed_prio , & afe_manager -> feed .task , cfg -> feed_core );
202+ ESP_LOGW (TAG , "The AFE Manager may not work when PSRAM is disabled" );
203+
204+ xTaskCreatePinnedToCore (feed_task ,
205+ "afe_feed" ,
206+ cfg -> feed_task_setting .stack_size ,
207+ afe_manager ,
208+ cfg -> feed_task_setting .prio ,
209+ & afe_manager -> feed .task ,
210+ cfg -> feed_task_setting .core );
203211 ESP_GOTO_ON_FALSE (afe_manager -> feed .task , ESP_GMF_ERR_MEMORY_LACK , __err , TAG , "Create afe feed task failed" );
204212
205- xTaskCreatePinnedToCore (fetch_task , "afe_fetch" , cfg -> fetch_stack , afe , cfg -> fetch_prio , & afe_manager -> fetch .task , cfg -> fetch_core );
213+ xTaskCreatePinnedToCore (fetch_task ,
214+ "afe_fetch" ,
215+ cfg -> fetch_task_setting .stack_size ,
216+ afe_manager ,
217+ cfg -> fetch_task_setting .prio ,
218+ & afe_manager -> fetch .task ,
219+ cfg -> fetch_task_setting .core );
206220 ESP_GOTO_ON_FALSE (afe_manager -> fetch .task , ESP_GMF_ERR_MEMORY_LACK , __err , TAG , "Create afe fetch task failed" );
207221#endif /* (configSUPPORT_STATIC_ALLOCATION == 1) */
208222
0 commit comments