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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

1,901件の閲覧回数
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 件の賞賛
7 返答(返信)

1,896件の閲覧回数
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 件の賞賛

1,895件の閲覧回数
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 件の賞賛

1,892件の閲覧回数
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 件の賞賛

1,887件の閲覧回数
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 件の賞賛

1,882件の閲覧回数
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 件の賞賛

1,879件の閲覧回数
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 件の賞賛

1,855件の閲覧回数
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

 

タグ(1)
0 件の賞賛