How to view value of calculated defines | Cypress Semiconductor
How to view value of calculated defines
Can someone please explain how I can view the value of calculated defines during debug?
I have a set of addresses to use as pointers for an array. The first one is defined with a value and the rest are relative to this one.
The subsequent item addresses are calculated by adding offset of number of bytes. This keeps it dynamic so if I want to say extend the number of charectors of a string in the array, I only need to change the define for size of that type of string and all the resulting addresses will be recalculated at run time.
Ram is fine, I can hover over a variable or set up a watch and can see the value. When I hover over the define in code, I only see the formula I used in the define and not the calculated value. This make is diffcult to debug storage location bugs.