Search found 7 matches

by TibiToz
Mon Jan 16, 2023 8:28 am
Forum: ESP-IDF
Topic: APLL is occupied when using i2s in esp-idf 5.0
Replies: 2
Views: 1955

APLL is occupied when using i2s in esp-idf 5.0

Hi, i'm trying to update my project from esp-idf 4.3 to esp-idf 5.0 and i'm struggling with the i2s drivers and more precisely with the APLL. In 4.3 we had to use apll to avoid clicks in audio signal. I read the documentation and it seems that the APLL can be used by other drivers and we need to ens...
by TibiToz
Mon Sep 05, 2022 5:50 am
Forum: ESP-IDF
Topic: SHA256 of .bin doesn't match get_sha256_of_partition()
Replies: 2
Views: 2264

Re: SHA256 of .bin doesn't match get_sha256_of_partition()

Is there a way to reproduce the digest given by bootloader_common_get_sha256_of_partition() at compile time or after compile time ?
by TibiToz
Thu Sep 01, 2022 8:01 am
Forum: ESP-IDF
Topic: SHA256 of .bin doesn't match get_sha256_of_partition()
Replies: 2
Views: 2264

SHA256 of .bin doesn't match get_sha256_of_partition()

Hey I'm currently working on the OTA side of my project. I have different hardware targets and my build script generates different .bin for each targets. When a new firmware is released, the .bin goes to a server wich provides the files for OTA. Of course I wanted to automate the build / release pro...
by TibiToz
Thu Mar 24, 2022 10:38 am
Forum: ESP-IDF
Topic: FreeRTOS heap allocation at compile time.
Replies: 1
Views: 1933

FreeRTOS heap allocation at compile time.

I'm monitoring my heap usage with esp_get_free_heap_size() during the program's lifetime. I have noticed a strange behavior (at least for my level of comprehension of the FreeRTOS). Let's assume these simple lines of code : if ( 1 > 2) { xTaskCreate(&myTask); } Obviously the condition will never be ...
by TibiToz
Mon Dec 21, 2020 8:43 am
Forum: ESP-IDF
Topic: Copy components in new dir when building
Replies: 1
Views: 2555

Copy components in new dir when building

Hi, I want to modify some esp-idf components for a specific project and dont change the sdk's original component. The perfect way for me would be to : - Build the project; The usefull esp-idf includes components are cloned in a new project's directory. - Modifiy the cloned components as i want. - Re...
by TibiToz
Tue Dec 08, 2020 11:02 am
Forum: ESP-IDF
Topic: Generate tick from XTHAL_GET_CCOUNT.
Replies: 0
Views: 3278

Generate tick from XTHAL_GET_CCOUNT.

#define TICK_COUNT_1KHZ (CPU_FREQ / TICK_FREQ) void Init_Xthal_Count ( void ) { xthal_val_i = XTHAL_GET_CCOUNT(); } void Get_Tick_From_Xthal ( void ) { if( (XTHAL_GET_CCOUNT() - xthal_val_i) > TICK_COUNT_1KHZ ) { xthal_val_i = XTHAL_GET_CCOUNT(); Tick1ms_u8 = 1U; } else { Tick1ms_u8 = 0U; } } void ...
by TibiToz
Mon Aug 10, 2020 2:10 pm
Forum: ESP-IDF
Topic: ESP32 - interrupt handling issue.
Replies: 1
Views: 2557

ESP32 - interrupt handling issue.

Hi, I'm quite new to C and the embedded world, i'm trying to do an interrupt on GPIO36 and GPIO39 (these pins can't be changed). I hardware pull high both of the pins with a 10k Resistance. I used the ESP-IDF example : Here is my initialisation : #define RESET_BUTTON_0 GPIO_NUM_36 #define RESET_BUTT...