Search found 10 matches

by vgonet
Fri May 17, 2019 12:50 pm
Forum: General Discussion
Topic: Timer Groups issue
Replies: 0
Views: 220

Timer Groups issue

Hello I try to use timer groups in my project and I have strange behaviors (I2C that crashes, program that crashes)... Currently ISR are registred in my code in this way. Is this the right way to do it or should another interruption priority be used? if (timerNum == TIMER_GROUP_0) { timer_isr_regist...
by vgonet
Thu May 09, 2019 8:38 am
Forum: ESP32 ADF
Topic: Recording sounds without external codec
Replies: 5
Views: 771

Recording sounds without external codec

Hello, I would like to record sounds and save them into the SPI flash but I don't have an external codec. I just have an analog input connected to a microphone. Is it possible to adapt the example esp-adf/examples/audio_processing/pipeline_spiffs_amr_resample/ to realize this functionality? Best reg...
by vgonet
Fri Apr 26, 2019 9:38 am
Forum: ESP32 ADF
Topic: ESP-IDF version of ESP-ADF
Replies: 0
Views: 371

ESP-IDF version of ESP-ADF

Hello, I'm working on a project which use the ESP-IDF in version 3.1.4 (or 3.2). Now I want to add sound features in my project so I want to use ESP-ADF but ESP-IDF version of ESP-ADF is only 3.1. My question is: When ESP-IDF version of ESP-ADF will be updated to version 3.1.4 or higher ? Thank you ...
by vgonet
Wed Feb 06, 2019 7:46 am
Forum: ESP32 ADF
Topic: Play MP3 files in FreeRTOS tasks
Replies: 2
Views: 1081

Re: Play MP3 files in FreeRTOS tasks

Hello, In attachment, you can see a part of my code. the task "sensor" is called every 125us through a notification given by a timer interrupt (see in timer.c, static void IRAM_ATTR ISR_TimerGroup0(void* para)). - When the line 130 of main.c is commented and the task "sound" (lines 145 to 154 of mai...
by vgonet
Wed Jan 16, 2019 9:25 am
Forum: ESP32 ADF
Topic: Play MP3 files in FreeRTOS tasks
Replies: 2
Views: 1081

Play MP3 files in FreeRTOS tasks

Hello, I'm trying to play mp3 files based on the example https://github.com/espressif/esp-adf/tree/master/examples/get-started/play_mp3_dac. I've only 1 DAC channel available (GPIO25). So I've created a custom DAC configuration. #define I2S_STREAM_INTERNAL_DAC_CFG_CUSTOM() { \ .type = AUDIO_STREAM_W...
by vgonet
Thu Dec 20, 2018 9:30 am
Forum: General Discussion
Topic: WIFI vs Semaphore
Replies: 8
Views: 1393

Re: WIFI vs Semaphore

Hello,

In attachments, you will find the code that show my problem between WIFI and semaphore. I hope this simple example will help us.

To "solve" the problem, you have to open menuconfig and change the core ID:
Component config -> Wi-Fi -> WiFi Task Core ID

Thank you and best regards !!!
Vincent
by vgonet
Wed Dec 19, 2018 1:28 pm
Forum: General Discussion
Topic: WIFI vs Semaphore
Replies: 8
Views: 1393

Re: WIFI vs Semaphore

Hello,

Thanks to your messages, I was able to solve my problem. I've simply used the core 1 for the WIFI and the core 0 for my task. I hope it will be ok when I will add the other tasks... and when I will share data between the two cores...

Thank you very much for your help.
Vincent
by vgonet
Wed Dec 19, 2018 7:41 am
Forum: General Discussion
Topic: WIFI vs Semaphore
Replies: 8
Views: 1393

Re: WIFI vs Semaphore

Hello, For the debug, my task toggles a pin and I check it with a scope. With the WIFI, when my timer is configured at 270us, my task is called directly after the timer interrupt is executed (via the semaphore). So the pin toggles every 270us. With the WIFI, when my timer is configured at 125us, the...
by vgonet
Tue Dec 18, 2018 2:02 pm
Forum: General Discussion
Topic: WIFI vs Semaphore
Replies: 8
Views: 1393

WIFI vs Semaphore

Hello, I try to synchronize a task with an interruption of a timer at 125us by using a semaphore (xSemaphoreGiveFromISR). The task is executed every 125us as expected until I add WIFI to my project. void SensorTask(void* pvParameter) { ESP_LOGI(Tag, "Start Sensor Task"); // Attempt to create a semap...
by vgonet
Thu Dec 13, 2018 10:16 am
Forum: General Discussion
Topic: Flash memory available
Replies: 1
Views: 364

Flash memory available

Hello, I'm using an ESP-WROOM with a 4Mb FLASH. I have to store small MP3 files in the internal FLASH. So I've to know the number of available bytes in the FLASH. In other words, I need to know the memory size used by my firmware. I've tried to find the information in the app-template.map but I don'...

Go to advanced search