Other Parts Discussed in Thread: SEGGER, SYSCONFIG, CC1352P7
Tool/software:
I am trying to examine the ITM backend for logging purposes. I built the following application which is the modified version of the empty.c in the TI-RTOS example path.
//========================================================
#include <unistd.h>
#include <stdint.h>
#include <stddef.h>
#include <ti/drivers/GPIO.h>
#include "ti_drivers_config.h"
#include <ti/drivers/ITM.h>
//========================================================
bool _itm_cfg_err;
#define RESET_FRAME_PORT (0)
#define DUMMYMSG_TO_SEND (0xBBBBBBBB)
//========================================================
void *mainThread(void *arg0)
{
// Initializing the GPIO driver:
GPIO_init();
// Configuring an LED GPIO pin:
GPIO_setConfig(CONFIG_GPIO_LED_0, GPIO_CFG_OUT_STD | GPIO_CFG_OUT_LOW);
// Configuring the ITM port:
_itm_cfg_err = ITM_open();
if (_itm_cfg_err){
GPIO_write(CONFIG_GPIO_LED_0, CONFIG_GPIO_LED_ON);
}
while(1){
ITM_send32Atomic(RESET_FRAME_PORT, DUMMYMSG_TO_SEND);
GPIO_toggle(CONFIG_GPIO_LED_0);
sleep(1);
}
return 0;
}
After using the SWO jumper on the launchpad and reseting the board, I opened terminal and created a screening session on the debug port of the launchpad (serial usb port connected through the xds110). However, I could not see anything being printed on the screening session.
I tried the SEGGER SWO Viewer, but for some reason it cannot configure the viewer with the baud rates and clock settings.
I was wondering if you could tell me what else I should do to so that I could make this simple app work.
Thanks






