2007-05-01 09:21 PM
CAPS project for STR91 for IAP programming
2011-05-17 12:42 AM
Hi I am trying to use AN2475 for programming in the secondary flash booloader. I am using RLINK and IAR Kit ( ST makes it ).
So far no success. Does anybody has CAPS project that does that flashing. Thank you in Advance Emil2011-05-17 12:42 AM
It took me a while to get it to work
When you compile the project on IAR select the ''debug-intel-extended'' output format which will produce the .a79 (aka intel hex) file. In CAPS, do the following on a new project: Additional Settings -> BootFlash = Secondary Flash -> Firmware Placement -> file start = 0x0000 -> file stop = 0x3FFF -> file name = C:\IAP\project\EWARM\Debug\Exe\STR91x_IAP.a79 Click the ''Apply'' button, then go to the next page. Program Device -> Step 1: make sure the *.obj file that was just created is selected Step 2: Select region: ''2nd Flash'' and ''Configuration'' Select operation: Program/Verify Then click ''Execute'' hope this helps, -Mark2011-05-17 12:42 AM
Thanks Mark,
I did pretty much the same and still when I try to program it dive me this message Successful translation and merging... Device 1 : ( 4 pins ) Device is secured. Select all regions for erase operation. Time elapsed : 1 sec. I am able to erase it but not to programmed ?? Do you know anything about that ? Emil2011-05-17 12:42 AM
What happens when you select all the regions (step 2 of ''Program Device'')?
It sounds like you need to do a full JTAG erase of the entire chip to recover from the secure mode. I do not know what CAPS does if you select all regions and then ''Erase'' as the operation. I know that when I used Keil's uLink JTAG adapter, I was able to do a complete JTAG erase of the chip for a different problem. Maybe you should use the Raisonance tool to do a full chip erase. I have not had this problem. -Mark