2008-11-04 09:54 PM
software reset query
2011-05-17 03:50 AM
Hi rahul,
you can use internal watchdog and stop triggering it. You can use the internal watchdog only for that. Best regards Edi2011-05-17 03:50 AM
i want to reset my controller after writing to flash in one of my applications involving STM32F103RB micro controller . Any suggestions ?????
2011-05-17 03:50 AM
#define CPU_RESET() {AITCR = (AITCR & 0x0000FFFF) | 0x05FA0001;}
AITCR is Application Interrupt and Reset Control Register of NVIC at 0xE000ED0C.2011-05-17 03:50 AM
Hi ivanov,
also a good solution which I haven't known, thank you. Best regards Edi2011-05-17 03:50 AM
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.2011-05-17 03:50 AM
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;}