Hello!
I’m totally new to the ARM architecture, and could use some help.
I have purchased an Olimex SAM7-EX256 development board, and a ARM-USB-OCD. Following Jim Lynch’s excellent tutorial, I have got a YAGARTO toochain up and running, and everything worked smoothly.
The first time I tried programming to flash, I got the “Lock Error Bit Detected” as predicted in the tutorial, I just added the two lines mentioned that removes the lock bits. I tried programming again, it worked this time and I removed the lines as recommended in the tutorial.
My next attempt was Jim’s Nokia LCD drivers. I downloaded the source code from Sparkfun, and used the same methods to create a project, a “program” make target etc.
But when I try to program the LCD project into Flash, the “Lock Error Bit Detected” error comes back again! The script.ocd files are identical in both projects and the flash protection bits are not being manipulated in those files.
So has the flash memory really been write protected? If I return to the first project, it still programs to flash beautifully! As I mentioned, the script.ocd files are identical in both projects, but only one can be programmed to flash.
Any suggestions on where to search for the cause of this?