My debugger only has JTAG, i.e. no real-time tracing via Arm's ITM SWV (SWD+SWO) or J-Link RTT. How can Tracealyzer be used, either streaming via uart (USB CDC), or versus placing in ram for later analysis? Would love to see a typical debug session using Eclipse+Tracealyzer and an STM32.
Yes you can still use Tracealyzer to retrieve event information. You may need to setup your own custom user channel for trace data in order to transmit the value of the watermark for the stack.
It is possible to use IAR. I've seen it done on the Renesas Synergy platform but it involved creating some special macros that I don't quite recall. I would recommend jumping over to Percepio's contact page and ask them how it would be done. The link is percepio.com/contact/ I know they'll be able to get you the right setup. Thanks for the question!
57:40 -- I see here and also in some books from another RTOS Vendor that it is not recommended to use a "Binary Semaphore" for acquiring an exclusive lock over a resource. Is that mandatory? Wouldn't a binary Semaphore give me the same results?
Yes and no. You can use a binary semaphore to lock a resource but a mutex is a better tool for this. Mutexes have a feature called priority inheritance which are not available on semaphores that can help alleviate and avoid priority inversions. Use a mutex for locking access to a resource.
The structure of this video really helped retain they major points.
thank you for organizing the information.
Glad it was helpful!
My debugger only has JTAG, i.e. no real-time tracing via Arm's ITM SWV (SWD+SWO) or J-Link RTT.
How can Tracealyzer be used, either streaming via uart (USB CDC), or versus placing in ram for later analysis?
Would love to see a typical debug session using Eclipse+Tracealyzer and an STM32.
Very nicely done
Would be nice to know how to debug like this in a Linux embedded box, thanks.
Noted. Perhaps something to look at in the future.
I am using FreeRTOS on STM32 with Keil uvision . Can we use tracelyzer for stack analysis in this case as explained in the video ?
Yes you can still use Tracealyzer to retrieve event information. You may need to setup your own custom user channel for trace data in order to transmit the value of the watermark for the stack.
can we debug the RTOS using IAR IDE through Tracealyzer?If it so how can we do that?
It is possible to use IAR. I've seen it done on the Renesas Synergy platform but it involved creating some special macros that I don't quite recall. I would recommend jumping over to Percepio's contact page and ask them how it would be done. The link is
percepio.com/contact/
I know they'll be able to get you the right setup. Thanks for the question!
You can use Tracealyzer with any IDE. If I was using FreeRTOS within IAR, the process would be the same for streaming trace.
57:40 -- I see here and also in some books from another RTOS Vendor that it is not recommended to use a "Binary Semaphore" for acquiring an exclusive lock over a resource. Is that mandatory? Wouldn't a binary Semaphore give me the same results?
Yes and no. You can use a binary semaphore to lock a resource but a mutex is a better tool for this. Mutexes have a feature called priority inheritance which are not available on semaphores that can help alleviate and avoid priority inversions. Use a mutex for locking access to a resource.
Would you give some tutorials on openocd debug?
Thanks for the comment. I will give this some thought.
Whats is the IDE?
Integrated Development Environment. In these examples, Keil MDK
The Integrated development environment.