Hi,
This issue seems to be due to the JLink: github.com/pyserial/pyserial/issues/563
It looks like if you send a buffer that is larger than a particular size through UART over the JLink (towards a nRF52 dev. kit), the receiving side gets garbage (starting with `USB`):
Display All
See the linked issue for more details.
Of course, we don't want to start using additional pins for hardware flow control. What are the limitations of the JLink? What's the size of the buffer used internally?
wiki.segger.com/J-Link_Virtual_COM_Port doesn't have much in-depth info, so anything more would be appreciated.
This issue seems to be due to the JLink: github.com/pyserial/pyserial/issues/563
It looks like if you send a buffer that is larger than a particular size through UART over the JLink (towards a nRF52 dev. kit), the receiving side gets garbage (starting with `USB`):
Source Code
- import serial
- import time
- ser = serial.Serial(port="/dev/ttyACM0", baudrate=115200)
- print(ser.portstr)
- a=range(0,65)
- def send(data):
- print(data)
- ser.write(data)
- def sendInChunks(data, chunkSize=64):
- while len(data) > 0:
- d = data[0:chunkSize]
- print(d)
- ser.write(d)
- data = data[chunkSize:]
- send(a)
- #sendInChunks(a)
- ser.close()
Of course, we don't want to start using additional pins for hardware flow control. What are the limitations of the JLink? What's the size of the buffer used internally?
wiki.segger.com/J-Link_Virtual_COM_Port doesn't have much in-depth info, so anything more would be appreciated.