cancel
Showing results for 
Search instead for 
Did you mean: 

software reset query

rahul
Associate II
Posted on November 05, 2008 at 06:54

software reset query

6 REPLIES 6
pt1
Associate II
Posted on May 17, 2011 at 12:50

Hi rahul,

you can use internal watchdog and stop triggering it.

You can use the internal watchdog only for that.

Best regards

Edi

rahul
Associate II
Posted on May 17, 2011 at 12:50

i want to reset my controller after writing to flash in one of my applications involving STM32F103RB micro controller . Any suggestions ?????

ivanov-i
Associate II
Posted on May 17, 2011 at 12:50

#define CPU_RESET() {AITCR = (AITCR & 0x0000FFFF) | 0x05FA0001;}

AITCR is Application Interrupt and Reset Control Register of NVIC at 0xE000ED0C.

pt1
Associate II
Posted on May 17, 2011 at 12:50

Hi ivanov,

also a good solution which I haven't known, thank you.

Best regards

Edi

rahul
Associate II
Posted on May 17, 2011 at 12:50

Quote:

On 05-11-2008 at 11:03, Anonymous wrote:

#define CPU_RESET() {AITCR = (AITCR & 0x0000FFFF) | 0x05FA0001;}

AITCR is Application Interrupt and Reset Control Register of NVIC at 0xE000ED0C.

Thanks .

it's working.

actually i was exploring this one only in datasheet but i had to do it fast. so thanks for sharing the info.

rahul
Associate II
Posted on May 17, 2011 at 12:50

one more thing 1 wud like to add .

since i was using the support library of st ver 1.0

so i had to modify the above to the following to make it functional :

#define CPU_RESET() {SCB->AIRC = (SCB->AIRC & 0x0000FFFF) | 0x05FA0001;}