Forum : ARM
Original Post
Post Information | Post |
---|---|
September 10, 2010 - 10:35am
|
Hello. Please help :) Bartek. |
Forum : ARM
Post Information | Post |
---|---|
September 10, 2010 - 10:35am
|
Hello. Please help :) Bartek. |
Hi,
The value to write to the Security bit during the programming operation should be given in the obj file that you provide as input to the exe. (usually generated by CAPS)
See the obj file format specification from ST for more information.
You cannot set the security bit if you are using hex files. You must use obj files.
Best Regards,
Vincent
Hi. Thanks VincentC.
Unforunately, it does not satisfy me.
I'm trying to make programming station, that each times compile Bootloader code (using GNU Compiler).
The target is Bank1 (small 32 or 128 kB Bank) of STR912FAW44 or FAW46, so it's different.
I've done bathc files that makes compile and build, setts new number, etc.. and finally produces HEX file for FAW44 or FAW46. I want to use STR9_pgm at the end of the batch for fast programming series of devices. But - Security Bit must be set !
Using CAPS does not support automation process of compiling and programming, and... i need an automat.
How can i do it otherwise ??
P.S. I'm using Raisonance RLink JTAG programmer.
The other problem is that ST CAPS v.2.40 (latest version) does NOT work on Windows Vista and newer!!
So, we have 2010 year today, not 1998 !!
Hi,
I understand your frustration, but CAPS is ST software, not Raisonance. There is nothing we can do to make it 'automatizeable'.
This also applies to the compatibility with new versions of Windows. I could send you the latest versions of the Raisonance DLLs that CAPS includes, but there is no guarantee that it will work, as there might be other problems in CAPS itself, and you might end up loosing a lot of time for no result... Do you want to try this? (if other people are interested by this, please reply here)
In any case, you should manage to work around your specific problem by programming in two times: Make a first programming for the Flash only, using the hex file that was just made. This will not set the security bit. Then, make a second programming just for the security bit (and config and OTP if needed) using an obj file that will not change from one time to another, so you can generate it once and for all using CAPS on a XP PC, or by dumping using STR9_pgm. Use the regions masking options of the exe for keeping the content of the flash unchanged during the second programming. I have never done this myself but it should work. Please tell me if it doesn't.
Best Regards,
Vincent
OK, thanks.
I will try the work around method.