This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

IAR IDE - how to configure debug output

Other Parts Discussed in Thread: CC2540

On a post here in this forum, I have noticed that a user has been able to set-up their IAR IDE so that an output window shows debug output as their code is run to a break-point.

See: http://e2e.ti.com/support/wireless_connectivity/f/538/p/349177/1222858.aspx#1222858 

I think this is a very useful tool for debugging and I would like to do the same.

Can anyone advise how I could set-up my IAR IDE to do this, please.  

There appears to be the need to 'Configure Tools'. However, I don;t know what I need to add to my Menu-Content or Command field therein. 

I'm using IAR IDE 8.20 and developing a BLE Peripheral application with the TI CC2540 device.

Thank you.

Here's what I mean....

"Here is a snippet of my debug output on the Peripheral:

1
2
3
4
5
6
7
8
9
[simpleBLEPeripheral.c:748] USER: Peripheral State (0x1): Initialized
[simpleBLEPeripheral.c:751] USER: BLE Address: 0x1CBA8C1C6A62
[simpleBLEPeripheral.c:1418] FLOW: Received a 'Connection Change' Request
[simpleBLEPeripheral.c:1421] FLOW: --> Connect: 0x1
[simpleBLEPeripheral.c:1425] FLOW: Enabling Advertisements (Count 0x12c0)
[simpleBLEPeripheral.c:786] Peripheral State (0x2): Advertising
[simpleBLEPeripheral.c:823] Peripheral State (0x5): Connected
[simpleBLEPeripheral.c:914] Pairing State (0x0): Pairing Started
[simpleBLEPeripheral.c:918] --> Status (0x0): 'SUCCESS'

Here is a snippet of my debug output on the Central:

1
2
3
4
5
6
7
8
9
10
11
[simpleBLECentral.c:677] USER: Central Device Initialized
[simpleBLECentral.c:680] USER: BLE Address: 0x1CBA8C1C760A
[DeviceConfig.h:372] USER: Device Filter has been Enabled
[DeviceConfig.h:377] USER: --> Requested Device Filter: '0x1CBA8C1C6A62'
[simpleBLECentral.c:1339] FLOW: Received a 'Connection Change' Request
[simpleBLECentral.c:1342] FLOW: --> Connect: 0x1
[simpleBLECentral.c:1490] Connecting to '0x1CBA8C1C6A62'
[simpleBLECentral.c:962] Pairing State (0x0): Pairing Started
[simpleBLECentral.c:966] --> Status (0x0): 'SUCCESS'
[simpleBLECentral.c:796] Central Event (0x5): Connection Established (Handle 0x0)
[simpleBLECentral.c:799] USER: Connected to '0x1CBA8C1C6A62'
"