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
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.
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
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.
I'm not able to reproduce it in S32DS 2.2, even if I disable PLATCGC[CGCGPIO].
Which S32DS IDE version do you use and what debugger?
Have you tried with the Peripheral Registers view instead?
Regards,
Daniel
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.
Hello @abhinandan,
Can you try the following:
1. Set the pins as GPIO Outputs:
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
Thank you,
BR, Daniel