Jens Bauer wrote: > ... I think it would make sense if OpenOCD reads the OPTCR register > and checks that it contains the right value.
Certainly, and anyone trying to say otherwise is not helping. I'm sadly unsurprised that the check is missing in OpenOCD. > If not, it could either... > 1: Tell the user that the Flash memory is protected, and how to > unprotect it. Yes, this is a good idea regardless. > 2: Unprotect the Flash memory automatically. This could probably do with explicit confirmation from the human, maybe a command option that enables the automatic unprotect. > -It would probably make sense to do this in the 'unlock' procedure; > anyone agree/disagree ? Agree. //Peter ------------------------------------------------------------------------------ Dive into the World of Parallel Programming! The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net _______________________________________________ OpenOCD-devel mailing list OpenOCD-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openocd-devel