Search found 208 matches

by davdav
Tue Feb 09, 2021 1:56 pm
Forum: ESP-IDF
Topic: [SOLVED]Porting from esp-idf v3.3.4 to v4.2 increase bin size
Replies: 6
Views: 6425

[SOLVED]Porting from esp-idf v3.3.4 to v4.2 increase bin size

Hi everybody, For one of our products we decided to switch esp-idf from v3.3.4 to v4.2. I installed all new toolchains and created a new project, setup cmake, configured SDKCONFIG trying to have the same options (or at least I think so) as the previous one: I have onlyremoved "Heap memory debugging"...
by davdav
Wed Dec 02, 2020 4:05 pm
Forum: ESP-IDF
Topic: Modbus RTU:making request without "parameter descriptor" setup
Replies: 1
Views: 2341

Modbus RTU:making request without "parameter descriptor" setup

Hi everybody, I would like to use freemodbus component to implement a modbus MASTER. I have two concerns using the component: 1. The serial port which will send the modbus request (UART0) is currently used, so its driver is installed and a specific task manages its event: suspending the task it's OK...
by davdav
Wed Dec 02, 2020 3:50 pm
Forum: General Discussion
Topic: BIN file validation for OTA
Replies: 2
Views: 3805

Re: BIN file validation for OTA

01xDaniel wrote:
Mon Oct 26, 2020 7:01 pm
I'm looking for the same functionally, did you find a solution?
Hi,
I solved using MD5 and calling my APP file as "myapp_<MD5string>.bin" where <MD5string> is a 32characters string composed of the MD5 hash.
by davdav
Thu Oct 15, 2020 10:12 am
Forum: ESP-IDF
Topic: Using "uart_read_bytes" after vTaskSuspendAll function
Replies: 5
Views: 4299

Re: Using "uart_read_bytes" after vTaskSuspendAll function

Hm, that all looks good to me, I see no reason why that would lead to problems. Can you show me what the corruption you see looks like? Also, are you sure it's not a physical issue (e.g. signal corruption)? Hello @ESP_Sprite, The corruptions appears 1 or 2 byte of the 1024 bytes packet. The total f...
by davdav
Tue Oct 13, 2020 7:48 am
Forum: ESP-IDF
Topic: Using "uart_read_bytes" after vTaskSuspendAll function
Replies: 5
Views: 4299

Re: Using "uart_read_bytes" after vTaskSuspendAll function

How do you initialize the UART driver? If you give it a buffer size that's large enough and read out the packets on an (on average) OK speed, you should not get underflows. Also, if the problem indeed is that your reading thread is starved (which imo is unlikely) you don't want to do a vTaskSuspend...
by davdav
Mon Oct 12, 2020 2:14 pm
Forum: ESP-IDF
Topic: Using "uart_read_bytes" after vTaskSuspendAll function
Replies: 5
Views: 4299

Using "uart_read_bytes" after vTaskSuspendAll function

Hi everybody, I would like to suspend all of my tasks and let the one which called "vTaskSuspendAll" to read uart and doing some stuff. The problem arise from the fact that if you send quite big packets (1024 byte) via UART sometimes esp32 fails to read the data (sometimes it misses bytes, sometimes...
by davdav
Wed Sep 23, 2020 6:22 am
Forum: ESP-IDF
Topic: connecting internal GPIOs to create a pipe
Replies: 4
Views: 3996

Re: connecting internal GPIOs to create a pipe

WiFive wrote:
Mon Sep 21, 2020 8:25 pm
Yes reconfigure mux
Thanks. The problem now is: how to do that? I will search some examples to reconfigure IO_MUX...

Do you think it is possible to reconfigure ONLY the TXD0 pin and let the RXD0 managed by uart driver? I this way I can still read the uart..

Thanks again
by davdav
Mon Sep 21, 2020 11:04 am
Forum: ESP-IDF
Topic: connecting internal GPIOs to create a pipe
Replies: 4
Views: 3996

Re: connecting internal GPIOs to create a pipe

https://esp32.com/viewtopic.php?t=4253 Thanks @WiFive for suggestion. I have done the following test: gpio_matrix_in(GPIO_NUM_27, SIG_IN_FUNC228_IDX, false); //UART1 RX pin (GPIO_NUM_27) gpio_matrix_out(GPIO_NUM_1, SIG_IN_FUNC228_IDX, false, false); //UART0 TX pin (TXD0) gpio_matrix_out(GPIO_NUM_21...
by davdav
Fri Sep 18, 2020 12:37 pm
Forum: ESP-IDF
Topic: connecting internal GPIOs to create a pipe
Replies: 4
Views: 3996

connecting internal GPIOs to create a pipe

Hi everybody, In our project based on ESP32-WROOM-32D we use two UART ports: -one is the "default" UART0 port (using standard TXD0 and RXD0 pins) used by customer -the other is connected to a LTE modem (gpio_27 as TX pin and gpio_25 as RX pin) In particular situation,it is necessary to talk directly...
by davdav
Fri Jun 19, 2020 12:42 pm
Forum: ESP-IDF
Topic: GPIO_NUM_17 immediatly wakeup from LIGHT SLEEP
Replies: 0
Views: 2008

GPIO_NUM_17 immediatly wakeup from LIGHT SLEEP

Hi everybody, I'm struggling with light sleep feature. I setup 3 types of sources before going to sleep: -timer (based on a customer parameter) ret = esp_sleep_enable_timer_wakeup(timer_wakeup * 1000000); ESP_LOGW(TAG_SLEEP, "Enabling TIMER wakeup:%d", ret); -UART0 uart_set_wakeup_threshold(UART_NUM...