LwIP TFTP on STM boards
I was struggling to get LwIP TFTP server working on MCU boards (NUCELO-H743ZI). After debugging I have found:
- Why is TFTP_MAX_MODE_LEN defined as 7 (instead of >= 8)?
- Why is TFTP_MAX_FILENAME_LEN just defined as 20?
So, it results in:
- sending (PUT) or receiving a file (GET) via TFTP client on Windows 10 (install Windows Features for 'tftp' available on CMD line) - without option -i - does not work! ('mode' is set as "netascci" which has 8 characters!)
- If you want to transfer a file with name longer as 20 characters (including the dot) - it will not work!
OK, working now (if you need details or code ... don't hesitate ...).
Just to bear in mind as well: you had to set macro LWIP_UDP to 1 as well! (even TCP HTTPD server runs already fine).
So, LwIP TFTP server works, but not from scratch, some settings are needed to be modified.
