Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Use custom linker script (Read 2312 times)
angelo.dev
Newbies
*
Offline


Posts: 2
Joined: Aug 26th, 2017
Use custom linker script
Aug 26th, 2017 at 1:37pm
Print Post  
Hello!
I need to use a my defined linker script for a project.
Is there a way to declare it directly inside project folder instead of modify the one inside toolchain directory?

Thanks in advance.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Use custom linker script
Reply #1 - Sep 1st, 2017 at 9:53pm
Print Post  
Hi,

Yes you can override the standard arduino build configuration by entering the commands into a local project board.txt that can be added to each project.

Read up on the arduino 3rd party build process to understand their recipe= build command syntax.

You can also switch on vmicro>compiler>verbose and "show build properties" to see a dump (during build) of the commands used for the currently selected board. In the build output, look for commands such as "recipe.c.combine" or "recipe.objcopy.hex.pattern"


tip: If you change a local project board.txt during experimentation click to "save" the file before build because vs has a habit of saving .txt files after the build completes which always give you the previous instead of current version.
« Last Edit: Sep 2nd, 2017 at 9:54pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint