Search found 12 matches

by huang.yan
Wed May 06, 2020 6:40 am
Forum: General Discussion
Topic: Esp32 Task concurrent problems
Replies: 2
Views: 1019

Re: Esp32 Task concurrent problems

Thanks,these answers help me a lot.
by huang.yan
Tue May 05, 2020 6:13 am
Forum: General Discussion
Topic: Esp32 Task concurrent problems
Replies: 2
Views: 1019

Esp32 Task concurrent problems

There are two cpu cores in esp32.I have a few questions about esp-idf task. 1.when two task running by each core calling uart_write_bytes() at the same time,will it cause data disorder or loss? Is uart_write_bytes() task/thread safe? 2. A while(1){ do something} loop in app_main,is this loop running...
by huang.yan
Tue May 05, 2020 5:56 am
Forum: General Discussion
Topic: ESP32-WROOM-32 endless reboot
Replies: 4
Views: 1908

Re: ESP32-WROOM-32 endless reboot

Finally found that the chip I used can only support 160MHz,menu config change to 240MHz cause reboot.
by huang.yan
Mon Apr 27, 2020 7:42 am
Forum: General Discussion
Topic: ESP32-WROOM-32 endless reboot
Replies: 4
Views: 1908

Re: ESP32-WROOM-32 endless reboot

I use a esp32 devboard to test cpu freq 240M and it works fine with usb cable connect to pc usb port.
When change to the board integrated with multiple esp32 modules,the master esp32 module keeps rebooting at cpu freq 240MHz.
Neither USB nor charger can work.
by huang.yan
Mon Apr 27, 2020 6:32 am
Forum: General Discussion
Topic: ESP32-WROOM-32 endless reboot
Replies: 4
Views: 1908

ESP32-WROOM-32 endless reboot

Cpu frequency set to 160MHz ,everything works fine. Cpu frequency set to 240MHz,it keep rebooting. Error log: rst:0x3 (SW_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:2 load:0x3fff0030,len:...
by huang.yan
Tue Apr 21, 2020 10:58 am
Forum: General Discussion
Topic: esp_timer not triggered correctly
Replies: 0
Views: 1100

esp_timer not triggered correctly

ESP32-WROOM-32 module.
I use esp_timer_start_periodic(otherstart_timer_handler, 1000000) to do some periodic job.
But at some point , the callback function was triggered 3 times less than 1 second.
Does anyone know the cause of the problem?
Thanks.
by huang.yan
Fri Apr 10, 2020 8:03 am
Forum: General Discussion
Topic: Data loss of esp32 serial port
Replies: 9
Views: 3171

Re: Data loss of esp32 serial port

I'm not sure if I understand correctly. Are the 3 serial ports share one txd and rxd bus line? And this is the cause of data loss. For my scenario, the master esp32 module will receive a lot of data from 3 slave esp32 module and send little data.Even if rxd is in intermediate level,it will not cause...
by huang.yan
Fri Apr 10, 2020 3:10 am
Forum: General Discussion
Topic: Data loss of esp32 serial port
Replies: 9
Views: 3171

Re: Data loss of esp32 serial port

The serial ports used by master esp32 as shown in the attachment picture. You mean when serial1 and serial2 are not sending data,output high level, will cause serial0 to a intermediate level,and the serial sending would be abnormal? If all of the 3 serial ports are sending at the same time,output lo...
by huang.yan
Fri Apr 10, 2020 2:28 am
Forum: General Discussion
Topic: Data loss of esp32 serial port
Replies: 9
Views: 3171

Re: Data loss of esp32 serial port

Directly connect the gpio of the four UARTs together
by huang.yan
Fri Apr 10, 2020 2:27 am
Forum: General Discussion
Topic: Data loss of esp32 serial port
Replies: 9
Views: 3171

Re: Data loss of esp32 serial port

The logic of the serial data processing part is as follows #define BUF_SIZE (2048) static QueueHandle_t uart0_queue; static QueueHandle_t uart1_queue; static QueueHandle_t uart2_queue; uart_config_t uart_config = { .baud_rate = 115200, .data_bits = UART_DATA_8_BITS, .parity = UART_PARITY_DISABLE, .s...

Go to advanced search