ti-dsp

scons help for alternate build tools

I'm using a compiler for TI DSPs, so the default CC and LINK and AS tools make no sense. Below is an SConstruct file that works for me, I'm wondering if anyone has suggestions to make it better. Some problems: I'd like to somehow tell it that my .obj files should go in a different directory than the source .c files. (it needs to know w...

Warning when type-casting between pointer and pointer-to-function

I am porting some C code to a TI DSP chip environment. I'm grappling with the C compiler. I have a data structure that includes a pointer to a function. I have a function that initializes the data structure. Something like this: typedef void (*PFN_FOO)(int x, int y); struct my_struct { PFN_FOO pfn; }; init_struct(struct my_str...

TI C2800 DSPs: troubleshooting linker problems between C++ and assembly code

I have a function sincos_Q15_asm() in assembly, in file sincos_p5sh.asm with directives as follows: .sect ".text" .global _sincos_Q15_asm .sym _sincos_Q15_asm,_sincos_Q15_asm, 36, 2, 0 .func 1 The function works fine when I test it by itself (assembly only), but when I try to link to it, I get a linker error: undefined ...

TI DSP: interfacing C++ and assembly

I posted this Q to TI's 28xx DSP forum but haven't heard a response and figured maybe someone here might know. I know how to write functions in assembly so that they are C-callable; if the C-callable name is foo() then the assembly function is named _foo(). What if I want to use C++ and optimize a class method in assembly? How do I d...

How to program the TI TMS320C674x real-time clock using C

Intense googeling failed to turn out a single decent example of how to program the RTC. all I could find were examples for the C5000/4000 models, which seems work differently as I was unable to locate any of the header files required to get the sample code to compile. the closest I got was finding the RTC user manual, but it's no...

TI TMS320C64xx : add a PRD funcion

I have to add a function that will run every specified period. it seems stright forward as Code composer has a GUI tool to do that : DSP/BIOS Condig->PRD-> in the propierties form I can fill in the function name that gets called with every clk interrupt, but the GUI rejects my functions as "undefined labels' the function I want t...

TMS320C64x Quick start reference for programmers

Hello Is thare any quickstart guide for programmers for writing DSP-accelerated appliations for TMS320C64x? I have a program with custom algorythm (not the fft, or usial filtering) and I want to accelerate it using multi-DSP coprocessor. So, how should I modify source to move computation from main CPU to DSPs? What limitations are ther...

OMAP 3530: How fast can I toggle an IO?

I am putting together an application for OMAP 3530 SoC. This application will run some user interface code on embedded linux and invoke waveform generation code on the DSP. The DSP and Linux sides will interact over DSP/BIOS link. My questions are: What is the highest frequency at which my DSP-side code can toggle a GPIO line? If I w...