Search found 53 matches
- Thu Jun 04, 2020 1:27 am
- Forum: General Discussion
- Topic: Turning off interrupts on core 1
- Replies: 13
- Views: 19853
Re: Turning off interrupts on core 1
unfortunately not. I did a kludgy solution whereby I communicate to the second core via a global shared volatile variable that it should temporarily turn on interrupts. I then do the NVS operations and tell the other core that it can turn interrupts off again. I would prefer a cleaner solution but d...
- Wed Apr 01, 2020 3:08 am
- Forum: General Discussion
- Topic: I2S: requested vs real sampling rate
- Replies: 6
- Views: 9283
Re: I2S: requested vs real sampling rate
setting apll = true yields the following output: I (271) I2S: APLL: Req RATE: 44100, real rate: 22049.982, BITS: 16, CLKM: 1, BCK_M: 8, MCLK: 5644795.500, SCLK: 705599.437500, diva: 1, divb: 0 So, the frequency is halved now. I should note that I am using the FABGL VGA library that uses I2S1 for gen...
- Tue Mar 31, 2020 6:37 pm
- Forum: General Discussion
- Topic: I2S: requested vs real sampling rate
- Replies: 6
- Views: 9283
Re: I2S: requested vs real sampling rate
that is a fair point. The only struct member of i2s_config_t I am not initializing is fixed_mclk and I believe that member is only used for apll = true. But to be certain, I have changed my code to use the same initializer as in the official example implementation. Unfortunately the results are the ...
- Mon Mar 30, 2020 3:37 pm
- Forum: General Discussion
- Topic: I2S: requested vs real sampling rate
- Replies: 6
- Views: 9283
Re: I2S: requested vs real sampling rate
thanks for your response. In my example i2s_config_t is stack allocated. I follow this example: https://github.com/espressif/esp-idf/blob/master/examples/peripherals/i2s_adc_dac/main/app_main.c The log message that shows requested vs real sample rate comes with the call to i2s_driver_install() so i2...
- Mon Mar 30, 2020 6:13 am
- Forum: General Discussion
- Topic: I2S: requested vs real sampling rate
- Replies: 6
- Views: 9283
I2S: requested vs real sampling rate
I am initializing I2S using ESP-IDF 3.2.2 as follows: i2s_config.mode = (i2s_mode_t) (I2S_MODE_MASTER | I2S_MODE_RX | I2S_MODE_ADC_BUILT_IN); i2s_config.sample_rate = 44100; i2s_config.bits_per_sample = I2S_BITS_PER_SAMPLE_16BIT; i2s_config.communication_format = I2S_COMM_FORMAT_I2S_MSB; i2s_config....
- Mon Mar 09, 2020 2:42 am
- Forum: General Discussion
- Topic: Source code level debugging of SDK
- Replies: 0
- Views: 3323
Source code level debugging of SDK
Hi, I can successfully do source code level debugging using Visual Studio Code with PIO on a ESP-WROVER-KIT v4.1. However, when I single step into some SDK functions (e.g., i2s_install_driver) it only shows me the disassembled version of the function. Is it possible to attach a source path so to do ...
- Mon Feb 17, 2020 4:51 am
- Forum: General Discussion
- Topic: Running a MCP23017 on 5V
- Replies: 14
- Views: 21795
Re: Running a MCP23017 on 5V
Thanks for your response. Just to clarify on the pull-ups: the built-in pull-ups that get enabled with sda_pullup_en and scl_pullup_en of i2c_config_t are sufficient, correct?
AP
AP
- Sun Feb 16, 2020 6:43 pm
- Forum: General Discussion
- Topic: Running a MCP23017 on 5V
- Replies: 14
- Views: 21795
Running a MCP23017 on 5V
Hi, I want to use the MCP23017 port expander for a project. The logic I'm driving with the MCP23017 is on 5V so I want to use 5V to power the MCP23017. My question is: since SDA and SDC are open drain connections on the I2C bus, is it OK to use the ESP to drive the MCP23017? The ESP has internal pul...
- Thu Jan 09, 2020 1:49 am
- Forum: General Discussion
- Topic: Wiring for i2s_adc_dac example
- Replies: 0
- Views: 1994
Wiring for i2s_adc_dac example
Hi, I'd like to try this example here: https://github.com/espressif/esp-idf/tree/master/examples/peripherals/i2s_adc_dac The README simply says to which GPIO pins to connect the speakers and microphone. Anyone out there who can point me to a specific schematic on how to build the required circuit? I...
- Thu Sep 05, 2019 4:43 pm
- Forum: General Discussion
- Topic: RTOS running on one core only
- Replies: 37
- Views: 57883
Re: RTOS running on one core only
Not sure I understand what you are saying. Did you disable the watchdog timer on core 1? With that I can keep interrupts on core 1 turned off indefinitely as long as core 0 is not using the NVS. What I was proposing with the volatile global variable is just a simple signaling mechanism where I can t...