hi all.
working on STM32F207IG with MDK compiler V5.06 update 6 build 750.
debugging "release" version with trace enabled.
sAxis[0].lActualVelocity is an int32 public variable.
impossible to trace vartable because of "Cannot add ... to Logic Analyzer" error.
sorry but i don't understand the reason why debugger can't work.
thanks for cordial help.
davide
Hi Davide,
Can you trace other variables, or is it only this variable that has an issue? Do you see other trace OK (such as instruction trace)?I am unsure what you mean by 'public' variable, do you mean global?Does anything in the below help (I don't think it is relevant, other than the variable being global):https://developer.arm.com/documentation/101407/0538/Debugging/Debug-Windows-and-Dialogs/Logic-Analyzer/Restrictions
Regards, Ronan
I moved this thread to the Keil specific forum.
hello Ronan.
for "public" i mean "global". i took already a look to the "restriction section": all the variables i tried to trace belong to those the restrictions call "global program variable". so i think they are suitable to be traced.
while writing this reply i repeated again the test. and i have an important news!
by chance, i detected a possible reason for the message "Cannot add variable to Logic analyzer".
as usual the simplest things are the first to take care of.
just activating the flag "PC sampling - Periodic" it makes it possible to add variables to Logic Analyzer!!!
sorry for all bore i bore.
i didn't give the necessary attention to all notes about this flag. but i think it should be useful for everybody to remark its importance.
now i'll go on with tracing activity, in order to study my firmware behaviour.
thank you for your usual kind/quick help