cancel
Showing results for 
Search instead for 
Did you mean: 

Restart ST7 after unplugging power supply

philippe_cardi
Associate II
Posted on April 03, 2006 at 15:39

Restart ST7 after unplugging power supply

15 REPLIES 15
luter
Associate II
Posted on March 15, 2006 at 05:42

Hi.

Before i used indart softec debugger and i had no problems with reset. now i am using rlink from raisonance, and what amazing is: micro does not do self-reset after power on if rlink connected to the board.

Try to unplug your debugger.

And read the following post, may be it will help you:

http://mcu.st.com/mcu/modules.php?mop=modload&name=Splatt_Forums&file=viewtopic&topic=3719&forum=1

philippe_cardi
Associate II
Posted on March 15, 2006 at 12:30

ok,

I'm going to look at that.

But I don't know how to do only a reset. So I'm going to focus on simple reset...

thanks

philippe_cardi
Associate II
Posted on March 20, 2006 at 10:05

Hi,

I try to be clean.

The reset pin is Vdd after I release reset button.

With or without in-Dart, when I use reset button the micro stop but doesn't restart.

So, I think that the label _stext haven't been defined.

Luca, you said that stext is defined in the start up file : crts.s.

I find this file in a Cosmic folder and there is a ''jump'' to main inside.

But can you explain to me how the link between my file and crts.s is done ? Because I think that this file is not in micro.

Thanks

[ This message was edited by: Orlando on 20-03-2006 14:43 ]

luca239955_st
Associate III
Posted on March 20, 2006 at 10:27

the ''link'' is the reset vector; go look in the memory at address 0xFFFE and you should see the address of the first instruction of the crts (which should be RSP).

Make sure you check out this problem with Softec as well; I don't know the details of how the InDART operates, but it might be that the reset vector is ''used'' for some reason.

Regards,

Luca

philippe_cardi
Associate II
Posted on March 21, 2006 at 12:08

when I launch a debug session ... I try to find in the dissassembly window the memory address 0xFFFE and I just have the :

0xFFFD < __vectab+29

0xFFFF < __vectab+31

Could you tell why I don't have the memory address FFFE ????

A the beginning of the memory I have :

0xE000 < __stext

0xE001 < __stext+1

0xE004 < _exit

main.c:29

Thanks

Viktor POHORELY
ST Employee
Posted on April 03, 2006 at 15:39

Hi Orlando,

how did you programm your micro?

by entering the debug session only, or by programming feature of InDART?

What about oscilator, is it working after reset?