A while ago my Primer2 stopped working, wouldn't turn on. Not sure if it was the program I was working on or something else. I got distracted with other projects and have not played with it for some time (months) since then. Recently, I tried to restore the factory configuration with the 'Restore_Primer2_Circle_Factory.bat' command but it didn't work. I got the following output on my PC:
!!! WARNING: This will program the original code into the STM32-Primer2. !!!
!!! All applications currently loaded will be erased. !!!
Press Ctrl-C to abort.
Press any key to continue . . .
Cortex_pgm: software for programming Cortex chips using a RLink as master.
Copyright Raisonance 2009.
(0)
Selecting target: STM32F103VET6_CircleOS...
(0)
Connecting to RLink... OK
Connecting to target... OK
Silicon Revision Id: 0x10016414.
Option bytes: RDP=0xA5, USER=0xFF, WRP=0xFFFFFFFF
(3)
Erasing Option Bytes...
!!! Error 403: Error: Execution out of debugging limitation: PC=0x0301F04E
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ERROR !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
STM32-Primer2 programmation failed. Please check that the "Debug" USB connector
is plugged and that the STM32-Primer2 is powered up.
(press the STM32-Primer2 button if you are unsure)
Press any key to continue . . .
It hangs for a few seconds at 'Erasing Option Bytes...' then produces the error 403 message. I have done the restore before and it worked correctly then.
The Primer2's battery is charged and the jumper inside is installed. During the period of inactivity while I was distracted, the jumper inside was removed. During the programming attempt, the red activity LED blinks. Any ideas?
Craig.