Sign in

username:

password:



Not a member?

Search c6x



Search tips

Subscribe to c6x



c6x by Keywords

AD535 | BIOS | Booting | Bootloader | C621 | C6211 | C6415 | C671 | C6711 | C6711DSK | C6713 | CCS | Chassaing | COFF | DAT | DM64 | DM642 | DMA | DSK671 | DSK6711 | EDM | EDMA | EMIF | Emulator | EVM | EVM620 | FFT | FIR | GPIO | Halting | HPI | HWI | IDK | JTAG | LDB | LDH | LDW | Linker | LMS | LOG_printf | Matlab | McBSP | MEM_alloc | MIPS | PCI | PCM3003 | Pipeline | Profiling | QDM | Reset | ROM | RTDX | Sampling | SDRAM | Stack | TEB | THS1206 | TMS320C621 | TMS320C6416 | TMS320C6711 | TMS320C6713 | UART | Vector Table | XBUS | XDS560

Sponsor

Industry's highest performing at the lowest power DSPs now as low as $5.00*
Start development today!
*volume pricing for 10ku

Discussion Groups

See Also

Embedded SystemsFPGAElectronics

Discussion Groups | TMS320C6x | LOG_printf ( float )

Technical discussions about the TI C6000 DSPs (including the c62x, c64x and c67x DSPs).

  

Post a new Thread

LOG_printf ( float ) - gary21uk2002 - May 23 15:19:00 2002

Hi,

I have a library that is used on two different hardware platforms -
one is big-endian, the other little endian. I compile two libraries
using CCS 2.1 and the only difference in the CDB config file is
big/little endian.

When I look at LOG_prinf output when a float is "printed", the little
endian version prints OK but the big endian version prints 0.00000
2.00000 or some HUGE number. Printing integers works fine on both.

Does anyone know what is happening or preferably how to fix it ? I
suspect the big endian float is being interpreted as little endian.
Anyone know if this is a "known" problem (I couldn't find it in the
TI Knowledgebase).

Many thanks,
... Gary



______________________________
New Code Sharing Section now Live on DSPRelated.com. Learn about the Reward Program for Contributors here.



(You need to be a member of c6x -- send a blank email to c6x-subscribe@yahoogroups.com )

Re: LOG_printf ( float ) - Yury Burkatovsky - Jul 4 7:28:00 2002

Hi Gary,

On Thu, 23 May 2002, gary21uk2002 wrote:

> Hi,
>
> I have a library that is used on two different hardware platforms -
> one is big-endian, the other little endian. I compile two libraries
> using CCS 2.1 and the only difference in the CDB config file is
> big/little endian.
>
> When I look at LOG_prinf output when a float is "printed", the little
> endian version prints OK but the big endian version prints 0.00000
> 2.00000 or some HUGE number. Printing integers works fine on both.
>
> Does anyone know what is happening or preferably how to fix it ? I
> suspect the big endian float is being interpreted as little endian.
> Anyone know if this is a "known" problem (I couldn't find it in the
> TI Knowledgebase).
>
> Many thanks,
> ... Gary

My reply is a bit late. If you have found the answer yourself, please
disregard this mail.

The document "TMS320C6000 DSP/BIOS Application Programming Interface (API)
Reference Guide" (SPRU403C) reads on page 2-117:

The arguments passed to LOG_printf must be integers, strings, or a
pointer if the special %r conversion character is used.

The float type is not mentioned, though somebody on this list has
indicated this also could work in some cases.

Hope this helps.
--
Regards, | /^^^\
Yury | (| , , |)
| | * |
E-mail: yury.burkatovsky at telrad dot co dot il | \_-_/


______________________________
New Code Sharing Section now Live on DSPRelated.com. Learn about the Reward Program for Contributors here.



(You need to be a member of c6x -- send a blank email to c6x-subscribe@yahoogroups.com )