Search found 69 matches

by ok-home
Wed Sep 25, 2024 8:44 am
Forum: General Discussion
Topic: SPI configurable segmented transfer
Replies: 3
Views: 1382

Re: SPI configurable segmented transfer

I think you only need DMA_CONTINUE if you mess with the DMA descriptor chain. If your circular buffer is exactly that (a static chain that happens to have the last descriptor pointing at the first), you should simply be able to let it run. Unfortunately SPI with GDMA cannot receive/send in one tran...
by ok-home
Wed Sep 18, 2024 8:54 am
Forum: Showcase
Topic: Logic analyzer on ESP32 for self-diagnostics
Replies: 12
Views: 52790

Re: Logic analyzer on ESP32 for self-diagnostics

blade77 wrote:
Tue Sep 17, 2024 8:54 pm
It seems to capture sd interface signals stable with 20 MHz clock.
I'm glad it worked out for you ))
by ok-home
Thu Sep 12, 2024 7:39 am
Forum: General Discussion
Topic: is it possible to configure an input port? A parallel input on 8 pins that loads a register?
Replies: 4
Views: 1031

Re: is it possible to configure an input port? A parallel input on 8 pins that loads a register?

if using esp32s3 there are several options
- dedicated GPIO - cpu controlled transfer
- cam module - dma controlled transfer
- spi octal mode - cpu/dma controlled transfer
by ok-home
Thu Sep 12, 2024 5:44 am
Forum: Showcase
Topic: Logic analyzer on ESP32 for self-diagnostics
Replies: 12
Views: 52790

Re: Logic analyzer on ESP32 for self-diagnostics

Thank you so much. I am using ESP32 (pico) in my project. Will the same work with that as well? Sorry, on ESP32 (pico) the maximum sample rate is 40 mHz, and it is not so easy (and does not make sense) to connect an external PCLK. The analyzer on ESP32 (pico) can reads any data from any GPIO, with ...
by ok-home
Wed Sep 11, 2024 6:44 am
Forum: Showcase
Topic: Logic analyzer on ESP32 for self-diagnostics
Replies: 12
Views: 52790

Re: Logic analyzer on ESP32 for self-diagnostics

It sounds good. And can I use the CLK pin of the external sdmmc host as clock source instead of the internal clock? for ESP32S3 analyzer reads any data from any GPIO with sample rate which is set by internal oscillator of CAM module or ledc which is output on GPIO PCLK ( menuconfig ). If you want t...
by ok-home
Tue Sep 10, 2024 12:36 pm
Forum: Showcase
Topic: Logic analyzer on ESP32 for self-diagnostics
Replies: 12
Views: 52790

Re: Logic analyzer on ESP32 for self-diagnostics

Hi, I would like to use your logic analyzer for capturing CMD pin traffic of sdmmc interface. Is it possible to use CLK pin of sdmmc as clock source? sdmmc runs at 40 MHz in my case. The maximum sample frequency for esp32s3 is 80 mHz, you can see that there are signals, but this frequency is not en...
by ok-home
Fri Jul 05, 2024 11:45 pm
Forum: ESP-IDF
Topic: RMT code migration from ESP-IDF 4.2 to version 5.2.2
Replies: 10
Views: 2416

Re: RMT code migration from ESP-IDF 4.2 to version 5.2.2

I have another question. Can the config for transmitter, carrier and encoder be done once at start of program and then just activate the tx function each time to send it (ie. Once encloder etc has been loaded with my data, it does not get blanked out for any reason during use but acts like a normal...
by ok-home
Fri Jul 05, 2024 7:16 am
Forum: ESP-IDF
Topic: RMT code migration from ESP-IDF 4.2 to version 5.2.2
Replies: 10
Views: 2416

Re: RMT code migration from ESP-IDF 4.2 to version 5.2.2

Hi, I have written some code based on your simple example. I am getting a clock error when trying to assign the RMT channel. assert failed: rmt_ll_tx_set_channel_clock_div /IDF/components/hal/esp32s3/include/hal/rmt_ll.h:181 (div >= 1 && div <= 256 && "divider out of range") .clk_src = RMT_CLK_SRC_...
by ok-home
Thu Jul 04, 2024 1:56 am
Forum: ESP-IDF
Topic: RMT code migration from ESP-IDF 4.2 to version 5.2.2
Replies: 10
Views: 2416

Re: RMT code migration from ESP-IDF 4.2 to version 5.2.2

Does encoder require a const or can it be a variable array? Most of the packet is fixed except some ID bytes that I were sending in a loop and thinking I could place these all into 1 array at init so each time I send I just use the RMT TX function and wait till done. rmt_transmit This function cons...
by ok-home
Thu Jul 04, 2024 1:25 am
Forum: ESP-IDF
Topic: RMT code migration from ESP-IDF 4.2 to version 5.2.2
Replies: 10
Views: 2416

Re: RMT code migration from ESP-IDF 4.2 to version 5.2.2

Hi simple way to pass the rmt_item32_t array const rmt_item32_t rmt_data_out[]={ {{{BITPERIOD,1,BITPERIOD,0}}}, {{{BITPERIOD,1,BITPERIOD,0}}}, {{{BITPERIOD,1,BITPERIOD,0}}}, {{{0,0,0,0}}} }; rmt_copy_encoder_config_t tx_encoder_config = {0}; rmt_encoder_handle_t tx_encoder = NULL; rmt_new_copy_encod...