Search found 12 matches

by iamflimflam1
Thu Oct 28, 2021 1:55 pm
Forum: ESP-IDF
Topic: spi: spicommon_dma_chan_alloc(228): no available dma channel
Replies: 1
Views: 1758

Re: spi: spicommon_dma_chan_alloc(228): no available dma channel

Turns out this was being caused by an issue on my side.
by iamflimflam1
Thu Oct 28, 2021 9:23 am
Forum: ESP-IDF
Topic: spi: spicommon_dma_chan_alloc(228): no available dma channel
Replies: 1
Views: 1758

spi: spicommon_dma_chan_alloc(228): no available dma channel

I'm having an issue with using SD Cards with SPI

Code: Select all

spi: spicommon_dma_chan_alloc(228): no available dma channel
I'm not sure how to track this issue down - I can't recreate it in a simple test program, only in my main application.
by iamflimflam1
Sun Oct 10, 2021 6:08 pm
Forum: ESP-IDF
Topic: Correct argument for ulp_run
Replies: 1
Views: 2058

Correct argument for ulp_run

I'm confused by what should be passed in the argument for ulp_run I've seen examples that show this: ulp_run((&ulp_entry - RTC_SLOW_MEM)/4); and this ulp_run(&ulp_entry - RTC_SLOW_MEM); In the docs it does say that it should be expressed in 32 bit words - which I think is where the /4 is coming from...
by iamflimflam1
Sat Jul 24, 2021 9:41 am
Forum: ESP-IDF
Topic: hfp_hf disconnects after a few seconds
Replies: 2
Views: 3535

Re: hfp_hf disconnects after a few seconds

For anyone looking for a working hsp_hf I've pulled together something that works using: https://github.com/bluekitchen/btstack

It's very much based on their demo code with a very small amount of cleanup and addition of microphone input so it fully works.

https://github.com/atomic14/esp32-hsp-hf
by iamflimflam1
Thu Jul 22, 2021 1:14 pm
Forum: ESP-IDF
Topic: hfp_hf disconnects after a few seconds
Replies: 2
Views: 3535

hfp_hf disconnects after a few seconds

I'm trying to run the esp-idf hfp_hf example examples/bluetooth/bluedroid/classic_bt/hfp_hf It seems to work, but disconnects after a short period of time. This is what I see in the logs: hfp_hf> con connect W (6571) BT_APPL: HF Client found collision (ACL) ... hfp_hf> I (14101) BT_HF: ESP_BT_GAP_DI...
by iamflimflam1
Tue Jan 12, 2021 5:14 am
Forum: ESP-IDF
Topic: SPI transaction sending speed
Replies: 1
Views: 2244

Re: SPI transaction sending speed

Looks like I should be using `spi_device_polling_transmit`
by iamflimflam1
Mon Jan 11, 2021 10:01 pm
Forum: ESP-IDF
Topic: SPI transaction sending speed
Replies: 1
Views: 2244

SPI transaction sending speed

Hi All, I'm trying to control a dual DAC converter using SPI - the MCP4822 (https://ww1.microchip.com/downloads/en/DeviceDoc/20002249B.pdf) I was hoping to be able to send out 2 samples at around 20KHz but seems to be only able to get about half that rate. I thnk each sample needs to be sent as a se...
by iamflimflam1
Wed Dec 09, 2020 1:48 pm
Forum: Hardware
Topic: Open drain output max voltage
Replies: 3
Views: 4928

Re: Open drain output max voltage

I can't find many (any) details on the output drivers.

I thought that unless there are protection diodes that would take the voltage back to the supply rails you should be safe pulling up an open-drain output to a higher voltage as it won't be connected to anything when the output is off?
by iamflimflam1
Tue Dec 08, 2020 2:41 pm
Forum: Hardware
Topic: Open drain output max voltage
Replies: 3
Views: 4928

Open drain output max voltage

Hi All,

I've set the output mode of the GPIO pin to open drain and was wondering what is the maximum voltage I can pull up to?

Thanks
Chris
by iamflimflam1
Fri May 22, 2020 5:29 pm
Forum: ESP32 Arduino
Topic: LEDC with OUTPUT_OPEN_DRAIN
Replies: 4
Views: 5925

Re: LEDC with OUTPUT_OPEN_DRAIN

Can confirm that this works. Moving the pinMode call to after the set up allows for open drain PWM.