PDOR,PDIR register in Embsys Register window having status "not read"

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

PDOR,PDIR register in Embsys Register window having status "not read"

1,845 Views
abhinandan
Contributor II

I am unable to read the PDOR and PDIR register values after running my program, I am attaching the screen shot of it for your reference, Can you please help me to understand why this is happening and what can be done to correct it.

0 Kudos
7 Replies

1,840 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @abhinandan,

Do you mean you are looking for a solution to monitor the registers while the MCU is not halted but running?

 

BR, Daniel

 

0 Kudos

1,839 Views
abhinandan
Contributor II

Hi Daniel,

  Thank you for your reply. I want to see the status of the pin, for that which registers should I monitor. I am little confused about this. This I have to see after completion of debugging step. I am able to see the logic state of the pins on logic analyzer, same thing I wanted to see on the registers to verify the logic level.

0 Kudos

1,836 Views
danielmartynek
NXP TechSupport
NXP TechSupport

The EmbSys registers view does not support real-time monitoring when the target is running.

It works when the target is halted.

So, do you have this problem when you halt the MCU?

 

BR, Daniel

0 Kudos

1,831 Views
abhinandan
Contributor II

Ya when it is halted, I have seen a demo in the NXP website were they show the change of the register values with single step debugging, that I tried to implement I could not get, I might be doing some mistake, please let me know about this. One more thing is it possible to assign the 32 bit register value to any variable, kindly let me know.

0 Kudos

1,826 Views
danielmartynek
NXP TechSupport
NXP TechSupport

I'm not able to reproduce it in S32DS 2.2, even if I disable PLATCGC[CGCGPIO].

danielmartynek_0-1649420509841.png

Which S32DS IDE version do you use and what debugger?

Have you tried with the Peripheral Registers view instead?

danielmartynek_1-1649420617417.png

danielmartynek_2-1649420670607.png

 

Regards,

Daniel

 

0 Kudos

1,823 Views
abhinandan
Contributor II

I am using S32 2.2  Open SDA debugger. In peripheral register view I dont see any changes after the execution of the code. I am little confused on verifying the register content. I will attach the screen shot of small example code, in which I set the Port A pins 0,1,2,3, it would be helpful if you could guide me on which register should I verify for seeing the logic states of these pins.

0 Kudos

1,799 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @abhinandan,

Can you try the following:

1. Set the pins as GPIO Outputs:

danielmartynek_0-1649674585026.png

2. Generate the SDK code:

3. Write 0xF to the port

    PINS_DRV_Init(NUM_OF_CONFIGURED_PINS, g_pin_mux_InitConfigArr);
    PINS_DRV_SetPins(PTA, 0xF);

4. Read the register

danielmartynek_1-1649674722267.png

 

Thank you,

BR, Daniel

 

Tags (1)
0 Kudos