# Tracealyzer with IAR

**URL:** <https://forums.freertos.org/t/tracealyzer-with-iar/20947>\
**Category:** Percepio\
**Created:** [July 12, 2024, 5:39am UTC](https://forums.freertos.org/t/tracealyzer-with-iar/20947 "2024-07-12T05:39:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pilot8](https://avatars.discourse-cdn.com/v4/letter/p/9d8465/32.png) [@Pilot8](https://forums.freertos.org/u/Pilot8)\
**Post date:** [July 12, 2024, 5:39am UTC](https://forums.freertos.org/t/tracealyzer-with-iar/20947/1 "2024-07-12T05:39:57Z")

</div>

I work on a project which uses Renesas MCU. The IAR is 9.10. I followed [FreeRTOS — Trace Recorder 4.8.0 documentation](https://percepio.com/getstarted/latest/html/freertos.html) to setup Tracealyzer with IAR.  
Here are what I did:

- Copy the TraceRecorder files to my project folder
- Added the files and folders to my project
- Added the path in the project options
- In trcConfig.h:  
o add #include “bsp\_api.h” and comment out #error “Trace Recorder: Please include your processor’s header file here and remove this line.”  
o updated #define TRC\_CFG\_HARDWARE\_PORT TRC\_HARDWARE\_PORT\_ARM\_Cortex\_M
- In trcKernelPortConfig.h: #define TRC\_CFG\_FREERTOS\_VERSION TRC\_FREERTOS\_VERSION\_10\_4\_3
- In FreeRTOSConfig.h: #define configUSE\_TRACE\_FACILITY (1)
- In the initialization of my project before any task started, call: xTraceInitialize(); xTraceEnable(TRC\_START);
- The project build fine. I loaded the firmware on my device.

I try to capture the snapshot from Tracealyzer. But I got “Unable to fetch snapshot”. Could you please point out where I did wrong?  
Thanks!

---

<div class="post-metadata">

**Author:** ![aggarg](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/aggarg/32/4245_2.png) [@aggarg](https://forums.freertos.org/u/aggarg)\
**Post date:** [July 12, 2024, 5:56am UTC](https://forums.freertos.org/t/tracealyzer-with-iar/20947/2 "2024-07-12T05:56:12Z")

</div>

> [@Pilot8](#):
>
> I try to capture the snapshot from Tracealyzer. But I got “Unable to fetch snapshot”. Could you please point out where I did wrong?

Assuming you are using RingBuffer streamport of Tracelyzer, you are probably not able to fetch the snapshot from the device. Try to follow [these instructions](https://percepio.com/tracealyzer/gettingstarted/iar/) from Percepio to save the snapshot. I’d also recommend to reach out to Percepio.
