Menu

MPLAB linker problem

Ray Ellam
2016-04-09
2016-04-10
  • Ray Ellam

    Ray Ellam - 2016-04-09

    Hi All,
    First off i just downloaded TMB today so im a noob.
    Im using MPlab V8.92 to compile an existing ASM file in the followin down loaded folder

    Release build of project `C:\Tiny Multi Bootloader+ (v0.10.0)\Tiny Multi Bootloader+ (v0.10.0)\firmwares\Microchip PIC\Type-D (dsPIC30F, PIC24F, PIC24FV, PIC24HJ, PIC24E(Partial), dsPIC33F(Partial), dsPIC33E(Partial))\tinybld_PIC24F32KA301_int8MHz_19200\tinybld_PIC24F32KA301.mcp' started.
    Language tool versions: pic30-as.exe v3.31, pic30-ld.exe v3.31, pic30-ar.exe v3.31
    Sat Apr 09 18:15:14 2016

    The problem im getting is the build fails with the following problem.

    C:\Program Files (x86)\Microchip\MPLAB ASM30 Suite\bin\bin/pic30-coff-ld.exe: cannot open linker script file ............\Program Files (x86)\Microchip\MPLAB ASM30 Suite\Support\PIC24F\gld\p24F32KA301.gld: No such file or directory

    Here is a complete listing from MPlab

    Release build of project `C:\Tiny Multi Bootloader+ (v0.10.0)\Tiny Multi Bootloader+ (v0.10.0)\firmwares\Microchip PIC\Type-D (dsPIC30F, PIC24F, PIC24FV, PIC24HJ, PIC24E(Partial), dsPIC33F(Partial), dsPIC33E(Partial))\tinybld_PIC24F32KA301_int8MHz_19200\tinybld_PIC24F32KA301.mcp' started.
    Language tool versions: pic30-as.exe v3.31, pic30-ld.exe v3.31, pic30-ar.exe v3.31
    Sat Apr 09 18:15:14 2016


    Clean: Deleting intermediary and output files.
    Clean: Deleted file "C:\Tiny Multi Bootloader+ (v0.10.0)\Tiny Multi Bootloader+ (v0.10.0)\firmwares\Microchip PIC\Type-D (dsPIC30F, PIC24F, PIC24FV, PIC24HJ, PIC24E(Partial), dsPIC33F(Partial), dsPIC33E(Partial))\tinybld_PIC24F32KA301_int8MHz_19200\tinybld_PIC24F32KA301.o".
    Clean: Deleted file "C:\Tiny Multi Bootloader+ (v0.10.0)\Tiny Multi Bootloader+ (v0.10.0)\firmwares\Microchip PIC\Type-D (dsPIC30F, PIC24F, PIC24FV, PIC24HJ, PIC24E(Partial), dsPIC33F(Partial), dsPIC33E(Partial))\tinybld_PIC24F32KA301_int8MHz_19200\tinybld_PIC24F32KA301.lst".
    Clean: Deleted file "C:\Tiny Multi Bootloader+ (v0.10.0)\Tiny Multi Bootloader+ (v0.10.0)\firmwares\Microchip PIC\Type-D (dsPIC30F, PIC24F, PIC24FV, PIC24HJ, PIC24E(Partial), dsPIC33F(Partial), dsPIC33E(Partial))\tinybld_PIC24F32KA301_int8MHz_19200\tinybld_PIC24F32KA301.mcs".
    Clean: Done.
    Executing: "C:\Program Files (x86)\Microchip\MPLAB ASM30 Suite\bin\pic30-as.exe" "tinybld_PIC24F32KA301.s" -o"tinybld_PIC24F32KA301.o" -p=24F32KA301 -g -a="tinybld_PIC24F32KA301.lst"
    Executing: "C:\Program Files (x86)\Microchip\MPLAB ASM30 Suite\bin\pic30-ld.exe" "tinybld_PIC24F32KA301.o" --script="............\Program Files (x86)\Microchip\MPLAB ASM30 Suite\Support\PIC24F\gld\p24F32KA301.gld" --defsym=__MPLAB_BUILD=1 -Map="tinybld_PIC24F32KA301.map" --report-mem --no-data-init --no-isr -o"tinybld_PIC24F32KA301.cof"
    C:\Program Files (x86)\Microchip\MPLAB ASM30 Suite\bin\bin/pic30-coff-ld.exe: cannot open linker script file ............\Program Files (x86)\Microchip\MPLAB ASM30 Suite\Support\PIC24F\gld\p24F32KA301.gld: No such file or directory
    Link step failed.


    Release build of project `C:\Tiny Multi Bootloader+ (v0.10.0)\Tiny Multi Bootloader+ (v0.10.0)\firmwares\Microchip PIC\Type-D (dsPIC30F, PIC24F, PIC24FV, PIC24HJ, PIC24E(Partial), dsPIC33F(Partial), dsPIC33E(Partial))\tinybld_PIC24F32KA301_int8MHz_19200\tinybld_PIC24F32KA301.mcp' failed.
    Language tool versions: pic30-as.exe v3.31, pic30-ld.exe v3.31, pic30-ar.exe v3.31
    Sat Apr 09 18:15:16 2016


    BUILD FAILED

    I have sucsessfully compiled hex files from the PIC 18 example with no problems. The linker files exist and the paths look correct. My ultimte goal is to make a bootloader for the PIC24EP256GP204 but i cannot get past the first hurdle of compiling stuff......................Help please.

    TIA Ray

     
  • Ray Ellam

    Ray Ellam - 2016-04-10

    I found the problem above, this turned out to be a setting in MPlab V8.92. Right click on linker script, select the .gld file and make sure the "remember this setting" check box is unticked and the "Auto" radio button is checked. This will then find the linker file.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.