This is a simple example to test my master-slave modus device
https://github.com/espressif/esp-idf/tree/master/examples/protocols/modbus/serial/mb_master
https://github.com/espressif/esp-idf/tree/master/examples/protocols/modbus/serial/mb_slave
same connection and code as per example still I ...
Search found 7 matches
- Wed Feb 23, 2022 10:13 am
- Forum: General Discussion
- Topic: Time out Error rs485 modbus
- Replies: 2
- Views: 4140
- Fri Oct 29, 2021 12:27 pm
- Forum: General Discussion
- Topic: How to compensate for the time it takes to run the task in VtaskDelay
- Replies: 4
- Views: 5354
Re: How to compensate for the time it takes to run the task in VtaskDelay
Just give it a try hope it will help you...
#define msdelay(tick_t) (vTaskDelay(tick_t / portTICK_PERIOD_MS))
xTaskHandle vip_task_t;
BaseType_t isvip_task ;
void vip_task(void * arg) {
// no forever loop
// do work 0.1 seconds
msdelay(1);
isvip_task = pdFAIL;
vTaskDelete( vip_task_t ...
- Fri Oct 29, 2021 11:57 am
- Forum: General Discussion
- Topic: Issue in task creation and stack overflow
- Replies: 5
- Views: 5076
Re: Issue in task creation and stack overflow
Its already done,
1)Mapping external PSRAM including the setting of malloc/calloc option
2)Mapping .bss memory segmet to external RAM
1)Mapping external PSRAM including the setting of malloc/calloc option
2)Mapping .bss memory segmet to external RAM
- Fri Oct 29, 2021 11:33 am
- Forum: General Discussion
- Topic: Issue in task creation and stack overflow
- Replies: 5
- Views: 5076
Re: Issue in task creation and stack overflow
Yes, I got that already, still thank you for highlighting and replying. please follow below points I have summed up so far.
1) so when I increase the stack size as required for the task, memory allocation to task fails even though I can see I have 4MB memory available.
2) If I allocate some of all ...
1) so when I increase the stack size as required for the task, memory allocation to task fails even though I can see I have 4MB memory available.
2) If I allocate some of all ...
- Fri Oct 29, 2021 9:56 am
- Forum: General Discussion
- Topic: Issue in task creation and stack overflow
- Replies: 5
- Views: 5076
Issue in task creation and stack overflow
ESP32 wrover-b(8mb flash 8mb psram)
Ported code from esp-idf v3.3.3 to v4.3 stable
For FFT using esp-dsp lib
Following are the errors I am facing
1) ***ERROR*** A stack overflow in task procc_data has been detected.
2) Task creation failed due to memory allocation failure, but
I (13860) Start ...
- Wed May 12, 2021 7:57 am
- Forum: General Discussion
- Topic: UART Communication problems at 921600
- Replies: 14
- Views: 37348
Re: UART Communication problems at 921600
Hi everyone,
I am using esp-idf v3.3.
Esp32 clock frequency set to 240 MZ
I am facing the same issue, the following is my code flow and code. It's a very simple code.
Code flow
1) send command
2) wait till all data received in rx_buff of UART driver
3) Once all data received in rx_buff read that ...
I am using esp-idf v3.3.
Esp32 clock frequency set to 240 MZ
I am facing the same issue, the following is my code flow and code. It's a very simple code.
Code flow
1) send command
2) wait till all data received in rx_buff of UART driver
3) Once all data received in rx_buff read that ...
- Wed Apr 28, 2021 6:55 am
- Forum: ESP-IDF
- Topic: UART SLOW READING
- Replies: 0
- Views: 2213
UART SLOW READING
I am using esp-idf v3.3.
Esp32 clock frequency set to 240 MZ
In my code I have a serial task with priority 21 and stacksize of (1024*12) pinned on core zero, to read serial data from UART_NUM_1 using Pattern detect.
I receive approx 50 kb data in rx_buff in just 2 Sec in UART_NUM_1, as esp32 ...
Esp32 clock frequency set to 240 MZ
In my code I have a serial task with priority 21 and stacksize of (1024*12) pinned on core zero, to read serial data from UART_NUM_1 using Pattern detect.
I receive approx 50 kb data in rx_buff in just 2 Sec in UART_NUM_1, as esp32 ...