Search found 8 matches

by shenanigami
Tue Jun 04, 2024 4:35 pm
Forum: ESP-IDF
Topic: Echo task only outputs avg of queue1, not queue2
Replies: 2
Views: 477

Re: Echo task only outputs avg of queue1, not queue2

Thank you so much! I made sure to flip queue_num after task notify, not before, and it worked if (xQueueSendFromISR(queue_cb, &cb_data->num, NULL) != pdPASS) { // notify compute_avg task - index 0 xTaskNotifyIndexedFromISR(x_compute_avg_task, 0, (uint32_t) cb_data->queue_num, eSetValueWithOverwrite,...
by shenanigami
Sat Jun 01, 2024 3:00 pm
Forum: ESP-IDF
Topic: Echo task only outputs avg of queue1, not queue2
Replies: 2
Views: 477

Echo task only outputs avg of queue1, not queue2

Hi, Some background : I have 2 tasks. The app_main task creates a HW timer that runs an ISR (timer callback) to sample from ADC 10 times per second. These sampled values are then sent to queue1/queue2 - the queue that the values get sent to alternates (depending on which queue is full (queue, queue2...
by shenanigami
Tue Mar 26, 2024 7:21 pm
Forum: ESP-IDF
Topic: ESP32, UART2 uart_write_bytes, no serial output
Replies: 6
Views: 1286

Re: ESP32, UART2 uart_write_bytes, no serial output

It works! Thank you so much :D

The sanity test for FTDI adapter was successful. And this time, when connecting the adapter I only connected RX and TX to ESP32.

The 3.3V -> 3.3V connection was the culprit (based off of previous setup).
by shenanigami
Mon Mar 25, 2024 5:17 pm
Forum: ESP-IDF
Topic: ESP32, UART2 uart_write_bytes, no serial output
Replies: 6
Views: 1286

Re: ESP32, UART2 uart_write_bytes, no serial output

So, in theory, if I connect my ESP32 board's GPIO16 (RX) and GPIO17 (TX) to my PC (while keeping its USB-to-UART0 bridge connection intact), using FTDI USB-to-TTL adapter, like so adapter -> ESP32 ============ TX -> GPIO16 RX -> GPIO17 3.3V -> 3.3V GND -> GND and opening its corresponding ttyUSB1 (f...
by shenanigami
Mon Mar 25, 2024 11:27 am
Forum: ESP-IDF
Topic: ESP32, UART2 uart_write_bytes, no serial output
Replies: 6
Views: 1286

Re: ESP32, UART2 uart_write_bytes, no serial output

No. Is that done on config level?

When I looked for UART configs in menuconfig,

Component Config > Driver Configurations > UART Configuration

I only saw "Place UART ISR function into IRAM" config option.
by shenanigami
Sun Mar 24, 2024 10:18 am
Forum: ESP-IDF
Topic: ESP32, UART2 uart_write_bytes, no serial output
Replies: 6
Views: 1286

ESP32, UART2 uart_write_bytes, no serial output

Hi I'm using ESP32-WROOM-32U. I'm new to ESP-IDF and so decided to learn how to write a simple uart echo program. I used the following resources, https://docs.espressif.com/projects/esp-idf/en/stable/esp32/api-reference/peripherals/uart.html#uart-api-running-uart-communication https://github.com/esp...
by shenanigami
Sun Feb 25, 2024 6:54 pm
Forum: Hardware
Topic: ESP32 Dev Board LED Connection?
Replies: 5
Views: 11164

Re: ESP32 Dev Board LED Connection?

Thanks, @ Xylopyrographer! Your response helped :)
by shenanigami
Tue Dec 26, 2023 2:40 pm
Forum: Hardware
Topic: ESP32 Dev Board LED Connection?
Replies: 5
Views: 11164

Re: ESP32 Dev Board LED Connection?

Hey @felmue

can you explain what is the connection between GPIO1/U0TXD and powerup? I want to understand how you've made your guess.