Error "cannot open linker script file"

Go To Last Post
2 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello to all! I'm an student that's trying to worki with ATSAMV71Q21B for an university project.

 

My professor has sent me the project to import to the MPLAB X IDE (i'm on version v5.40), but when I'm trying to build the project and program the device, i got this error: 

/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: cannot open linker script file samv71b/gcc/gcc/samv71q21b_flash.ld: No such file or directory
collect2: error: ld returned 1 exit status
make[2]: *** [nbproject/Makefile-Default.mk:1032: dist/Default/production/BaseTFG.X.production.hex] Error 1
make[1]: *** [nbproject/Makefile-Default.mk:94: .build-conf] Error 2
make: *** [nbproject/Makefile-impl.mk:39: .build-impl] Error 2

BUILD FAILED (exit value 2, total time: 2m 51s)

Im not sure how to solve it, maybe its so trivial, but I don't really know how to try to solve it. 

Already edited the project properties and added this line to the additional options of arm-gcc:

-std=gnu99 -mfpu=fpv4-sp-d16 -mfloat-abi=softfp -g3

Sorry if its so trivial, if the post its not made in the correct site, and for my bad english. Thanks to all!!

Last Edited: Sat. Nov 28, 2020 - 06:15 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

dan.mage wrote:
My professor has sent me the project to import

In that case, get straight back to your professor and tell him what's happening - high chance he's sent you a "broken" project.

 

dan.mage wrote:
cannot open linker script file samv71b/gcc/gcc/samv71q21b_flash.ld: No such file or directory

So does that file actually exist anywhere in your filesystem?

 

Obviously, if you don't have it - the project is incomplete.

 

If it is there, is it in the right place ?

 

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...