DSPRelated.com
Forums

CCS v4: Getting something to display in the console

Started by ak8022 September 10, 2010
I am using CCS v4.0.2 and a EVM C6472 board. I am trying to create a DSP/BIOS project that will have a periodic task running. As a starter, I'd like to see some message repeatedly displayed in the "console" part of CCS. I was able to get messages to display with a printf on the "FPGA LED test" sample project, for example. However, that project is not a DSP/BIOS project.
So, after creating a "Hello world" type program in a DSP/BIOS support, I put a printf in "main". The project loaded without errors, but after loading the program on one of the cores, all I got was a message "C64XP_2: RTDX: RTDX program mode is JTAG" in the console. I also put a printf in a function and set it to run with the "periodic function manager" in the TCF file, same result. Seems like I cannot get anything to display with a DSP/BIOS project, although I had no problem with a non-DSP project.

Any suggestions?

_____________________________________
AK,

I don't use the BIOS, however; I can give a few knowledgeable suggestions.

First, the 'main' function is run before the interrupts are enabled, so anything
that uses interrupt (I.E. printf) cannot be used there.

Printing makes use of the heap for string storage.
Do you have an adequate heap allocated?

There is a function that is made for printing messages
I think the name is LogPrintf (you an look it up in the CCS help)
It eliminates most, but not all, the problems associated with using printf.

BTW:
any printing takes a very LONG time.
Therefore, a periodic function with a print statement would have to have a very
LONG time between executions.

R. Williams

---------- Original Message -----------
From: "ak8022"
To: c...
Sent: Fri, 10 Sep 2010 22:42:18 -0000
Subject: [c6x] CCS v4: Getting something to display in the console

>
>
> I am using CCS v4.0.2 and a EVM C6472 board. I am trying to create a DSP/BIOS
project that will have a periodic task running. As a starter, I'd like to see
some message repeatedly displayed in the "console" part of CCS. I was able to
get messages to display with a printf on the "FPGA LED test" sample project, for
example. However, that project is not a DSP/BIOS project.
>
> So, after creating a "Hello world" type program in a DSP/BIOS support, I put a
printf in "main". The project loaded without errors, but after loading the
program on one of the cores, all I got was a message "C64XP_2: RTDX: RTDX
program mode is JTAG" in the console. I also put a printf in a function and set
it to run with the "periodic function manager" in the TCF file, same result.
Seems like I cannot get anything to display with a DSP/BIOS project, although I
had no problem with a non-DSP project.
>
> Any suggestions?
>
>
------- End of Original Message -------

_____________________________________