imxrt1170 while running a program it's going to the sleep mode..

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

imxrt1170 while running a program it's going to the sleep mode..

606 Views
Akmalkhan
Contributor I

hi I am executing my project on the rt1170 custom board I faced the below issues

1) breakpoints sometimes work properly and sometimes not working, how can I fix this issue?

2) custom board is going to sleep mode, again and again, what is the problem?

I am using a serial bootloader to wake it up. but I need a better solution because I cannot reconfigure the board to serial downloader mode again and again.

0 Kudos
Reply
3 Replies

521 Views
Akmalkhan
Contributor I

1) no we are not using example code we are developing the project ourselves

2)rt1170 initializing by using board files

3)we are using single core i.e cm7

4) after applying the breakpoints program will not stop at the breakpoints it will run continuously

5) by using step methods and breakpoints note: the initial temporary break is not working to debug in the step method

6)after the main programs for 2 to 3min is going to sleep mode 

        6.1) I observed once while using the GPT timer it went to the sleep mode

7)we aren't using watchdog timers

0 Kudos
Reply

504 Views
EdwinHz
NXP TechSupport
NXP TechSupport

Hi @Akmalkhan,

Thank you for the clarifications. Nothing stands out as the clear reason why it would go yo sleep from the details you mention. Are you certain you are not implementing sleep routines in your code? As the RM mentions, the "CPU enters sleep state with WFI/WFE instruction".

As for the breakpoint issue, please look into the following links:
https://community.nxp.com/t5/LPCXpresso-IDE/Won-t-set-break-point/m-p/770446
https://mcuoneclipse.com/2013/02/19/skipping-breakpoints/
https://mcuoneclipse.com/2012/07/29/software-and-hardware-breakpoints/

BR,
Edwin.

0 Kudos
Reply

586 Views
EdwinHz
NXP TechSupport
NXP TechSupport

Hi @Akmalkhan,

It is hard to say with the information provided. Could you please provide more details about what exactly you are doing? Are you using an example code from the SDK? How are you initializing the RT1170? Is it a single or multicore application? Have you seen any patterns for the breakpoints, or they seemingly stop working at random? How are you debugging the RT? Are you certain it is going to sleep, or could it be resetting, perhaps due to the watchdog? Any more details can be of great use in order to better pinpoint the issue.

BR,
Edwin.

0 Kudos
Reply