Skip to main content
yossi_z
Associate II
December 17, 2009
Question

Using IAR / J-Link to Write bank1

  • December 17, 2009
  • 7 replies
  • 1577 views
Posted on December 17, 2009 at 08:51

Using IAR / J-Link to Write bank1

This topic has been closed for replies.

7 replies

yossi_z
yossi_zAuthor
Associate II
May 17, 2011
Posted on May 17, 2011 at 09:45

Hi,

I have used CAPS tool and R-Link to change the Boot order from bank0 to Bank1

I am using IAR IDE + J-Link, By default the IAR download the application to Bank0, How can I download the application to bank1 using IAR ?

Thanks

usatyj
Visitor II
May 17, 2011
Posted on May 17, 2011 at 09:45

I use IAR 4.30. There is source code of flashloader, which load Bank 0.

I add piece of code, which load Bank 1 (like Bank 0 but another addresses and sectors size), and now use this loader for all projects.

stefano239955_stm1_stmicro
Associate III
May 17, 2011
Posted on May 17, 2011 at 09:45

I downloaded yesterday the IAR 5.0

In this release there are some samples related with this kind of problems

I hope to tell you something more in the next days.

rhys
Visitor II
May 17, 2011
Posted on May 17, 2011 at 09:45

Usatyj,

Could you POST your modified files that load both Banks.

Thanks,

Rhys

rmichon
Visitor II
May 17, 2011
Posted on May 17, 2011 at 09:45

Hi all,

to set the bank 1 as the boot bank on the st9 using jlink, you can use the Segger j-link tools.

you can find them here:

http://www.segger.com/cms/downloads.html?pid=13

open the folder with command line and call jlinkstr91x.exe.

it should connect through jlink. you then have to type 'setb 1' and you're done. the boot bank will be the bank 1.

hope it helps!

cheers,

Bib'

jilisegiar
Associate III
May 17, 2011
Posted on May 17, 2011 at 09:45

The STR91x Flash loader included in the latest version of IAR(EWARM5.11) supports the 2 bank 0 & 1 and it detects automatically which bank is @ 0x0.

So remap the bank 1 to address 0x0, and link you code to 0x0 then the loaded code will be put in bank 1.

Rgds

kim1417
Associate II
May 17, 2011
Posted on May 17, 2011 at 09:45

Hi.

I want to find Boot Loader (Simmilar IAP) in IAR + J-Link.

But, I don't know how i write to bank1 of flash.

So, I want to need your code.

Please, let me send your source code(Usatyj)!

Please...

Help me!