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 HowTo Add compiler/linker flags (Read 2327 times)
drs
Junior Member
**
Offline


Posts: 26
Joined: Mar 20th, 2018
HowTo Add compiler/linker flags
Jul 30th, 2018 at 7:26pm
Print Post  
According to 
https://github.com/tzapu/WiFiManager/issues/650
I need to add
./tools/boards.txt.py --allowWPS --allgen

HowTo do in Vmicro?

many thanks
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: HowTo Add compiler/linker flags
Reply #1 - Jul 31st, 2018 at 11:34am
Print Post  
You can either use the visual micro project properties to set some extraFlags, there are a few options you will see. These can be for all build sof the project (global) or for the current configuration such as release/debug.

or

You can redefine the entire pattern by adding a board.txt to the project along with any lines from the build instructions you want to override. If you switch on vmicro>compiler>show build properties you will see the patterns such as the one that include
« Last Edit: Jul 31st, 2018 at 11:35am by Tim@Visual Micro »  
Back to top
IP Logged
 
drs
Junior Member
**
Offline


Posts: 26
Joined: Mar 20th, 2018
Re: HowTo Add compiler/linker flags
Reply #2 - Aug 12th, 2018 at 3:33pm
Print Post  
sorry for late reply...it did not work since the flags are processed in board.txt.py python code. it seems to add the define "NO_EXTRA_4K_HEAP" define. however, the new version of Wifimanager 0.14 did solve the problem.
thanks
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: HowTo Add compiler/linker flags
Reply #3 - Aug 13th, 2018 at 5:06pm
Print Post  
I see, thanks for the update.

Yes, if the core you are using does not follow the usual rules and hard codes flags then you would need to tweak the core. Glad it's sorted.
  
Back to top
IP Logged
 
Acuario
Full Member
***
Offline


Posts: 235
Location: Spain
Joined: Aug 28th, 2015
Re: HowTo Add compiler/linker flags
Reply #4 - Oct 8th, 2018 at 6:21pm
Print Post  
This seems to be a problem with cores after 2.4.0

To fix it (if you are using WPS) just add the following line to Board.txt in your project (you need to create a Board.txt if you don't have one), no need to run the python script.


build.noextra4kheap=-DNO_EXTRA_4K_HEAP
« Last Edit: Oct 8th, 2018 at 7:14pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint