embeddedartistry / athena-bootloader

An AVR Arduino bootloader that supports uploads over Ethernet (via TFTP) and Serial.
GNU Lesser General Public License v2.1
12 stars 5 forks source link

Fix misuses read and write pointers #89

Closed hagaigold closed 2 years ago

hagaigold commented 2 years ago

Description

Fix misuse of read pointer REG_S3_RX_RD0 & write pointer REG_S3_TX_WR0 for WIZnet shields: W5100 & W5200. As a result of this fix, tftpPoll function, which processing each new packet, was simplified, and the too-long delay, TFTP_PACKET_DELAY, in each iteration of tftpPoll function was reduced to 5ms (was 400ms).

Fixes #19 Fixes #18

other changes:

Type of change

How Has This Been Tested?

see issue #19

Checklist:

hagaigold commented 2 years ago

Great work!

thx :)

regarding the TFTP_PACKET_DELAY- I did tests with a 0 delay but left a 5 for "just in case" (don't have all the different boards & WIZs)

phillipjohnston commented 2 years ago

That's great to know, I filed #91 so we can at least give the option to remove it completely