This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Question about Logic analyzer with STlink and Ulinkpro

Dear All,

I have a ST-LINK/V2 debugger and I tried to use Logic Analyzer (LA) feature of µVision. I would like to convert analog signals and put them to IIR type filter to remove unwanted contents of the signals. I would like to watch the signals and their filtered forms in a graph like in the video whose links given below.

https://www.youtube.com/watch?v=xo1D2Rm2BQ4&feature=emb_logo (It is long video and have look at 17:00)

ADCs convert analog data every ~40us and some calculations and scaling are applied before putting the signals to low pass IIR type filter. I use filtered signal for other calculation so on.

I realized that ST-Link is not enough for this kind of debug feature. To be honest I made my first test to visualize a counter value which increases every 1ms (Case:1) and ST-Link made good job and I didn't think carefully at that time. However, when the counter increases every 40us (Case:2) in ADC interrupt subroutine, LA cannot visualize the counter. I read some documents about LA and Trace feature/debug options etc. but nothing solved. µVision gives SW Buffer Overrun error message for Case:2. However it works fine for Case:1. I would like to observe SWO pin with a scope and I realized that data comes continually for Case:2. There is no gap between two frames. There is a gap between two frames for Case:1. Please find the screenshots of LA and the scope for both cases. I also added Target Driver Setup screenshot.  I already ordered Ulinkpro D but it will take one week to have it. I would like to evaluate time until Ulinkpro D will be received. I have to two questions as follows: 

1-      I don’t know how trace features works. However, if there is a way to reduce data on SWO bus, it may help to overcome this problem temporarily. I made a test and I removed everything in watch window and LA and also closed them. However, data comes continuously on SWO pin and nothing changed or I cannot observe the change. I thought that if I can reduce useless data for me on SWO, I may observe at least one ADC result on LA, but I didn’t find a way to do it. 2 MHz is not enough for all coming data.

2-      As I mentioned that I ordered Ulinkpro D and I am not sure if it is capable to show at least two signals at the same time on LA with SWO. Ulinkpro D Serial wire trace capturing capability reaches up to 100 Mbit/sec which is 50 times faster than ST-Link. However, I am not sure if it is enough or not. Previous projects, I used JTAG port for TI DSPs and it was enough to observe two signals at the same time. If SWO is not enough for that, shall I change SWO interface to for example JTAG. JTAG is slower and I guess same DATA/Clock pin counts are used with serial wire trace. However, If it is the case, I need to change PCB as well and I may evaluate time to change PCB design waiting Ulinkpro D. 

Thank you very much in advance for your kind help.

Best Regard

0