Search found 30 matches

by jmadsenee
Sat May 20, 2023 7:30 pm
Forum: ESP-IDF
Topic: usb_serial_jtag_write_bytes() doesn't always write all bytes
Replies: 18
Views: 6424

Re: usb_serial_jtag_write_bytes() doesn't always write all bytes

Hi @ESP_Sprite, did you learn any more about this issue? Is it hardware? Is there a better fix?
by jmadsenee
Thu Mar 16, 2023 1:21 am
Forum: ESP-IDF
Topic: usb_serial_jtag_write_bytes() doesn't always write all bytes
Replies: 18
Views: 6424

Re: usb_serial_jtag_write_bytes() doesn't always write all bytes

@ESP_Sprite, Well, that seems to have done it! I ran my minimal program 10 x without a single failure. I then made the change in my real project and ran it 3 x without failure. Is that a real solution or a kluge? Do I have to worry about it causing other problems? The console part of my app seems to...
by jmadsenee
Thu Mar 09, 2023 3:27 pm
Forum: ESP-IDF
Topic: usb_serial_jtag_write_bytes() doesn't always write all bytes
Replies: 18
Views: 6424

Re: usb_serial_jtag_write_bytes() doesn't always write all bytes

Hi @ESP_Sprite, I know you're busy, but this is becoming critical for my project. Have you had a chance to look at the modified version yet? Thanks so much!
by jmadsenee
Wed Mar 01, 2023 4:24 am
Forum: ESP-IDF
Topic: usb_serial_jtag_write_bytes() doesn't always write all bytes
Replies: 18
Views: 6424

Re: usb_serial_jtag_write_bytes() doesn't always write all bytes

Hi @ESP_Sprite, This should run on a random -S3 dev kit. When the program starts, it creates a ~550KB file in spi flash, which it then tries to YModem to a PC. After downloading the program to the dev kit, open a terminal program such as Tera Term, connect, and press the reset button. You'll see the...
by jmadsenee
Thu Feb 23, 2023 2:16 pm
Forum: ESP-IDF
Topic: usb_serial_jtag_write_bytes() doesn't always write all bytes
Replies: 18
Views: 6424

Re: usb_serial_jtag_write_bytes() doesn't always write all bytes

hi @ESP_Sprite, any ideas of what might be causing the ring buffer to stop sending? Any thoughts on further troubleshooting?
by jmadsenee
Tue Feb 21, 2023 2:32 am
Forum: ESP-IDF
Topic: usb_serial_jtag_write_bytes() doesn't always write all bytes
Replies: 18
Views: 6424

Re: usb_serial_jtag_write_bytes() doesn't always write all bytes

Attached is usb_serial_problem.zip the whittled down code in the FortisKap folder and test.txt, my test file. test.txt goes on an SD card on the korvo-2 board. In a terminal program (I'm using Tera Term) type "send test.txt" at the FortisKap> prompt and and start YModem receive on host. usb_serial_p...
by jmadsenee
Tue Feb 21, 2023 1:21 am
Forum: ESP-IDF
Topic: usb_serial_jtag_write_bytes() doesn't always write all bytes
Replies: 18
Views: 6424

Re: usb_serial_jtag_write_bytes() doesn't always write all bytes

I am using a heavily modified ESP32-S3 Korvo-2 board with a ESP32-WROOM-1 MON16R8 module. The UART was disconnected and the USB Serial JTAG connected to the UART connector. The code is pretty complex at this point, but I can try to whittle it down. Another thing I tried: I looked at the value being ...
by jmadsenee
Tue Feb 21, 2023 12:17 am
Forum: ESP-IDF
Topic: usb_serial_jtag_write_bytes() doesn't always write all bytes
Replies: 18
Views: 6424

Re: usb_serial_jtag_write_bytes() doesn't always write all bytes

A little more info: If, after the ESP32-S3 stops sending data part way through (char *)packet_data, I send a space character: usb_serial_jtag_write_bytes(" ", 1, 1000/portTICK_RATE_MS); the remainder of packet_data is transmitted with the space appended to the end. It picked up exactly where it left...
by jmadsenee
Tue Feb 21, 2023 12:05 am
Forum: ESP-IDF
Topic: usb_serial_jtag_write_bytes() doesn't always write all bytes
Replies: 18
Views: 6424

Re: usb_serial_jtag_write_bytes() doesn't always write all bytes

Not as far as I can tell. I have had problems transferring a few different file types, jpg, txt, csv. Most of my testing has been with a plain text file, no formatting. It stops in random places in the middle of the text file, sending 204kB one time, 96kB then next, then 159kB, etc. Looking at the p...
by jmadsenee
Sun Feb 19, 2023 9:49 pm
Forum: ESP-IDF
Topic: usb_serial_jtag_write_bytes() doesn't always write all bytes
Replies: 18
Views: 6424

usb_serial_jtag_write_bytes() doesn't always write all bytes

I am using esp_idf V4.4. When I run usb_serial_jtag_write_bytes() in a loop to transfer data to my PC running Tera Term, it works well for random amounts of data, then only sends part of the data buffer. I try to run: for (n = 0; n < 500; n++) { sentbytes = usb_serial_jtag_write_bytes((char *)packet...