Problem seeing registers in EFR32FG14 example of GPIO toggling

Thread Starter

yef smith

Joined Aug 2, 2020
835
Hello, i have tried to debug the example shown in the link bellow:
Using simplisity studio 4 i want to see live the value in IFC and IF registers in GPIO.
I have attached a video of how i tried to use simplity studio 4 to debug this example.
when burn the software it worked perfectly on my evm board .
but when i try to debug and see the IFC IF registers Its not working,Where did i go wrong?
Thanks.
https://github.com/SiliconLabs/peri...ries1/gpio/switch_led_interrupt/src/main_s1.c

Video of how i tried to debug using simplisity studio:
https://www.veed.io/view/1866766d-31a3-479a-9f65-02420b3e2263?sharingWidget=true&panel=share
 

MrChips

Joined Oct 2, 2009
31,075
Hello, i have tried to debug the example shown in the link bellow:
Using simplisity studio 4 i want to see live the value in IFC and IF registers in GPIO.
I have attached a video of how i tried to use simplity studio 4 to debug this example.
when burn the software it worked perfectly on my evm board .
but when i try to debug and see the IFC IF registers Its not working,Where did i go wrong?
Thanks.
https://github.com/SiliconLabs/peri...ries1/gpio/switch_led_interrupt/src/main_s1.c

Video of how i tried to debug using simplisity studio:
https://www.veed.io/view/1866766d-31a3-479a-9f65-02420b3e2263?sharingWidget=true&panel=share
Have you tried setting a breakpoint?
 

Thread Starter

yef smith

Joined Aug 2, 2020
835
Hello Mrchips ,I am following the manual.i did put breaking points at the event handler.
I have attached a video where i try to press the step into "9" button and press the PB1 button.
I dont see the logic at what stage should i press PB1 button so i could see my GPIO -> IF register change in value?

What is the proper way to press PB1 button and using F5 step into for debugging IF and IFC registers?
Videoof how i tried shown bellow.
https://usaupload.com/6SFG/2023-02-16_15-20-29.mp4

https://docs.silabs.com/simplicity-studio-5-users-guide/latest/ss-5-users-guide-testing-and-debugging/using-the-debugger#:~:text=The classic Simplicity Studio debugger,examine memory, variables and registers.



1676553015029.png
1676553160996.png1676552928650.png
 

MrChips

Joined Oct 2, 2009
31,075
I do not know what is PB1.

You can pause your program execution by clicking SUSPEND icon (6) or when the processor reaches a breakpoint.
From here you can view the registers.
 

Thread Starter

yef smith

Joined Aug 2, 2020
835
Hello MrChips, PB1 is press button 1 on my board.the GPIO pin which triggers the odd interrupt.
I have some progress andi see my IF register change value when i press the push button and press resume .
But the IFC stays 0 all the time during the debbuging procces .(as shown in the attached video)
Why is that?
Thanks.
https://usaupload.com/6SGZ/2023-02-16_18-41-36.mp4
 

MrChips

Joined Oct 2, 2009
31,075
If you initiate an interrupt and click on resume you will not see the interrupt flag being set, assuming that the interrupt service routine (ISR) clears the interrupt flag.

If you want to catch the interrupt flag being set, you have to place a breakpoint in the ISR before the flag gets cleared.
You can catch the interrupt in real time with an oscilloscope by generating a pulse in the ISR.
 
Top