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 [2]  Send TopicPrint
Very Hot Topic (More than 25 Replies) Export binary file for Pi (Read 14663 times)
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Export binary file for Pi
Reply #20 - May 16th, 2018 at 5:07pm
Print Post  
Thanks for all the info. That's really great!

ps: I found the zero-w has wifi, i think  Smiley
  
Back to top
WWW  
IP Logged
 
Marius
Developer
****
Offline


Posts: 204
Location: Centurion RSA
Joined: Sep 7th, 2011
Re: Export binary file for Pi
Reply #21 - May 17th, 2018 at 8:48am
Print Post  
Correct the "W" has wifi.

I found another easy way to get into the pi zero without having to have a screen or keyboard.

After you burned the SSD card you open the boot partition with windows explorer. Add an empty file call ssh to that partition and boot. Find the ip with Angry Ip Scanner. Username - pi; password - raspberry.
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Export binary file for Pi
Reply #22 - May 17th, 2018 at 11:14am
Print Post  
Brilliant thanks
  
Back to top
WWW  
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Export binary file for Pi
Reply #23 - May 19th, 2018 at 3:55pm
Print Post  
Thanks

I looked at the build system and it is using the "Intermediate Directory" not the "Output Directory"

Why Intermediate: This is because visual studio defaults the output directory to "solution folder/release" or "solution folder/debug", which means that multiple projects would try to use the same output directory by default.
  
Back to top
WWW  
IP Logged
 
Marius
Developer
****
Offline


Posts: 204
Location: Centurion RSA
Joined: Sep 7th, 2011
Re: Export binary file for Pi
Reply #24 - May 20th, 2018 at 7:18am
Print Post  
I looked at that but it puts a whole lot of stuff, probably the whole build, at the intermediate directory.
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Export binary file for Pi
Reply #25 - May 20th, 2018 at 7:24am
Print Post  
Install the latest from the link in the first post. It exports to the Output Directory just the one file.

https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES
  
Back to top
WWW  
IP Logged
 
Marius
Developer
****
Offline


Posts: 204
Location: Centurion RSA
Joined: Sep 7th, 2011
Re: Export binary file for Pi
Reply #26 - May 20th, 2018 at 12:21pm
Print Post  
Must I make changes to my project. It does not compile anymore. I have local libraries in my project.

Code (C++)
Select All
ZetaRF.cpp: 1523:26: error: no matching function for call to 'SPIClass::transfer(uint8_t*&, uint8_t&)
   SPI.transfer(data, count)

ZetaRF.cpp:18: In file included from
SPI.h:64: note  candidate  static uint8_t SPIClass  transfer(uint8_t)
   static uint8_t transfer(uint8_t data)
   ^~~~~~~~
SPI.h:64: note    candidate expects 1 argument, 2 provided
 



SPI is a local library as it is special for the zero
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Export binary file for Pi
Reply #27 - May 20th, 2018 at 12:53pm
Print Post  
No you should never have to make changes.

The ability to override libraries using local source code was a new feature but caused some breakages. So it's now an option on the vMicro>Compiler menu.

  
Back to top
WWW  
IP Logged
 
Marius
Developer
****
Offline


Posts: 204
Location: Centurion RSA
Joined: Sep 7th, 2011
Re: Export binary file for Pi
Reply #28 - May 20th, 2018 at 2:51pm
Print Post  
Ok that makes sense. It works fine now.
Any reason why they chose such a ridiculous file name for the binary?

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


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Export binary file for Pi
Reply #29 - May 20th, 2018 at 3:49pm
Print Post  
Yes it's the name of the variant in the boards.txt. If you switch on vmicro>compiler>verbose you should see the savehex.pattern= uses it.


Question

The facility to override local library source files. Do you think it should be on or off by default. My initial instinct was ON because that is what the arduino ide (in more recent versions) does. However it's been off for years.

Info

Did you know you can put libraries in the core of each board and they take preference over sketchbook/libraries?
Did you know you can add entire libraries in the project below "_micro-api\libraries". They will be treated as libraries but can be more easily checked into source control with the project.



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


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Export binary file for Pi
Reply #30 - May 20th, 2018 at 3:49pm
Print Post  
Yes it's the name of the variant in the boards.txt. If you switch on vmicro>compiler>verbose you should see the savehex.pattern= uses it.


Question

The facility to override local library source files. Do you think it should be on or off by default. My initial instinct was ON because that is what the arduino ide (in more recent versions) does. However it's been off for years.

Info

Did you know you can put libraries in the core of each board and they take preference over sketchbook/libraries?
Did you know you can add entire libraries in the project below "_micro-api\libraries". They will be treated as libraries but can be more easily checked into source control with the project.



  
Back to top
WWW  
IP Logged
 
Marius
Developer
****
Offline


Posts: 204
Location: Centurion RSA
Joined: Sep 7th, 2011
Re: Export binary file for Pi
Reply #31 - May 21st, 2018 at 7:01am
Print Post  
Tim@Visual Micro wrote on May 20th, 2018 at 3:49pm:

Question

The facility to override local library source files. Do you think it should be on or off by default. My initial instinct was ON because that is what the arduino ide (in more recent versions) does. However it's been off for years.


My opinion is that it should be on as it would not make any difference to the user if they do not use local libraries but as soon as you copy a library to your local directory it does what is expected. 

Quote:

Info

Did you know you can put libraries in the core of each board and they take preference over sketchbook/libraries?

I have done that on occasion with the SAMD21.
Quote:

Did you know you can add entire libraries in the project below "_micro-api\libraries". They will be treated as libraries but can be more easily checked into source control with the project.


Did not know that. Very handy thanks.
  
Back to top
IP Logged
 
Marius
Developer
****
Offline


Posts: 204
Location: Centurion RSA
Joined: Sep 7th, 2011
Re: Export binary file for Pi
Reply #32 - May 22nd, 2018 at 7:28am
Print Post  
I tried the libraries in the _micro-api\libraries directory. It was first installed in project/src/libraries and worked.
This is the erroes I get now from the new location.

P.S.
I deleted the VS/VM files and directories completely and started fresh

Code
Select All
Error linking for board Teensy 3.6
TestTrack.ino:140: undefined reference to SerialCommand  addCommand(char const*, void (*)())
TestTrack.ino:145: undefined reference to SerialCommand  setDefaultHandler(void (*)(char const*))
Build failed for project 'TestTrack'

TestTrack.cpp.o*: In function loop
TestTrack.ino:150: undefined reference to SerialCommand  readSerial()

TestTrack.cpp.o*: In function SetGroupId()
TestTrack.ino:160: undefined reference to SerialCommand  next()

TestTrack.cpp.o*: In function __static_initialization_and_destruction_0
TestTrack.ino:45: undefined reference to SerialCommand  SerialCommand()

collect2.exe*: error: ld returned 1 exit status
 

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


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Export binary file for Pi
Reply #33 - May 22nd, 2018 at 10:09am
Print Post  
Sorry forgot to let you know there was a clash between the new menu option "compiler>local files override lib files" and the local library functionality.

That was resolved in the work in progress download

  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1 [2] 
Send TopicPrint