Search found 92 matches

by ESP_houwenxiang
Thu Nov 14, 2019 7:40 am
Forum: General Discussion
Topic: UART Communication problems at 921600
Replies: 12
Views: 2158

Re: UART Communication problems at 921600

What I have noticed however is if I send 1400 bytes the uart_read_bytes returns a value in the range of 1390. If I send 600 bytes I get a len of approx 596. Hi, LukeSkyWire Have you enabled hardware flow control? At 1M baud, the CPU can read out the data in fifo in time. But At 2M baud-rate, the CP...
by ESP_houwenxiang
Mon Nov 04, 2019 10:58 am
Forum: ESP32 IDF
Topic: i2s_write losing data due to fail to return update pointer
Replies: 11
Views: 766

Re: i2s_write losing data due to fail to return update pointer

Hi, chadpham75

Yes, your processing is correct, because the I2S driver does not automatically clear the buffer, the old data will be repeated unless you write new data.
by ESP_houwenxiang
Mon Oct 28, 2019 9:09 am
Forum: General Discussion
Topic: ESP32-WROOM Occasional reset, and then locked in bootloader WDT
Replies: 10
Views: 616

Re: ESP32-WROOM Occasional reset, and then locked in bootloader WDT

Hi, cdDave
I think this problem is caused by the power supply of flash. Can you measure the voltage of the following three points with an oscilloscope(When the chip always restart)? because we don't have your hardware to do test.

1: VCC of ESP32
2: VCC of flash
3: EN pin of ESP32



thanks !!
by ESP_houwenxiang
Mon Oct 28, 2019 7:45 am
Forum: General Discussion
Topic: MCPWM Capture Mode
Replies: 3
Views: 281

Re: MCPWM Capture Mode

HI, jw--rt
How many channels do you need to measure? and why do you think that the precision of the PCNT module is not enough?

I would like to suggest you use the PCNT module. You can get the RPM by counting the number of pulses in 100ms.
thanks !!
by ESP_houwenxiang
Thu Oct 24, 2019 2:38 am
Forum: General Discussion
Topic: ESP32-WROOM Occasional reset, and then locked in bootloader WDT
Replies: 10
Views: 616

Re: ESP32-WROOM Occasional reset, and then locked in bootloader WDT

I assume by "which GPIO are you using", you are referring to IO0 and Reset? I am referring to which IOs are used in the I2C bus(SCL. SDA). Also, I assume you know it's entering the 2nd bootloader because of this line in the logs: entry 0x4008039c. Is that correct? Yes, I think the 2nd bootloader ha...
by ESP_houwenxiang
Wed Oct 23, 2019 1:40 pm
Forum: ESP32 IDF
Topic: i2s_write losing data due to fail to return update pointer
Replies: 11
Views: 766

Re: i2s_write losing data due to fail to return update pointer

Hi, I mean that you can improve the ADC task priority and increase the buffer count: int i2s_num = I2S_NUM; i2s_config_t i2s_config = { .mode = I2S_MODE_MASTER | I2S_MODE_TX | I2S_MODE_DAC_BUILT_IN, .sample_rate = 16000, .bits_per_sample = 16, .communication_format = I2S_COMM_FORMAT_I2S_MSB, .channe...
by ESP_houwenxiang
Wed Oct 23, 2019 3:53 am
Forum: General Discussion
Topic: ESP32-WROOM Occasional reset, and then locked in bootloader WDT
Replies: 10
Views: 616

Re: ESP32-WROOM Occasional reset, and then locked in bootloader WDT

In addition, we can see that the chip are jumping to the 2th bootloader. Can you add some debugging information? It is difficult for us to reproduce your issue. find the function "call_start_cpu0", add some log like this: void __attribute__((noreturn)) call_start_cpu0(void) { ESP_LOGE(TAG, "----%p--...
by ESP_houwenxiang
Wed Oct 23, 2019 3:12 am
Forum: General Discussion
Topic: ESP32-WROOM Occasional reset, and then locked in bootloader WDT
Replies: 10
Views: 616

Re: ESP32-WROOM Occasional reset, and then locked in bootloader WDT

Hi, cdDave
Which GPIO are you using? What is the GPIO level when it is restarted?
by ESP_houwenxiang
Wed Oct 23, 2019 2:37 am
Forum: ESP32 IDF
Topic: i2s_write losing data due to fail to return update pointer
Replies: 11
Views: 766

Re: i2s_write losing data due to fail to return update pointer

Hi,
Can you make the I2S task run at a higher priority? At the same time you can increase the `dma_buf_count`.
by ESP_houwenxiang
Tue Oct 22, 2019 7:13 am
Forum: General Discussion
Topic: Is uart_write_bytes and read thread safe?
Replies: 12
Views: 549

Re: Is uart_write_bytes and read thread safe?

Hi, the read API is thread safe.
Is UART1 and UART2 running at a high baud rate at the same time? So, can you try to Initialize UART1 a UART2 on different core? So their ISR handle will be registered on different cores.

thanks !!

Go to advanced search