Hi   Need help on linker command file command.   Using Co...

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Hi   Need help on linker command file command.   Using Co...

2,460 Views
fcc
Contributor I
Hi
 
Need help on linker command file command.
 
Using CodeWarrior 7.3 for DSP56800E
 
I'm trying to include a binary file in the output via the linker command file directly. The command is INCLUDE filename
 
I tried the command and it always return to me "file not found"
 
here the part of my linker file
    .executing_code :
    {
        # .text sections
        * (startup.text)
        * (rtlib.text)                                                         # Run-Time Library
        * (fp_engine.text)                                                     # Floating Point Engine
        * (user.text)                                                          # User Section
        * (.text)                                                              # Any other section .text
        . = ALIGN(4);                
         INCLUDE a.txt
    }
 
 
Wathever where I put the a.txt file, it cannot find it. I try to add the path too, samething...
 
I've try to put my file in the project directory, inker directory, output directory, etc.
 
So if someone can help, thanks!
 
 
 
Labels (1)
Tags (1)
0 Kudos
4 Replies

479 Views
trytohelp
NXP Employee
NXP Employee
Hi,
 
I performed some test on my side and I got the same problem: File not found.
We need to investigate the problem and probably report it to our development team.
To track this issue we recommend you to log it in our CRM system.
 
Please use Freescale on line support web page.
  - Go to following URL: http://www.freescale.com/TechSupport
  - Click on Submit a Service Request to create a new one or Manage Existing Service Request.
  - You will come to a login page.
  - You can submit your request through the web from there or view the activities of a SR.
Thanks in advanced.
 
Regards
Pascal Irrle
0 Kudos

479 Views
fcc
Contributor I
thank you for taking the time to do tests on your side. I made a service request for this problem.
 
Best regards,
fc
 
 
0 Kudos

479 Views
trytohelp
NXP Employee
NXP Employee
Thanks
 
Pascal
0 Kudos

479 Views
fcc
Contributor I
Hello again,
 
with the help of technical support at freescale we were able to use the INCLUDE command in a linker file. So if anyone needs to use it, here's the things you must do and know.
 
in the settings of the target of the project. Navigate to the file mapping windows.
add you file extension you want to include in the linker file. ex. .bin
Set file flag as a ressource file (compiler is set to None)
Press change button
Close the projects settings window.
add your file in your project. ex. fpga.bin
write in the linker command file as: INCLUDE fpga.bin
 
so linker module will include your binary file in the output file where you want to have it.
 
Hope this help others
 
Thanks,
 
0 Kudos