Search found 11 matches

by Talesduque
Thu Feb 11, 2021 1:27 pm
Forum: ESP-IDF
Topic: Is it possible to use libpq with the IDF?
Replies: 1
Views: 2083

Is it possible to use libpq with the IDF?

I need to use a postgres lib to communicate my ESP32 to a postgres database. Anyone knows if it is possible to use this lib on ESP-IDF projects? If not, is there any alternative to communicating to a database with ESP32?
by Talesduque
Mon Feb 08, 2021 4:36 pm
Forum: ESP-IDF
Topic: Inconsistent MISO data on SPI.
Replies: 3
Views: 3056

Re: Inconsistent MISO data on SPI.

It seems like that is only showing on the logic analyzer, the ESP actually receives the right data. I've added the following code xQueueReceive(xQueue, &queuerecv, portMAX_DELAY); queuerecv = ((queuerecv << 8) | (queuerecv >> 8)); buffercirc(queuerecv); if(queuerecv != 33) { printf("It's wrong. \n")...
by Talesduque
Mon Feb 08, 2021 12:45 pm
Forum: ESP-IDF
Topic: Inconsistent MISO data on SPI.
Replies: 3
Views: 3056

Re: Inconsistent MISO data on SPI.

I'm using Logic16 with 40MS/s.

I'm also using the following pins

Code: Select all

#define GPIO_MOSI (gpio_num_t)12
#define GPIO_MISO (gpio_num_t)13
#define GPIO_SCLK (gpio_num_t)15
#define GPIO_CS (gpio_num_t)14
by Talesduque
Mon Feb 08, 2021 11:21 am
Forum: ESP-IDF
Topic: Inconsistent MISO data on SPI.
Replies: 3
Views: 3056

Inconsistent MISO data on SPI.

Hello everyone, im using SPI to communicate my FPGA to my ESP32, i'm currently sending a stream of decimal numbers (all 33, 16bit transaction), sometimes the data isnt registered correctly, as shown in the screenhot. Seems like the MISO line is not completely stable (?). I'm gonna post my code and t...
by Talesduque
Thu Feb 04, 2021 10:48 pm
Forum: Hardware
Topic: ESP32 Minimum SPI Speed?
Replies: 0
Views: 2048

ESP32 Minimum SPI Speed?

Hello, I've ran into some problems while trying to communicate to a FPGA via SPI. After troubleshooting tons of different stuff I went on the internet to research about the SPI frequencies, only found info about highest speed and the rule of the frequency being a number that can be obtained when div...
by Talesduque
Sat Dec 19, 2020 2:49 pm
Forum: ESP-IDF
Topic: Connect ESP32 to PostgreSQL database.
Replies: 1
Views: 6999

Connect ESP32 to PostgreSQL database.

Hello everyone, I'm trying to develop a code to send data to my PostgreSQL database, I've tried implementing the following database https://github.com/ethanak/SimplePgSQL, using Arduino framework as esp-idf component. Although, when I try to connect it, I get this error: [E][WiFiClient.cpp:266] conn...
by Talesduque
Fri Jul 17, 2020 8:50 pm
Forum: ESP-IDF
Topic: spi_slave example - How does the Handshake work?
Replies: 0
Views: 1907

spi_slave example - How does the Handshake work?

Hello friends! Recently I've been trying to figure out how to make my FPGA (master) talk to my ESP32 (slave) correctly. I'm trying to understand how the handshake system works so I can develop a logic inside my FPGA to make it so the CS only goes down when the handshake goes to 0. Does anyone know? ...
by Talesduque
Thu Jul 09, 2020 5:59 pm
Forum: ESP-IDF
Topic: ESP-IDF SPI Slave Receiver Example - Not receiving whole message.
Replies: 8
Views: 9097

Re: ESP-IDF SPI Slave Receiver Example - Not receiving whole message.

What do you mean by extending on the master?
by Talesduque
Thu Jul 09, 2020 1:35 pm
Forum: ESP-IDF
Topic: ESP-IDF SPI Slave Receiver Example - Not receiving whole message.
Replies: 8
Views: 9097

Re: ESP-IDF SPI Slave Receiver Example - Not receiving whole message.

But that setting is for master only. This is the slave!