Hello
The watchdog takes some reason, so I'm trying to skip to the watchdog interrupt (WDOG_DriverIRQHandler) and investigate where it's coming from.
The following sources.
I am using SDK_2.6.0_MKE04Z128xxx4.
What's wrong?
*** startup routine ***
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;
;;
;; Default interrupt handlers.
;;
THUMB
PUBWEAK Reset_Handler
SECTION .text: CODE: REORDER: NOROOT (2)
Reset_Handler
*****Omit here
PUBWEAK WDOG_IRQHandler
PUBWEAK WDOG_DriverIRQHandler
SECTION .text: CODE: REORDER: NOROOT (2)
WDOG_IRQHandler
LDR R0, = WDOG_DriverIRQHandler
BX R0
.
*****Omit here
END
*** watchdog initialize ***
void boardWdogInit (void)
{
wdog8_config_t wdogConfig;
.
WDOG8_GetDefaultConfig (& wdogConfig);
wdogConfig.timeoutValue = WDOG_TIMEOUT;
wdogConfig.enableInterrupt = true;
.
WDOG8_Init (WDOG, & wdogConfig);
.
WDOG8_EnableInterrupts (WDOG, WDOG_CS1_INT_MASK);
NVIC_EnableIRQ (WDOG_IRQn);
}
*** interrupt routine ***
void WDOG_DriverIRQHandler (void)
{
*****Omit here
}
Thank you.
jun.
Solved! Go to Solution.
Hi,
If your configuration is OK,you can set a val in handle to debug to watch if it is changed. But you need to avoid ram been inited after system reset.
Jianyu:
Have a great day,
TIC
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------
Thank you very much.
Hi,
If your configuration is OK,you can set a val in handle to debug to watch if it is changed. But you need to avoid ram been inited after system reset.
Jianyu:
Have a great day,
TIC
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------
" How should I use the assembler?"
step1: MCUXpresso IDE-> Debug the project you wants to check in assembler-> window->perspective-> assumbler
step2:
make brake point in startup before main function call
step3:
Press "F5" for line by line execution of assmbly at same time user memory attribution map for memory update
Hi.
thank you for your answer.
Is there an example of an assembler source that gets the stack data in a watchdog timer interrupt handler? I want to know where I jumped to the watchdog timer interrupt.
Jun.
Hi.
https://community.nxp.com/message/939533
When I saw this answer, it was stored in RAM, so it seems that it is jumping to an interrupt. (It looks like the debugger is catching up).
So another question is, I want to record the stack to know where it came from. How should I use the assembler? Please let me know if you have a sample.
thank you.
jun.