esp_console_repl_task pin to core

tetanus
Posts: 1
Joined: Tue Jan 23, 2024 2:22 pm

esp_console_repl_task pin to core

Postby tetanus » Tue Jan 23, 2024 2:29 pm

Is it possible to get an update to the console repl to enable the task to be pinned to a core from the calling function?

Code: Select all

esp_err_t esp_console_new_repl_usb_serial_jtag(const esp_console_dev_usb_serial_jtag_config_t *dev_config, const esp_console_repl_config_t *repl_config, esp_console_repl_t **ret_repl, BaseType_t xCoreID)

Code: Select all

    /* spawn a single thread to run REPL */
    if /*(xTaskCreate(esp_console_repl_task, "console_repl", repl_config->task_stack_size,
                    usb_serial_jtag_repl, repl_config->task_priority, &usb_serial_jtag_repl->repl_com.task_hdl) != pdTRUE) {*/
        (xTaskCreatePinnedToCore(esp_console_repl_task, "console_repl", repl_config->task_stack_size,
                    usb_serial_jtag_repl, repl_config->task_priority, &usb_serial_jtag_repl->repl_com.task_hdl, 0) != pdTRUE) {
        ret = ESP_FAIL;
        goto _exit;
    }

Who is online

Users browsing this forum: Baidu [Spider] and 132 guests