MKL16Z256 - Why are some Peripherals locked out at time to time

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

MKL16Z256 - Why are some Peripherals locked out at time to time

1,615 Views
bgraham
Contributor IV

MCUXpresso IDE v11.0.0 [Build 2516] [2019-06-05]

Segger j-link Plus

I am attempting to set the COP registers to start, stop and refresh the WatchDog.

While stepping through code, I will attempt to view my MCU's Peripherals, like the SIM, in the Peripherals window or the Memory window.

But the peripheral, or some of its registers will be locked out.

Why is this happening?

Thanks,

Bruce Graham

0 Kudos
Reply
7 Replies

1,484 Views
lpcxpresso_supp
NXP Employee
NXP Employee

So can you tell us something about the modifications you have made to your perspective (IDE screen layout). Is this the standard Develop (or maybe Debug) perspective that you have made slight changes to the layout of the views - or something more extensive?

Also, please can you provide the full .log file that can be found inside the .metadata subdirectory inside your workspace folder (NOT inside the project folder, but rather one level up).

Regards,

MCUXpresso IDE Support

0 Kudos
Reply

1,484 Views
bgraham
Contributor IV

I am using the debug perspective.

I reset the debug perspective, and moved windows around so that the MCUXpresso window can be captured.

See below.

Sorry, but I deleted the .log files some time ago. There are no .log files in my workspace directory or sub-directories.

How can I get the .log files?

Thanks,

Bruce

pastedImage_1.png

0 Kudos
Reply

1,484 Views
lpcxpresso_supp
NXP Employee
NXP Employee

You reference a screen capture - but don't appear to have posted it. Please can you do so, so we can look at what you are seeing?

One thing to note is that debugging with watchdogs active is generally a bad idea ....

Regard

MCUXpresso IDE Support

0 Kudos
Reply

1,484 Views
bgraham
Contributor IV

Sorry about the screen capture being lost.

I will make a new post about debugging an app that has the COP Watchdog enabled.

My app is most definitely halted. My code has stopped toggling an LED, so the MCU is halted.

Please see my screen capture below.

Thanks,

Bruce

pastedImage_1.png

0 Kudos
Reply

1,484 Views
bgraham
Contributor IV

Same problem in

MCUXpresso IDE v11.0.1 [Build 2563] [2019-09-01]

Bruce

0 Kudos
Reply

1,484 Views
Omar_Anguiano
NXP TechSupport
NXP TechSupport

Hello Bruce Graham

In order to being able to see the peripherals registers, you need to have your debug session at pause. However some registers are read only and you can't make any change.

If you are not able to see the peripheral's registers then your code is still in execution.

pastedImage_2.png

 

Let me know if this is helpful.

Best regards,

Omar

0 Kudos
Reply

1,483 Views
bgraham
Contributor IV

You can see from my screen capture that the code is halted in the debugger.

So, can you please tell me how I can help you FIX THE BUG?

Thanks,

Bruce

Senior Software Engineer
TechnoSoft Innovations, Inc.
bgraham@technosofteng.com

900 Perimeter Park Drive, Suite C
Morrisville, NC 27560
Phone 919-337-0866 Ext 104

0 Kudos
Reply