cancel
Showing results for 
Search instead for 
Did you mean: 

resetOn a stm32

niek_ebbers
Associate II
Posted on November 27, 2008 at 07:09

resetOn a stm32

2 REPLIES 2
niek_ebbers
Associate II
Posted on May 17, 2011 at 12:54

Could you post some code to demonstrate the software-reset?

I tried

typedef struct {

u32 VECTRESET : 1;

u32 VECTCLRACTIVE : 1;

u32 SYSRESETREQ : 1;

u32 __1 : 5;

u32 PRIGROUP : 3;

u32 __2 : 4;

u32 ENDIANESS : 1;

u32 VECTKEY : 16;

} SCB_AIRCR_BITS;

typedef union {

u32 all;

SCB_AIRCR_BITS bit;

} SCB_AIRCR_REG;

#define Scb_test (*(volatile SCB_AIRCR_REG *)0xE000ED0C)

then when calling it:

Scb_test.bit.VECTRESET = 1;

nor

Scb_test.bit.SYSRESETREQ =1;

work?

(sorry for not using code-tags, but when I do my message turns op empty....)

[ This message was edited by: niek_ebbers on 27-11-2008 11:16 ]

trevor1
Associate II
Posted on May 17, 2011 at 12:54

have a look at

http://www.st.com/mcu/forums-cat-6361-23.html