About DAVE3

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Not applicable
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]

........
.............
..........
....................
0 Likes
1 Reply
oreste
Employee
Employee
Welcome! 50 replies posted 25 replies posted
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
0 Likes