pvvx / TlsrComSwireWriter

TLSR826x/825x COM port Swire Writer
The Unlicense
54 stars 6 forks source link

Website caches firmware image #7

Open papadeltasierra opened 1 year ago

papadeltasierra commented 1 year ago

It appears that your USBCOMFlashTx.html webpage caches the firmware image which is very confusing when you make changes to the firmware but the new firmware does not get uploaded. I discovered this because I did this cycle:

  1. Build some firmware, say "firmware.bin"
  2. Upload the firmware to a TLSR8258
  3. See the result
  4. Modify the firmware source and build a new image "firmware.bin" (in same directory, with same filename)
  5. Upload the firmware again
  6. The change from step 4 is NOT present :-(.

The TLSR8258 still has the OLD firmware from step 2 despite the tool having uploaded and reported "OK".

I can even delete the file "firmware.bin" from my hard drive and I can still use the webpage to upload firmware to the TLSR8258 and since the file really does not exist, the image must have been cached somewhere.

A workaround is to refresh the browser which seems to clear out all the caching and if I select "firmware.bin" again, this time the correct, new image is uploaded.

SLboat commented 1 month ago

esphome web tool looks to have the same situation, which appears to be a caching logic.