Posted on May 17, 2011 at 12:54Could 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 ]