hi,
can you provide more details please. downloaded the tc1797 datasheet and I guess I read something about changing sector statussuch as
• Sector specific write protection with support of re-programmability or locked forever
maybe somehow, the status changed
TC1797 user manual, PMU documentation. ECC.
I will tell you for the third time. Your assumption of the problem is wrong.
Your attempted solution is completely wrong, because you're assuming something that is not true.
You are so focused on your perceived solution that you fail to understand that the cause is something completely different.
Hence why I linked you to
https://xyproblem.info/. I do recommend you read it.
Or you can continue this pointless discussion about read only regions, which has absolutely nothing to do with the problem you are facing.
For the final time, your sector has an ECC fault and the moment it gets accessed it causes a hardware trap on the processor. If the flashloader the tool is using is not set up to handle it, then it does not and the ECU resets.
Because causing an ECC fault is not really straightforward (you have to do something out of spec, like write without erase, which is used for obd exploits, and then fail in the middle) then most flashtools can't recover from it.
Write your own BSL loader or use a tool that can handle it, such as above mentioned Frieling tool and IIRC bFlash.