Search found 15 matches

by yonip94
Sun Aug 07, 2022 12:44 pm
Forum: ESP-IDF
Topic: operations in different cores influence each other if 1 of those writes to memory
Replies: 11
Views: 4909

Re: operations in different cores influence each other if 1 of those writes to memory

[Edited] Hello again, As you asked i send to you my code, in the attached file. I removed a lot of unnecessary things & irrelevant files. Hope that now, it will be easy to follow with minimum stuffs. Also i uploaded a YouTube video, i created in order to show and explain my code parts, and its resul...
by yonip94
Fri Aug 05, 2022 7:00 am
Forum: ESP-IDF
Topic: operations in different cores influence each other if 1 of those writes to memory
Replies: 11
Views: 4909

Re: operations in different cores influence each other if 1 of those writes to memory

Thanks, ill ask my boss in sunday, and update.
Good weekend,
Yoni
by yonip94
Thu Aug 04, 2022 1:14 pm
Forum: ESP-IDF
Topic: operations in different cores influence each other if 1 of those writes to memory
Replies: 11
Views: 4909

Re: operations in different cores influence each other if 1 of those writes to memory

Hey, yes - please have a look on the NVS task esp_err_t NVS_task_start(void) { ----if (pdPASS != xTaskCreatePinnedToCore( ------------------------------------------------------------nvs_task_L,///////////////////////////Task function ------------------------------------------------------------"nvs_t...
by yonip94
Thu Aug 04, 2022 6:31 am
Forum: ESP-IDF
Topic: operations in different cores influence each other if 1 of those writes to memory
Replies: 11
Views: 4909

Re: operations in different cores influence each other if 1 of those writes to memory

Hey again ESP_sprite very very thanks for your replying to me! so from main.c i call this function, to start task of toggling the gpio: void gpio_toggle_task_start(void) { ----TaskHandle_t task_handle_io; ----xTaskCreatePinnedToCore( --------------------------------------------gpio_toggle,//////////...
by yonip94
Wed Aug 03, 2022 12:39 pm
Forum: ESP-IDF
Topic: operations in different cores influence each other if 1 of those writes to memory
Replies: 11
Views: 4909

Re: operations in different cores influence each other if 1 of those writes to memory

Unfortunately we cannot use external flash to solve easily the problem cause lack of space, so i tried the other suggest, but still not works, am i miss something? I prepared new code that uses 1 task per each core. core 0, (in flash), cache ENABLE for this core - erase sector every 1ms + set gpio 1...
by yonip94
Wed Aug 03, 2022 8:07 am
Forum: ESP-IDF
Topic: How to skip a function if timeout elapsed in background
Replies: 8
Views: 4111

Re: How to skip a function if timeout elapsed in background

ESP_Sprite, very thanks! ill give it a try :)
by yonip94
Wed Aug 03, 2022 7:22 am
Forum: ESP-IDF
Topic: How to skip a function if timeout elapsed in background
Replies: 8
Views: 4111

Re: How to skip a function if timeout elapsed in background

ESP_Sprite - thanks for your answer!
thanks for this advice, i understand why it can be risky to use it.
maybe something else that is not using freertos? even some of the main esp32 api's?
as you know, is there anything that can support it?
thanks again for your interest in my questions!
Yoni
by yonip94
Wed Aug 03, 2022 5:54 am
Forum: ESP-IDF
Topic: How to put code in the sram but not in the external flash
Replies: 2
Views: 1210

Re: How to put code in the sram but not in the external flash

ESP_Sprite, thanks a lot for your interest and your fast reply. The problem i try to solve is: While using esp_partition_erase_range function to erase a sector (using core 0), still perform operations in parallel using core 1. as mentioned in this topic: https://esp32.com/viewtopic.php?f=13&t=28892&...
by yonip94
Tue Aug 02, 2022 4:20 pm
Forum: ESP-IDF
Topic: How to skip a function if timeout elapsed in background
Replies: 8
Views: 4111

Re: How to skip a function if timeout elapsed in background

ESP_Sprite, very thanks for your answer! My question was that if i'm already INSIDE a function, skip from performing it if the defined timeout ticks elapsed. ill give you another example: imagine you call a function that should sample a sensor every 1ms, but the sensor is not giving you answer even ...
by yonip94
Tue Aug 02, 2022 4:08 pm
Forum: ESP-IDF
Topic: How to skip a function if timeout elapsed in background
Replies: 8
Views: 4111

Re: How to skip a function if timeout elapsed in background

Zeni241 - thanks a lot for your answer, i have searched on it but i didnt find any function to help i found very "close" function that is doing the not of the function i need: xTimerPendFunctionCall() but this function will be performed after the time i define - so its not this. i wonder if you can ...