I am using tftp with the Ariadne bootloader to upload code to my Mega via cat5 cable. This has been working fine for smaller sketches.
Recently I found that when I upload a sketch around 32k, it doesn't work via tftp. I had a working set of code, and just added the lines:
String temp = "hi";
and suddenly the code wouldn't upload.
Before the addition of this code, the sketch was 32,224 bytes, and after adding the code it was 32,262 bytes (which is 32,768 on disk). Note that this crossed the threshold of 2^15 bytes.
According to the boards.txt for the bootloader, I should be able to upload much more than 32k, as long as it knows it's on a Mega. I believe this bootloader would never have worked if it didn't know it was on a Mega. I believe tftp has a limit of 32 MB (not kB!). I am able to successfully upload this code to the Mega directly via USB.
- Am I diagnosing this problem (file size) correctly?
- How can I increase this file size limit? Note there is plenty of room on the Mega, it's just tftp that seems to have the issue.
I can give a detailed description of how I burn the bootloader onto the Mega as well, if that's helpful.