Search found 8 matches

by micron
Thu Jan 18, 2024 12:44 am
Forum: ESP-IDF
Topic: i2s timing questions
Replies: 3
Views: 1259

Re: i2s timing questions

What is the source of the audio? I have a project where I have an I2S microphone and an I2S amplifier. Between them is a storage area on a flash chip. Never mind the microphone part for now, so looking just at playback, I have a "recorder" task and an "amplifier" task. The amplifier task is higher p...
by micron
Sat Jan 13, 2024 10:00 pm
Forum: ESP-IDF
Topic: Question about esp_partition component
Replies: 2
Views: 49329

Re: Question about esp_partition component

You may be losing (blocks of) samples when recording because during erases/writes to the flash all other tasks and all non-IRAM ISRs are halted. O.K. thanks! I figured there might be an issue reading from a flash that also is the execution space of other processes. I pre-erase the partition before ...
by micron
Sat Jan 13, 2024 1:27 am
Forum: ESP-IDF
Topic: Question about esp_partition component
Replies: 2
Views: 49329

Question about esp_partition component

I have a program that uses an I2S microphone, an I2S amplifier, and a storage medium to hold what's being recorded. I have a custom board into which I plug a Waveshare esp32-s3 pico board. My custom board has an 8MB flash chip on it. I use stacking headers on the custom board so that I can attach a ...
by micron
Mon Jan 08, 2024 12:36 am
Forum: ESP-IDF
Topic: Disable ESC sequences in VSCode Output Window
Replies: 3
Views: 7449

Re: Disable ESC sequences in VSCode Output Window

To get rid of the escape characters, as you said, you could use a color enabled terminal.

If you can't use a color enabled terminal, then, I believe the setting CONFIG_LOG_COLORS in sdkconfig should not be set.

At least, that got rid of them for me.
by micron
Sun Dec 17, 2023 6:25 pm
Forum: ESP-IDF
Topic: How to use i2s in full-duplex mode
Replies: 23
Views: 66405

Re: How to use i2s in full-duplex mode

I came here to ask about using I2S in full duplex vs simplex mode, and it seems that I'm not alone in my confusion. My project is to record from a INMP441 microphone directly to an external 8M flash chip... raw writes, no file system. Then, playback the recorded audio to a MAX98357A amplifier. I'm u...
by micron
Tue Nov 14, 2023 6:28 pm
Forum: ESP-IDF
Topic: Getting useful task stats from FreeRTOS
Replies: 3
Views: 2186

Re: Getting useful task stats from FreeRTOS

I did not use esp_timer_get_time() because it can be really 'slow', like 1-2us. esp_cpu_get_cycle_count() executes in a single CPU clock cycle. Thank you for your insight. I took a look at esp_cpu_get_cycle_count(); it looks like it returns a uint32, and I'm not even sure of the units. In any case,...
by micron
Sun Nov 12, 2023 6:55 pm
Forum: ESP-IDF
Topic: Getting useful task stats from FreeRTOS
Replies: 3
Views: 2186

Getting useful task stats from FreeRTOS

FreeRTOS provides the function vTaskGetRunTimeStats(char * pBuffer). On my ESP32-S3 it prints a report that looks like... cli_proc 13831<1% cli@tty0 243301<1% IDLE 5646366198% IDLE 5596399097% Tmr Svc 10289<1% ipc1 9586061% blinky 12124<1% ipc0 9439331% esp_timer 24<1% This is only after a few secon...
by micron
Thu Nov 09, 2023 7:27 pm
Forum: ESP-IDF
Topic: using traceTASK_SWITCHED_OUT
Replies: 0
Views: 835

using traceTASK_SWITCHED_OUT

Hello, I'm new to the ESP32-S3, but have had lots of experience with FreeRTOS. I want to use the capability to hook the scheduler in order to accumulate run times of tasks per core. I have done this before on another platform, but can't figure out what I'm missing in the ESP-IDF V5.1.1 that makes th...