Open technoblogy opened 4 years ago
I think I've fixed it myself. In the following file:
Maixduino/hardware/k210/0.3.11/cores/arduino/RingBuffer.h
change:
#define RING_BUFFER_SIZE 64
to:
#define RING_BUFFER_SIZE 256
The value 256 seems to be the one used in other cores, such as Adafruit's samd core.
Please can this change be incorporated into future releases of the core.
Actually I recommend a value of 1024.
If you try to transfer more than about 960 characters from the Serial Monitor to the board via the serial interface it drops characters.
To demonstrate this run the following program that simply echoes characters to the Serial Monitor:
Select and copy the following text:
Open the Arduino IDE Serial Monitor. Make sure it's set to Newline, 9600 baud.
Paste the text into the field at the top of the Serial Monitor and click Send.
The output looks like this; the red circles show the dropped characters.
Note: I'm running on a MacBook Pro using macOS High Sierra, with Arduino IDE 1.8.9, and Maixduino (k210) by Sipeed Boards Manager package 0.3.11.