Search found 21 matches
- Mon Nov 01, 2021 3:00 pm
- Forum: ESP-IDF
- Topic: receiving on uart is delayed after calling uart_enable_intr_mask
- Replies: 1
- Views: 2119
Re: receiving on uart is delayed after calling uart_enable_intr_mask
Ive been able to fix the issue. All I needed to do was call: nError = uart_set_rx_timeout(g_arrDevices[ucDev].stHW.nUART, 1); if(nError != ESP_OK) { NETLOG_ERROR("uart_set_rx_timeout failed for device=%u with err-code: %d", ucDev, nError); return ESP_FAIL; } This way, uart rx events are triggered fo...
- Fri Oct 22, 2021 1:55 pm
- Forum: ESP-IDF
- Topic: receiving on uart is delayed after calling uart_enable_intr_mask
- Replies: 1
- Views: 2119
receiving on uart is delayed after calling uart_enable_intr_mask
Hello, I am using esp-idf release version 4.2 on a ESP32-WROOM32-D. I am currently developing a UART based communication protocol to talk to a vehicle. Sometimes I want to avoid that the bytes that I send get stored in the UART RxRingBuffer. Therefore I am calling this functions before calling uart_...
- Wed Jul 03, 2019 2:32 pm
- Forum: ESP-IDF
- Topic: Write to flash from 2nd stage bootloader
- Replies: 2
- Views: 4002
Write to flash from 2nd stage bootloader
Hello guys, I would like to know if its possible to write to flash from 2nd stage Bootloader. I tried using the spi_write_flash methods, but this module is compiled differently when used in bootloader-module, so all writes go into some kind of emulator instead of physical memory. Is there another wa...
- Tue Jul 02, 2019 11:56 am
- Forum: ESP-IDF
- Topic: NVS access in custom bootloader
- Replies: 1
- Views: 2945
NVS access in custom bootloader
Hello guys, Im currently creating a custom bootloader for my project. Everything is working so far, but I need access to the nvs_flash component. Currently I havent found a way to include this component into my custom bootloader. Which steps do I have to take? I'll appreciate any help, Thanks for th...
- Fri Jun 28, 2019 8:38 am
- Forum: ESP-IDF
- Topic: HTTPS OTA update fails: mbedtls_ssl_read() return -0x7200
- Replies: 0
- Views: 2793
HTTPS OTA update fails: mbedtls_ssl_read() return -0x7200
Hello guys, I switched from HTTP to HTTPS on my device using <esp_https_server.h> with mbedTLS and a self-signed certificate. I am serving web pages including js and css and also offer an URI handler to do OTA updates. All the functionalities are working now, except the OTA update. On a webpage the ...
- Fri Jun 28, 2019 8:25 am
- Forum: ESP-IDF
- Topic: HTTPS Server (OpenSSL) - Error explanation
- Replies: 1
- Views: 4607
Re: HTTPS Server (OpenSSL) - Error explanation
Update to my post above: As the error shows, the TLS stuff used up too much memory on my system. I was able to reduce the memory consumption by changing a property in the sdkconfig with 'make menuconfig'. Component config -> mbedTLS -> TLS maximum message content length -> Reduce to 4096 The handsha...
- Thu Jun 27, 2019 10:51 am
- Forum: ESP-IDF
- Topic: HTTPS Server (OpenSSL) - Error explanation
- Replies: 1
- Views: 4607
HTTPS Server (OpenSSL) - Error explanation
Hello, I have an ESP32 which is running a wifi soft AP and an HTTPS server using <esp_https_server.h> and <openssl/ssl.h>. In comparison to HTTP I experience very slow Transfer of web pages paired with some errors, on which I have no idea how to fix them. This is my log when I attempt to access an U...
- Sat Jun 15, 2019 8:38 am
- Forum: ESP-IDF
- Topic: Redirect HTTP requests to HTTPS ?
- Replies: 1
- Views: 6543
Re: Redirect HTTP requests to HTTPS ?
Update to my post above: I was able to create a simple mechanism / workaround, that gets the job done, but Im not sure if this is an optimal solution: I created the https server, which is listening on port 443 and provides a handler for the uri "/index". I also created a http server, which is listen...
- Fri Jun 14, 2019 7:14 pm
- Forum: ESP-IDF
- Topic: Redirect HTTP requests to HTTPS ?
- Replies: 1
- Views: 6543
Redirect HTTP requests to HTTPS ?
Hello, I was developing a project recently which makes use of a http webserver and a wifi soft ap. Now the project needs to support HTTPS. I was playing with an https server example project so far and noticed that (on the client side) I have to type https:// manually every time when I want to call t...
- Fri May 17, 2019 10:55 am
- Forum: ESP-IDF
- Topic: Problems with OTA Update and simultaneous CAN RX events
- Replies: 2
- Views: 4683
Problems with OTA Update and simultaneous CAN RX events
Hello, Im currently using an ESP32-WROOM-32D with CAN and a webserver that serves a webpage for uploading .bin-files for OTA update. I observed that when there is data traffic on the CAN bus and I am doing a OTA update, the ESP crashes at the erase flash stage during update process. This is the erro...