Reply by chunyan_lcy June 18, 20032003-06-18
Just add a customized .cmd file into your project besides the
automatically generated one. For example, your project name is p1,
after using BIOS configuration tools, p1cfg.cmd is automatically
generated, and in which a block of memory called ALIGN_DATA is
configured. If you want to put the aligned buffer into section
ALIGN_DATA, you should add a customized cmd file as following(i.e.
named link.cmd) to your project:

//////////////////////////////////////
-lp1cfg.cmd

SECTIONS {
align_buffer:{
*(align_buffer)
} > ALIGN_DATA , align(128)
}
/////////////////////////////////////

Of course, you have to define section "align_buffer" in your C using
#pragma

-Chunyan

--- In , Markus Bren <markus.buehren@l...>
wrote:
> Hi!
>
> I want to use the fir function of the dsplib on a DSK5416 and have
a
> question about circular buffers and memory alignment. As far as I
> know it is possible to do it this way:
>
> 1. Use some "#pragma DATA_SECTION" command in the C++ code.
>
> 2. Use some "align (N)" stuff in the linker command file.
>
> I am using DSP/BIOS in my project and the DSP/BIOS configuration
tool
> maintains the linker command file called <projectname>cfg.cmd
itself.
> So I do not have to care about the very low level details of
memory.
>
> If I want to use the fir function now following the steps
mentioned
> above, I have to use a different linker command file that is no
> longer automatically changed by the DSP/BIOS configuration tool.
But
> this means I have to care about memory things now!
>
> Isn't there an easier way to go without leaving C++?
>
> I would appreciate any advise or comments of those who also work
with
> the dsplib! Thanks in advance!
>
> Markus


Reply by June 17, 20032003-06-17
Hi!

I want to use the fir function of the dsplib on a DSK5416 and have a
question about circular buffers and memory alignment. As far as I
know it is possible to do it this way:

1. Use some "#pragma DATA_SECTION" command in the C++ code.

2. Use some "align (N)" stuff in the linker command file.

I am using DSP/BIOS in my project and the DSP/BIOS configuration tool
maintains the linker command file called <projectname>cfg.cmd itself.
So I do not have to care about the very low level details of memory.

If I want to use the fir function now following the steps mentioned
above, I have to use a different linker command file that is no
longer automatically changed by the DSP/BIOS configuration tool. But
this means I have to care about memory things now!

Isn't there an easier way to go without leaving C++?

I would appreciate any advise or comments of those who also work with
the dsplib! Thanks in advance!

Markus