Search found 28 matches

by Gardin
Sun Dec 13, 2020 1:33 am
Forum: General Discussion
Topic: Failed to get chip size NINA101
Replies: 1
Views: 214

Re: Failed to get chip size NINA101

So, I still have the error but I was able to make make it works by altering the file esp_flash_spi_init.c I just ignore the error: esp_err_t esp_flash_init_default_chip(void) { memspi_host_config_t cfg = ESP_FLASH_HOST_CONFIG_DEFAULT(); //the host is already initialized, only do init for the data an...
by Gardin
Sun Dec 13, 2020 12:20 am
Forum: General Discussion
Topic: Failed to get chip size NINA101
Replies: 1
Views: 214

Failed to get chip size NINA101

Hello everyone, I'm working with a custom PCB based on the u-blox NINA 101. This module uses a 2MB flash, and my PCB also comes with an extra 16MB flash(W25Q128). The problem is that in order to the NINA module to work I need to set CONFIG_SPI_FLASH_USE_LEGACY_IMPL, otherwhise the system fails to re...
by Gardin
Sun Dec 13, 2020 12:10 am
Forum: General Discussion
Topic: how many bytes are read with uart_read_bytes()
Replies: 2
Views: 403

Re: how many bytes are read with uart_read_bytes()

Yes, it was my own UART buffer that was overflowing, and indeed it was my fault.

Anyway thank's a lot for your help!

Gabriel Gardin
by Gardin
Sat Dec 05, 2020 7:22 pm
Forum: General Discussion
Topic: how many bytes are read with uart_read_bytes()
Replies: 2
Views: 403

how many bytes are read with uart_read_bytes()

Hello everyone, I'm working on a project that uses uart to receives lots of data(~45KB), the data is initialized with SOT and ended with EOT. So in order to read the data I wait for the starting SOT and then I increment a buffer pointer accordingly to the data comming through.(I don't receive all th...
by Gardin
Fri Nov 20, 2020 12:07 am
Forum: General Discussion
Topic: How long does it take for uart data to be available on RX Buffer?
Replies: 9
Views: 1049

Re: How long does it take for uart data to be available on RX Buffer?

Thank's guys! That was a really useful discussion.
by Gardin
Tue Nov 10, 2020 2:24 pm
Forum: General Discussion
Topic: WiFi/Internet KeepAlive - How to property maintain network connection without reboots?
Replies: 2
Views: 604

Re: WiFi/Internet KeepAlive - How to property maintain network connection without reboots?

When you set up Wi-Fi you generally set an event group to signal Wi-Fi events. From there you can try to reconnect to the Wi-Fi in case of a disconnection. take a look in this example: https://github.com/espressif/esp-idf/tree/master/examples/wifi/getting_started/station In case you are using aws-io...
by Gardin
Tue Nov 10, 2020 1:40 pm
Forum: General Discussion
Topic: How long does it take for uart data to be available on RX Buffer?
Replies: 9
Views: 1049

Re: How long does it take for uart data to be available on RX Buffer?

First of all thanks a lot for the fast repply. Yes, there is a problem with the remote device. I first noticed the problem because the esp32 is receiving imcomplete messages, so I analyzed the TX, RX lines with a Logic Analyzer, and then I saw multiple discontinuities in the bits. I've contacted the...
by Gardin
Mon Nov 09, 2020 7:08 pm
Forum: General Discussion
Topic: How long does it take for uart data to be available on RX Buffer?
Replies: 9
Views: 1049

How long does it take for uart data to be available on RX Buffer?

Hello guys, hope you are all well. I'm working on a project that heavily depends on UART. I send commands and receive responses sometimes as big as 22KB. The problem is that data does not always come in a good ordered way, sometimes I receive stop bits when they shouldn't be there. Therefore, I need...
by Gardin
Mon Nov 09, 2020 6:49 pm
Forum: General Discussion
Topic: Whit tou use uint8_t buffer to receive uart data?
Replies: 5
Views: 656

Re: Whit tou use uint8_t buffer to receive uart data?

Thanks PeterR that make sense!!
by Gardin
Thu Nov 05, 2020 1:04 pm
Forum: General Discussion
Topic: Whit tou use uint8_t buffer to receive uart data?
Replies: 5
Views: 656

Whit tou use uint8_t buffer to receive uart data?

So, this is problably a dummy C question but I'm gonna ask here anyway.

In the function

Code: Select all

int uart_read_bytes(uart_port_t uart_num, uint8_t* buf, uint32_t length, TickType_t ticks_to_wait)
Why not to use a char* buffer to hold incoming data?

Thanks in advance!

--
Gabriel Gardin

Go to advanced search