hi, I accidentally erased OTP on my SWTG218ANS (managed poe) with FM25Q16A chip onboardYou can dump the unique id of your flash and run the python script posted in either of those github issues to generate the otp bytes to write (just replace uid which is 1st 4 bytes of unique id in lowercase hex concat together)
(by ERASESS in FM25Q16A_SS.pas I guess and didn't save the origin OTP at first READSS)

i've got a dump from here, also changed MAC at 0x1fc000 and ran calcsum.py to update a chesksum, then uploaded it to flash
now I see PayLoad Chksum Error while boot
I've generated 16-byte key with encuid.py script from your github
uid entered: 10093f25 (full chip uid is 10093f25f4c24ca1)
mr@scrooge:~# python3 enc.py
12fafe6e023251b0
encrypted uid str: 12fafe6e023251b0
encrypted uid hex: 31326661666536653032333235316230
I need an OTP example how it looks like to load it back with ch341a FM25Q16A_SS.pas WRITESS
thx in advance
Last edited:












