Option bit/byte in S32k312

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

Option bit/byte in S32k312

Jump to solution
1,429 Views
shivakrishna
Contributor I

Hello NXP team,

i am working on S32k312 controller, in that i want to use option bit/Byte .

can you provide option bit information in that controller.

requesting to help me to provide the option bit/byte related register information 

0 Kudos
Reply
1 Solution
1,387 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

Can you please explain the context of this question? I'm not entirely clear what it's about.

Thanks

View solution in original post

0 Kudos
Reply
5 Replies
1,356 Views
shivakrishna
Contributor I

Hello NXP team,

Op Bit(Operation bit) is required to avoid the Functional resets , while doing debug. as per my project requirement developed SWT and ExtWDG . but i cant do debug because once create any breakpoint , timer overflow shall be happen and system is going to reset. to avoid this condition in debug mode i need to check the Op Bit based on this i can decide is it debug or release .

0 Kudos
Reply
1,326 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

So you want to detect in your code, whether MCU is in debug mode or not.

I have found some solution here:

https://stackoverflow.com/questions/59765691/arm-cortex-m-detect-if-debugger-is-in-run-or-debug-mode

DHCSR register contains status fields, containing information about debug state.

davidtosenovjan_0-1693829915917.png

davidtosenovjan_1-1693829938836.png

 

 

0 Kudos
Reply
1,303 Views
shivakrishna
Contributor I

Hello NXP team, 

In S32K312 Datasheet DHCSR register not available. 

and how to control(disable) External watchdog in debug mode in S32K312 controller.

0 Kudos
Reply
1,259 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

DHCSR register is described in ARM documentation, specifically in the document
DDI0403E_e_armv7m_arm.pdf

as it is pointed by
DDI0489F_cortex_m7_trm.pdf

https://developer.arm.com/documentation/ddi0489/f/?lang=en

https://developer.arm.com/documentation/ddi0403/ee/?lang=en

 

0 Kudos
Reply
1,388 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

Can you please explain the context of this question? I'm not entirely clear what it's about.

Thanks

0 Kudos
Reply