Ch376msc
Ch376msc copied to clipboard
Speed on HW Serial and small buffer
Hello! I need to read a file that is almost 8 megabytes in size. Everything works, but it takes 15 minutes! The Atmega2560 allows 1,000,000 baud, but your library does not allow speeds higher than 115,200 baud. I tried to tweak the library a bit and was able to initialize the device at 1,000,000 baud! It initializes and even displays a list of files on the USB flash drive, but for some reason reading the file does not work. It works at 115,200 baud, but not at 1,000,000. Is it possible to somehow increase the speed? Also, I noticed that it is not possible to increase the buffer for the variable to read a file above 255. This means that I can read no more than 255 bytes at a time. I would like to read 4096 bytes. This is limited by the type of the uint8_t variable in your functions. Why so few?