Not applicable
Oct 15, 2013
04:04 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oct 15, 2013
04:04 PM
I need to issue a software reset in my code that restarts the processor as if it had gone through a power-on reset.
Is there a macro or a DAVE app function call that will do this?
Thanks,
Kirk
Is there a macro or a DAVE app function call that will do this?
Thanks,
Kirk
- Tags:
- IFX
5 Replies
Oct 16, 2013
11:16 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oct 16, 2013
11:16 PM
Kirk wrote:
I need to issue a software reset in my code that restarts the processor as if it had gone through a power-on reset.
Is there a macro or a DAVE app function call that will do this?
Thanks,
Kirk
Sorry to say we do not have a specific Apps for this purposes. You might want to consider "Software reset via Cortex-M4 Application Interrupt and Reset Control Register
(AIRCR).
Application Interrupt and Reset Control Register.
The AIRCR provides priority grouping control for the exception model, endian status for data accesses, and reset control of the system.
To write to this register, you must write 0x5FA to the VECTKEY field, otherwise the processor ignores the write.
Implementation should not be too difficult.
G@@d luck.
Not applicable
Oct 18, 2013
10:30 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oct 18, 2013
10:30 AM
Yes, that works.
I just needed to find the correct page (out of 2600 pages) in the XMC4500 reference manual. 🙂
Thanks for your help,
Kirk
I just needed to find the correct page (out of 2600 pages) in the XMC4500 reference manual. 🙂
Thanks for your help,
Kirk
Oct 20, 2013
11:31 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oct 20, 2013
11:31 PM
Kirk wrote:
Yes, that works.
I just needed to find the correct page (out of 2600 pages) in the XMC4500 reference manual. 🙂
Thanks for your help,
Kirk
Good to hear that !!!
Not applicable
Nov 09, 2015
02:33 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 09, 2015
02:33 AM
Hello there,
I know this is quite an old thread but I am curious how you managed to trigger the reboot ... In the reference manual on page 122 I found the AIRCR (Application Interrput and Reset Control Register) description.
In my source code I tried to use this by:
#define AIRCR_ADDR 0xE000ED0C
//#define READ_AIRCR() (*(volatile uint32_t *)AIRCR_ADDR)
#define WRITE_AIRCR(val) ((*(volatile uint32_t *)AIRCR_ADDR) = (val))
...
WRITE_AIRCR(0x5FA0000);
WRITE_AIRCR(0x0000004);
but it doesn't seem to work ... any advice?
thanks
I know this is quite an old thread but I am curious how you managed to trigger the reboot ... In the reference manual on page 122 I found the AIRCR (Application Interrput and Reset Control Register) description.
In my source code I tried to use this by:
#define AIRCR_ADDR 0xE000ED0C
//#define READ_AIRCR() (*(volatile uint32_t *)AIRCR_ADDR)
#define WRITE_AIRCR(val) ((*(volatile uint32_t *)AIRCR_ADDR) = (val))
...
WRITE_AIRCR(0x5FA0000);
WRITE_AIRCR(0x0000004);
but it doesn't seem to work ... any advice?
thanks
Nov 09, 2015
02:43 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 09, 2015
02:43 AM
You may use CMSIS function
NVIC_SystemReset();
that should do it.
rum
NVIC_SystemReset();
that should do it.
rum