![]() ![]() I do not need to define any special serial protocol because my files are already formatted in a particular way and I can send the file one line at a time and parse it on the other end.īut for a generic application perhaps you should define a light weight protocol. You just need to decide how you are going to chunk the data up and size your buffers accordingly. Once it has received all of the data, the MSP430 branches into its bootloader code. My MSP430 reads that line into a buffer, which is X characters long, validates it, stores it to a location on an external flash memory, and then receives the next line. So I send that firmware file over the UART one line at a time. I would read the file into some sort of buffer on your UI, chop it up into small packets, and send it.įor example, on my UI I allow the user to upload a new firmware image to my device. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |