Search found 1033 matches

by ESP_Sprite
Sun Sep 24, 2017 2:46 am
Forum: ESP32 SDK
Topic: ESP32 IDF Linux and I2S
Replies: 6
Views: 70

Re: ESP32 IDF Linux and I2S

If I recall correctly (it's been a while since I wrote the code I quoted), the I2S-peripheral is operating in stereo 16-bit mode, meaning it will take a 32-bit word each sample time, and distribute the top 16 bit to the left and bottom 16 bit to the right channel. (Or vice versa, I don't entirely re...
by ESP_Sprite
Fri Sep 22, 2017 2:16 am
Forum: ESP32 SDK
Topic: ESP32 IDF Linux and I2S
Replies: 6
Views: 70

Re: ESP32 IDF Linux and I2S

Fwiw, this code works for me (I only use the left channel) i2s_config_t cfg={ .mode=I2S_MODE_DAC_BUILT_IN|I2S_MODE_TX|I2S_MODE_MASTER, .sample_rate=rate, .bits_per_sample=16, .channel_format=I2S_CHANNEL_FMT_RIGHT_LEFT, .communication_format=I2S_COMM_FORMAT_I2S_MSB, .intr_alloc_flags=0, .dma_buf_coun...
by ESP_Sprite
Fri Sep 22, 2017 12:27 am
Forum: ESP32 SDK
Topic: ESP32 IDF Linux and I2S
Replies: 6
Views: 70

Re: ESP32 IDF Linux and I2S

You may want to add something like i2s_set_dac_mode(I2S_DAC_CHANNEL_LEFT_EN);
by ESP_Sprite
Fri Sep 22, 2017 12:25 am
Forum: Report Bugs
Topic: Bug with core libraries
Replies: 5
Views: 77

Re: Bug with core libraries

What version of ESP-IDF do you use, and what development hardware?
by ESP_Sprite
Thu Sep 21, 2017 9:41 am
Forum: Sample Code
Topic: Example of using Queue to pass strings between tasks
Replies: 8
Views: 91

Re: Example of using Queue to pass strings between tasks

That is because events only have a limited, fixed size. I think the UART driver uses a ringbuffer as well for the incoming/outgoing data.
by ESP_Sprite
Thu Sep 21, 2017 1:34 am
Forum: Sample Code
Topic: Example of using Queue to pass strings between tasks
Replies: 8
Views: 91

Re: Example of using Queue to pass strings between tasks

A queue actually is made for items with a defined length; if you throw in strings it'll waste a bunch of memory. Maybe you want to look at the ringbuffer implementation (in components/freertos/ringbuf.c and components/freertos/include/freertos/ringbuf.h) instead? Unfortunately, I also do not have an...
by ESP_Sprite
Thu Sep 21, 2017 1:30 am
Forum: General Discussion
Topic: Timer group performance
Replies: 12
Views: 220

Re: Timer group performance

I'm actually working on porting some ancient code I have from back when the ESP32 was no more than a config file for an FPGA to the current ESP-IDF/hardware. Should be done this week, if I'm not interrupted by other things. I'll post the result here if I have something at least slightly working.
by ESP_Sprite
Thu Sep 21, 2017 1:27 am
Forum: General Discussion
Topic: ESP32 Wroom error 0x1f
Replies: 1
Views: 28

Re: ESP32 Wroom error 0x1f

Have you actually managed to flash something to the module? It may be that the flash is still empty. Also, the flash is connected to most of the pads on the bottom (as in: opposite side from the antenna) of the module: if you accidentally short or ground those, you're also likely to get an error lik...
by ESP_Sprite
Thu Sep 21, 2017 1:22 am
Forum: ESP32 SDK
Topic: Several resets in ESP32 using WiFi, UART and BTL
Replies: 1
Views: 66

Re: Several resets in ESP32 using WiFi, UART and BTL

Moving to SDK forum
by ESP_Sprite
Wed Sep 20, 2017 7:52 am
Forum: General Discussion
Topic: Program compiled with Arduino-ESP32 runs noticeably faster than the same thing on ESP-IDF - why?
Replies: 6
Views: 144

Re: Program compiled with Arduino-ESP32 runs noticeably faster than the same thing on ESP-IDF - why?

Could it perhaps be because the clock frequency actually is different? Not sure how you set it in the arduino environment, but in esp-idf, you can set it using 'make menuconfig' and by default it is set to 160MHz.

Go to advanced search