Hi Lionel,
happy new year to you and all other readers.
More info for you.
lionel :
Hello,
did you make sure the Primer was correctly connected to your PC (by USB cable) and powered up (push the orange button) before launching Update_Circle_OS.bat ?
YES
you can also try to launch the following command line from Windows Start Menu->Run... :
and see whether some errors appear.
Hmmm... interesting.
If I run the Update_Circle_OS.bat from within the Raisonance folder it programmes OK - all be it v1.6 - and I get the following output.....
Cortex_pgm: software for programming Cortex chips using a RLink as master.
Copyright Raisonance 2007
<0>
Selecting target: STM32F103RBT6...
<0>
Connecting to RLink...OK
Connecting to target...OK
Reading target IdCode...OK
IdCode read:0x3BA00477
Silicon Revision Id: 0x20006410.
Option bytes: RDP=0xA5, USER=0xFF, WRP=0xFFFFFFFF
Device initialisation...OK
<1>
Erasing Flash...OK
Erasing Option Bytes...OK
<3>
Programming file Circle.hex to flash...OK
<11>
Starting program execution...OK
<12>
Closing com with RLink...OK
However if I run from the command line as you suggest I get the following output....
Cortex_pgm: software for programming Cortex chips using a RLink as master.
Copyright Raisonance 2007
<0>
Selecting target: STM32F103RBT6...
<0>
Connecting to RLink...OK
Connecting to target...OK
Reading target IdCode...OK
IdCode read:0x3BA00477
Silicon Revision Id: 0x20006410.
Option bytes: RDP=0xA5, USER=0xFF, WRP=0xFFFFFFFF
Device initialisation...OK
<2>
Erasing Flash...OK
Erasing Option Bytes...OK
<4>
Programming file Circle.hex to flash...
!!! Error 2: No error currently
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ERROR !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
STM32-Primer programmation failed. Please check that the "Debug" USB connector
is plugged and that the STM32-Primer is powered up <press the STM32-Primer
button if you are unsure>
and the screen is blank. I dont understand this, as the path is exactly the same? Also if you look at the output of the command line version the <x> numbers differ?
Running the Update_Circle_OS.bat from within the Raisonance file structure, the OS is programmed correctly as above. But still v1.6? This is repeatable.
I am wondering at this stage if I extracted the zip file into the wrong directory? If this is true I would think that RLink would not be able to find the files to programme? That said, I do not see most of the files from the extracted zip file in the directory any more? Do they get cleared out after programming? Also the circle.hex file in the CircleOS folder is dated 26/10/2007 and not the 09/11/2007 from the zip file - so it looks like I stuffed up the extracting of the zip files
Last edited by shug (2008-01-05 14:24:49)