Hi all!
I bought Segger J-Link JTAG and I wanted to make a try with Logic Analyzer. I have unlocked debug state of my STM32F107 as described in Keil Help, made a simple while loop with incrementation like shown below: lh4.ggpht.com/.../trace1.jpg
and after I have run my program for several seconds, stopped it and I found I didnt record any result. I start and stop for several times, and that are the only positions Logic Analyzer recorded: lh4.ggpht.com/.../trace2.jpg
As you can see my trace have NOT been overflowed, and my debug settings looks like this: lh4.ggpht.com/.../trace3.jpg
even if I set more trace ports it is always the same :(
But it is not volatile, so the compiler can copy the variable contents into a register, and continue to run the loop with just a register value.
I dont have the hardware with me to check if this is correct.
Please tell me how to declare a variable to observe it in Logic Analyzer.
volatile int test; void main(void) { while(1) { test++; } }
Is that ok?
At the moment there is a problem with JLink and reading SWO, we are working on this.
BR, /th.
Sorry for double post. @Thorsten de Buhr
"At the moment there is a problem with JLink and reading SWO, we are working on this." -At the moment... - so it means it never works?! Im using the newest Keil uVision 4.10, it should be written somewhere that Keil uVision does not fully cooperate with certain JTAGs so people can choose proper debuggers. :(
http://www.keil.com/support/man/docs/jlink/jLink_STM32F10xxx.htm
To use CoreSight trace functionalities, the STM32F10xxx device, the debugger adapter and connector, as well as µVision have to be configured properly:
www.keil.com/.../jLink_trace_la_window.htm
To display variables in the Logic Analyzer:
1. Enable Timestamps in the Target Driver Setup - Trace dialog, and select an appropriate Prescaler value to define the granularity of the timestamps. 2. Drag and drop variables you want to watch to the Logic Analyzer.
If you read my first post and clicked on third image you would know I read ALL the manuals and configured everything properly. It is pointless trying to help everyone by coping manuals into the threads. We read it!
At the moment it came up uVision is not compatible with J-Link.