Technical discussions about the TI C54x DSPs (including the c5401, c5402, c5402a, c5404, c5407, c5409, c5409a, c5410, c5410a, c5416, c5420, c5421, c5441, c549, c5470 and c5471).
|
Does anyone have an example linker cmd file on how to place function selectively in the internal memory and external memory. I have function in both C and asm, some function needs to be in the internal mem, and some can be placed externally. Please give me an example linker command file to covers both asm and C functions. thanks Andrew |
|
|
|
Hi Andrew, You can selectively place C functions in internal or external memory by using #pragma directives. For example, if you want to put the function 'func' in a section named '.sec' which is allocated in either internal or external memory in a linker command file, you can use the following directive: #pragma CODE_SECTION(func,".sec") Put this directive on top of the function definition. You can use the linker command file to put the section, ".sec", in the memory you want-either internal or external-just like you allocate other standard sections like .text or .bss etc. For assembly functions you can use the ".sect" assembler directive to place your function. .sect ".sec" More information on the assembler directives is also available in the standard documentation. Hope this answers your query. Bye, Regards, Ravi Kiran --- Andrew Xiang <> wrote: > Does anyone have an example linker cmd file on how > to place function > selectively in the > internal memory and external memory. > > I have function in both C and asm, some function > needs to be in the internal > mem, and some can be placed externally. > > Please give me an example linker command file to > covers both asm and C > functions. > > thanks > > Andrew > > _____________________________________ > ________________________________________________________________________ Yahoo! India Matrimony: Find your partner online. Go to http://yahoo.shaadi.com |
|
|
|
Hello! I make a custom board based on 5409 DSP. This board is connect with another through the HPI port (mode 8bits). This another board have a ColdFire Microcontroller (Motorola) . I would save my DSP programs in the ColdFire board and Boot through the HPI port. I read de "TMS320VC5409 Bootloader Technical reference" but I not understand how I can load de .out file into de DSP. Please some one to fact this? Thank you! ::Narcís Palomeras Rovira:: |