cancel
Showing results for 
Search instead for 
Did you mean: 

Configure Boot flash using Usb Jlink or Ulink

alain239955_st
Associate II
Posted on December 17, 2009 at 08:52

Configure Boot flash using Usb Jlink or Ulink

17 REPLIES 17
alain239955_st
Associate II
Posted on May 17, 2011 at 09:31

Hello,

Does any one know how to configure boot flash to secondary flash (the small one of 32K) usinng the IAR Jlink and the IAR WorkBensh or the Keill Ulink and the µVision 3 .

I do not have the needed cable for CAPS.

Regards

Posted on May 17, 2011 at 09:31

Dear acorchia,

you can find the info how to change the boot sector in the

STR91xF_programming_manual.pdf

if I'm right the register is the 0x520006

You have to modify the macro file

if u use the iar compiler look for the ''FlashSTR91x.mac''

copy and modify the file adding the line

__writeMemory32( __your_flags__, 0x520006, ''Memory'');

where __your_flags is the right bits configuration for you.

kwun-keat
Associate II
Posted on May 17, 2011 at 09:31

I have the Keil eval board MCBSTR9 ver2 with ULINK cable.

I think I need to purchase the FlashLINK cable so that I can use CAPS to change the boot bank. I'm waiting for a quote.

roger_lynx
Associate II
Posted on May 17, 2011 at 09:31

 

On 23-08-2006 at 11:47, zouhair wrote:

 

Hi,

 

The current version of IAR and keil don't support the boot flash feature.

 

Rgds,

 

zouhair

 

Is this an official ST statement?

This is ridiculous (absurd).

At least a suggestion as how to modify the macros, as 'stevejamal' hinted at (however I am not sure a macro can write to NVM).

Neither company, be it IAR or KEIL, are invisible on the ARM market. Buying a proprietary PARALLEL cable widget (FlashLINK) to modify bits in MCU is off-the wall idea.

Have you ST guys seen a PARALLEL port any notebook lately?

OTOH, at least the CAPS 2.1 helps the engineer quickly configure the pin muxing. Although CAPS also could get improved in User Interface area a little bit.

I guess ST sells silicon...sheesh!

Updated: There two versions of RLink (USB), the difference is in price and capabilities.

There are those links:

ULink, Jlink, RLink and NLink.

I have already two JLinks (yellow and black) and one ULink.

But whenever a new version of ARM-based MCU is introduced, there is some kind of missing link. :-Y

[ This message was edited by: hARMless on 14-09-2006 17:16 ]

Posted on May 17, 2011 at 09:31

The ST JLink cable is (as the word meaning) a JLINK interface.

with the jlink interface you can change some registry in the cpu or in the flash writing the appropriate istructions.

I don't have experience with the Keil jlink interface with str. I'm sure that you can find some macro files.

I used the keil complier for the avr and there was a ini file in the project whit the macro for the debugger. Try to check if you find this file.

if you have some practice with the soldering you can build a Parallel port JTAG, there are a lot of exaple in internet (I used

http://hri.sourceforge.net/tools/index.html#jtag

).

alain239955_st
Associate II
Posted on May 17, 2011 at 09:31

OK no other tools than RLink or FlashLINK work to configure a signel bit and set secondary flash as boot flash :(

So I did buy a RLink ... it work.

Now the problem with the Keil compiler is that I had to write a new flash procedure (the one provided for 'normal' flash order did not work any more)

I did it (see attached file)

The problem is now : I use the Str91x libray

As I understand when you change the flash order you must uncomment the define in 91x_fmi.h :

/* ========================================================================== */

/* When bank 1 is remapped at address 0x0, decomment the following line */

/* ========================================================================== */

#define Remap_Bank_1

So did I.

Then when at program start up I use :

FMI_Config(FMI_READ_WAIT_STATE_2,FMI_WRITE_WAIT_STATE_0, FMI_PWD_ENABLE,

FMI_LVD_ENABLE,FMI_FREQ_HIGH);

The cpu crash !

ST documentation is very poor on that point !

It did not explain how to configure all register to boot on secondary flash.

Does any one all ready sucesfully use the bank 1 as boot flash.

Regards

alain239955_st
Associate II
Posted on May 17, 2011 at 09:31

Just to inform you here is the reply from the Keil support :

I feel this a bit like '' This is not our problem !''

 

we are currently checking if we can include this into the ULINK software.

 

Please check release notes of upcoming versions for this feature. At the moment there is no way to do this with ULINK as far as I can see.

 

 

Best Regards,

 

Matthias Hertel

 

 

-------------------------------------------------------------

 

KEIL - An ARM Company

 

Bretonischer Ring 15 D-85630 Grasbrunn

 

Tel: (+49) 89 456040-15 Fax: (+49) 89 468162

 

email:

mailto:mh@keil.com

http://www.keil.com

 

-------------------------------------------------------------

 

Need a Solution Quick? Check Online Support

http://www.keil.com/support

 

anis
Associate II
Posted on May 17, 2011 at 09:31

Hi acorchia,

The CPU crashes because the FMI_Config function writes in the configuration registers of the flash which are located in Bank1.

In fact, you can't execute this function from bank1, you can execute it from RAM .

Best regards,

STARM

alain239955_st
Associate II
Posted on May 17, 2011 at 09:31

YES :D

It's working

Thank you for the help

[ This message was edited by: acorchia on 31-08-2006 15:47 ]