Does not jump to the watchdog interrupt. (MKE04Z128)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Does not jump to the watchdog interrupt. (MKE04Z128)

Jump to solution
1,906 Views
jun1
Contributor V

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.

Labels (1)
0 Kudos
Reply
1 Solution
1,859 Views
nxf58904
NXP Employee
NXP Employee

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.

 

 11111111111111111111111.png2222222222222222.png

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.
-------------------------------------------------------------------------------

View solution in original post

0 Kudos
Reply
5 Replies
1,846 Views
jun1
Contributor V

Thank you very much.

0 Kudos
Reply
1,860 Views
nxf58904
NXP Employee
NXP Employee

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.

 

 11111111111111111111111.png2222222222222222.png

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.
-------------------------------------------------------------------------------

0 Kudos
Reply
1,892 Views
Anonymous
Deactivated User

" 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

0 Kudos
Reply
1,881 Views
jun1
Contributor V

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.

 

 

0 Kudos
Reply
1,903 Views
jun1
Contributor V

 

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.

 

 

0 Kudos
Reply