cancel
Showing results for 
Search instead for 
Did you mean: 

CAPS project for STR91 for IAP programming

emilmih
Associate II
Posted on May 02, 2007 at 06:21

CAPS project for STR91 for IAP programming

4 REPLIES 4
emilmih
Associate II
Posted on May 17, 2011 at 09:42

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

Emil

mark9
Associate II
Posted on May 17, 2011 at 09:42

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,

-Mark

emilmih
Associate II
Posted on May 17, 2011 at 09:42

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 ?

Emil

mark9
Associate II
Posted on May 17, 2011 at 09:42

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