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
Hot Topic (More than 8 Replies) No .map file generated (Read 7832 times)
NikoST
Newbies
*
Offline


Posts: 3
Joined: Sep 21st, 2016
No .map file generated
Nov 4th, 2016 at 10:41pm
Print Post  
Hi all.
I am trying to configure the VS to generate the .map file.
I have put the following switches 
-Wl, -Map, "Nikolas.map"
-Wl, -Map="Nikolas.map"
-Wl, -Map, "{build.path}\{build.project_name}.map"
at the : "Extra flags" field in the Project properties window,
but no luck.

Which is the correct switch, and where it should be placed?
(any example?)

I am using Visual Studio 2015 Community, Arduino IDE 1.6.14

Also, in a previous post :
http://www.visualmicro.com/forums/YaBB.pl?num=1448907030;start=11;action=threadp...

there is a reference for the switches used for the avr-objdump.exe.
Where these switches should be placed ?
Can they placed in a field in the VS, or should they be placed in a configuration file ?
(any example?)

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


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: No .map file generated
Reply #1 - Nov 5th, 2016 at 11:25am
Print Post  
Hi

switch on vmicro>compiler>show build properties and also the verbose option. Then build and inspect the output.

You will see a number of pattern commands in the output such as "recipe.c.combine.pattern"

Pick which command you want to change and create a local board.txt in the project.

Add your command to the board.txt and it will override the pattern used in the build.
  
Back to top
WWW  
IP Logged
 
NikoST
Newbies
*
Offline


Posts: 3
Joined: Sep 21st, 2016
Re: No .map file generated
Reply #2 - Nov 5th, 2016 at 5:09pm
Print Post  
Thanks for the reply.
I recompiled my project and I have found the pattern commands (show build properties and verbose are switched on).
But I don't know which command is the correct (the one generates the .map file) 

Please provide a working example.

PS : I have already create the "board.txt" file in my project directory (folder) and I have copied in it the whole 
string starting with "recipe.c.combine.pattern" as shown in the output window, 
adding at its end the following :
(-Wl, -Map, "{build.path}\{build.project_name}.map")
but still no luck 
VS-> error*: C:\.....ino.map: no such file or directory
VS-> error*: unrecognized command line option -Map

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


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: No .map file generated
Reply #3 - Nov 6th, 2016 at 9:53pm
Print Post  
Adding the following to recipe.c.combine.pattern= worked for me

"-Wl,-Map,{build.path}/{build.project_name}.map"

  
Back to top
WWW  
IP Logged
 
NikoST
Newbies
*
Offline


Posts: 3
Joined: Sep 21st, 2016
Re: No .map file generated
Reply #4 - Nov 7th, 2016 at 10:31am
Print Post  
I had already used 

"-Wl,-Map,{build.path}/{build.project_name}.map"

the problem was the quotes (" ") position,
this is the correct syntax:

-Wl, -Map, "{build.path}\{build.project_name}.map"

which is placed at the end of the pattern command (keeping all the current switches), in my board.txt file.
Thanks


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


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: No .map file generated
Reply #5 - Nov 7th, 2016 at 12:44pm
Print Post  
Hi,

The one I provided was from the arduino.cc forum which worked, with avr, when I tested it.

Thanks for the update.

  
Back to top
WWW  
IP Logged
 
RLCook
Junior Member
**
Offline


Posts: 12
Joined: Apr 12th, 2017
Re: No .map file generated
Reply #6 - Apr 13th, 2017 at 1:18pm
Print Post  
I would also like to generate a MAP file for my builds but I am completely perplexed by how this works. 

First, do I need the full version of VMicro to affect this?

If not then where do I add the recipe.c.combine.pattern change? Do I have to find the actual platform.txt file that is being used or can I add a platform.txt file somewhere that will get included and adds to the base files.
« Last Edit: Apr 13th, 2017 at 1:29pm by RLCook »  
Back to top
 
IP Logged
 
RLCook
Junior Member
**
Offline


Posts: 12
Joined: Apr 12th, 2017
Re: No .map file generated
Reply #7 - Apr 13th, 2017 at 3:00pm
Print Post  
Got it!

I just had to find the actual platform.txt file that was being used. There were several on the PC.

The one I changed was in C:\Program Files (x86)\Arduino\hardware\avr on my PC.

One question that I have is, where does that file originate? In other words, if I want to tell someone how to install VMicro and get this change, what is the way that should be best accomplished? Can it only be done in this location after VMicro is installed?
« Last Edit: Apr 13th, 2017 at 3:00pm by RLCook »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: No .map file generated
Reply #8 - Apr 13th, 2017 at 3:06pm
Print Post  
Hi, Visual Micro does not install these files. The platform.txt you mention is installed with the arduino ide.

  
Back to top
WWW  
IP Logged
 
RLCook
Junior Member
**
Offline


Posts: 12
Joined: Apr 12th, 2017
Re: No .map file generated
Reply #9 - Apr 13th, 2017 at 5:19pm
Print Post  
Tim@Visual Micro wrote on Apr 13th, 2017 at 3:06pm:
Hi, Visual Micro does not install these files. The platform.txt you mention is installed with the arduino ide.



Which is why it is in the "Arduino" directory in "Program Files (x86)". 

Do you know where I can get a good explanation of how platform.txt is used and how to modify and maintain those modifications? I ask because I am documenting a project that I am working on and part of that is to document how to store and then set up the development environment so each one is the same.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: No .map file generated
Reply #10 - Apr 14th, 2017 at 10:43am
Print Post  
Yes the format was introduced since arduino 1.5. The 3rd party specification should help (although it is not very comprehensive)
« Last Edit: Apr 14th, 2017 at 10:44am by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Eric T
Junior Member
**
Offline


Posts: 10
Joined: Jan 4th, 2022
Re: No .map file generated
Reply #11 - Nov 16th, 2023 at 3:13pm
Print Post  
NikoST wrote on Nov 7th, 2016 at 10:31am:
-Wl, -Map, "{build.path}\{build.project_name}.map"


This worked, once the spaces after the commas were removed.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint