Not applicable
Jan 14, 2013
07:56 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jan 14, 2013
07:56 PM
Sir,I want to reboot the XMC4500 by programming how can i do that? Also i want to use the timer which are the example project from which i can take help?
Thanx for reply but in watchdog example when i run it after counter becomes five it does not reset the program but jumps to the following code...of startup_xmc4500.s
file at line no labeled 2 and does not goes away from the instruction...please tell the solution....
/**************startup_xmc4500.s**********************/
/* ================== START OF VECTOR ROUTINES ============================= */
.thumb
/* ======================================================================== */
/* Reset Handler */
.thumb_func
.globl __Xmc4500_reset_cortex_m
.type __Xmc4500_reset_cortex_m, %function
__Xmc4500_reset_cortex_m:
.fnstart
1. /* Disable Branch prediction */
2. LDR R0,=PREF_PCON
3. LDR R1,[R0]
4. ORR R1,R1,#0x00010000
5. STR R1,[R0]
........
.............
..........
....................
Thanx for reply but in watchdog example when i run it after counter becomes five it does not reset the program but jumps to the following code...of startup_xmc4500.s
file at line no labeled 2 and does not goes away from the instruction...please tell the solution....
/**************startup_xmc4500.s**********************/
/* ================== START OF VECTOR ROUTINES ============================= */
.thumb
/* ======================================================================== */
/* Reset Handler */
.thumb_func
.globl __Xmc4500_reset_cortex_m
.type __Xmc4500_reset_cortex_m, %function
__Xmc4500_reset_cortex_m:
.fnstart
1. /* Disable Branch prediction */
2. LDR R0,=PREF_PCON
3. LDR R1,[R0]
4. ORR R1,R1,#0x00010000
5. STR R1,[R0]
........
.............
..........
....................
- Tags:
- IFX
1 Reply
Jan 20, 2013
03:35 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jan 20, 2013
03:35 AM
Hi Mohan,
actually I don't remember any example about the reset (maybe watchdog example).
However there is different kind of reset check chapter 11.5 (Reset Control) of Reference Manual.
For example if you would like to trigger system reset by software with a fully portable method you can use CMSIS function
void NVIC_SystemReset(void) ( it writes AIRCR (Application Interrupt and Reset Control Register )).
Regards
Oreste
actually I don't remember any example about the reset (maybe watchdog example).
However there is different kind of reset check chapter 11.5 (Reset Control) of Reference Manual.
For example if you would like to trigger system reset by software with a fully portable method you can use CMSIS function
void NVIC_SystemReset(void) ( it writes AIRCR (Application Interrupt and Reset Control Register )).
Regards
Oreste