Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

PSoC™ 5, 3 & 1 Forum Discussions

JoBr_1593366
Level 5
50 questions asked 100 replies posted 50 replies posted
Level 5

Is there a way to view the values of complicated macros, like USB_ARB_EP_BASE?

0 Likes
1 Solution
Ekta
Moderator
Moderator 250 solutions authored 100 likes received 250 sign-ins
Moderator

Hi @JoBr_1593366 

You can store the value of the macro in a variable and add a variable breakpoint or if the macro ultimately stores the value at a physical address you can a memory watchpoint to monitor the value at the address.

To add a memory watchpoint: 

  • From the PSoC Creator Debug menu, select New Breakpoint > Memory Watchpoint...

  • In the Breakpoints window New menu, select Watch Memory...

    Ekta_0-1657506863416.png

In a similar way you can also add a function or a variable breakpoint.

Best Regards
Ekta

View solution in original post

0 Likes
1 Reply
Ekta
Moderator
Moderator 250 solutions authored 100 likes received 250 sign-ins
Moderator

Hi @JoBr_1593366 

You can store the value of the macro in a variable and add a variable breakpoint or if the macro ultimately stores the value at a physical address you can a memory watchpoint to monitor the value at the address.

To add a memory watchpoint: 

  • From the PSoC Creator Debug menu, select New Breakpoint > Memory Watchpoint...

  • In the Breakpoints window New menu, select Watch Memory...

    Ekta_0-1657506863416.png

In a similar way you can also add a function or a variable breakpoint.

Best Regards
Ekta

0 Likes