Hi!
I'd like to know how to use the RTA tools to measure CPU % (percent) usage in TMS320C5535 (real time).
(English isn’t my first language, so please excuse any mistakes)
I'm new on DSP, and I'm studying the "Texas Instruments C5505 Teaching Materials CD-ROM". I'm created the Getting Started Application (audio loopback, on chapter 1), using CCS5, configuring --ptrdiff_size = 32, --memory_Model = huge and applying http://processors.wiki.ti.com/index.php/Porting_C5000_Teaching_ROM_to_C5535_eZdsp.
It's working fine to me!
Following, I converted my application in a DSP/BIOS application:
File->New->CCS Project
Family: C5500
Device: TMS320C5535
From the project templates and examples: DSP/BIOS v5.xx Examples->ezdsp5535 Examples->hello example
Finish and Build Project
In hello.tcf file, right click System->Global Settings
Memory Model= HUGE, Apply, OK, then File->Save
In the project Properties: --ptrdiff_size = 32, --memory_Model = huge
OK, Build Project, and it's work fine, too.
Then, I copied the Getting Started Application sources (audio loopback) to my ezdsp5535 Hello Example.
I deleted "main.c", and my "hello.c" like this:
#include "stdio.h"
#include "usbstk5505.h"
#include "aic3204.h"
#include "PLL.h"
#include "stereo.h"
Int16 left_input;
Int16 right_input;
Int16 left_output;
Int16 right_output;
Int16 mono_input;
#define SAMPLES_PER_SECOND 48000
unsigned long int i = 0;
void main(void)
{
USBSTK5505_init( );
pll_frequency_setup(100);
aic3204_hardware_init();
aic3204_init();
set_sampling_frequency_and_gain(SAMPLES_PER_SECOND, 30);
for ( i = 0 ; i < SAMPLES_PER_SECOND * 20L ;i++ )
{
aic3204_codec_read(&left_input, &right_input); // Configured for one interrupt per two channels.
mono_input = stereo_to_mono(left_input, right_input);
left_output = left_input; // Very simple processing. Replace with your own code!
right_output = right_input; // Directly connect inputs to outputs.
aic3204_codec_write(left_output, right_output);
}
aic3204_disable();
}
It's work fine too.
Then I click in Tools->RTO Analyser->RTA (legacy)->CPU Load, and I can't see the CPU Load graph in real time. After ending the "for" loop (hello.c), the "CPU Load" window shows a constant zero line.
I'd like to know how to use the RTA tools to measure CPU % (percent) usage in real time (TMS320C5535).
Can you help me, please?
Is it possible measure the MIPS and memory usage, too?
Thank you so much.


