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 different upload behavior between projects in same solution (Read 1368 times)
perigalacticon
Junior Member
**
Offline


Posts: 55
Location: detroit area
Joined: Nov 7th, 2016
different upload behavior between projects in same solution
Oct 5th, 2020 at 4:40am
Print Post  
I have 2 projects in a solution.  They have the same upload settings, however, the 2nd will not upload.  Neither of them will allow a bootloader burn, but the errors are different.  I tried restarting the IDE but get the same problem.  As far as I can tell all of the VM settings are the same between the 2 projects, but these are the results:

PROJECT #1:
Compilation:
Code (C++)
Select All
Compiling 'halloweentoy841_2_reduced_menu3_tabs1_orig' for 'ATtiny441/841 (No bootloader)'
Build Folder: educed_menu3_tabs1_orig/ATTinyCore_attinyx41/Debug"
Program size: 7,166 bytes (used 87% of a 8,192 byte maximum) (2.50 secs)
Minimum Memory Usage: 313 bytes (61% of a 512 byte maximum)

Uploading 'halloweentoy841_2_reduced_menu3_tabs1_orig' to 'ATtiny441/841 (No bootloader)' using 'USBtinyISP SLOW (ATTinyCore)'
The upload process has finished.
 



Burn Bootloader:
Code (C++)
Select All
Burning a new bootloader
Burning bootloader to board 'ATtiny441/841 (No bootloader)' using 'USBtinyISP SLOW (ATTinyCore)'
Burn bootloader failed with an exception
	The programmer process failed because runtime arguments could not be established

Error while burning bootloader.
Burn failed 



PROJECT #2:
Compilation:
Code (C++)
Select All
Compiling 'halloweentoy841_2_test_apa102_1' for 'ATtiny441/841 (No bootloader)'
Build Folder: est_apa102_1/ATTinyCore_attinyx41/Debug"
Program size: 6,554 bytes (used 80% of a 8,192 byte maximum) (3.58 secs)
Minimum Memory Usage: 311 bytes (61% of a 512 byte maximum)

Uploading 'halloweentoy841_2_test_apa102_1' to 'ATtiny441/841 (No bootloader)' using 'COM3'
The uploader returned an error
avrdude: invalid baud rate specified '{upload.speed}' 



Burn Bootloader:
Code (C++)
Select All
Burning a new bootloader
Burning bootloader to board 'ATtiny441/841 (No bootloader)' using 'USBtinyISP SLOW (ATTinyCore)'
Error while burning bootloader.
Burn failed
avrdude: AVR Part "{build.mcu}" not found.
Valid parts are:
  t1634    = ATtiny1634
  t167     = ATtiny167
  t2313    = ATtiny2313a
  t2313a   = ATtiny2313a
  t24      = ATtiny24
  t25      = ATtiny25
  t261     = ATtiny261
  t4313    = ATtiny4313
  t43u     = ATtiny43u
  t44      = ATtiny44
  t441     = ATtiny441
  t45      = ATtiny45
  t461     = ATtiny461
  t48      = ATtiny48
  t828     = ATtiny828
  t84      = ATtiny84
  t841     = ATtiny841
  t85      = ATtiny85
  t861     = ATtiny861
  t87      = ATtiny87
  t88      = ATtiny88 

  
Back to top
 
IP Logged
 
perigalacticon
Junior Member
**
Offline


Posts: 55
Location: detroit area
Joined: Nov 7th, 2016
Re: different upload behavior between projects in same solution
Reply #1 - Oct 5th, 2020 at 5:00am
Print Post  
I noticed there are significant differences in the .vcxproj files, I included them here.  As far as I know and see in the menus however, all the settings for compiling and uploading the sketches should be the same.

Any help is appreciated.
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2174
Joined: Feb 13th, 2019
Re: different upload behavior between projects in same solution
Reply #2 - Oct 5th, 2020 at 10:13am
Print Post  
Can you confirm that in the second project, a programmer is selected, and the vMicro > Upload > "Enable Programmer for Upload (instead of Port/IP)"  is also enabled?

I can only replicate this when the Enable Programmer is not selected in the second project, but once this is enabled it attempts the upload as expected.
  
Back to top
 
IP Logged
 
perigalacticon
Junior Member
**
Offline


Posts: 55
Location: detroit area
Joined: Nov 7th, 2016
Re: different upload behavior between projects in same solution
Reply #3 - Oct 5th, 2020 at 3:24pm
Print Post  
Yes, I select and deselect "Enable Programmer" from the menu and reselect the programmer as well and get the same error.  I have been switching between the 2 projects by right clicking the project and selecting "Set as Startup project", is the right way to do this?  I tried saving all files after selections but no difference.  

This problem may have started after I tried to setup GDB for debugging.  I thought at first this was available for all AVRs so I had tried it with the 841.  So something may have happened there, but I didn't change anything that wasn't listed in the Instructable.  

The problem might be related to the way I added the 2nd project.  I wanted to make a 2nd version of the existing project, so I copied the files to a new directory using Windows explorer and renamed them.  Then I think I used "open existing arduino project" to add them.  Is this the proper procedure?

It seems maybe VM isn't responding to some button selections?

I attached the verbose output of the compiler and uploader and a screenshot.

Thanks.
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
perigalacticon
Junior Member
**
Offline


Posts: 55
Location: detroit area
Joined: Nov 7th, 2016
Re: different upload behavior between projects in same solution
Reply #4 - Oct 5th, 2020 at 3:46pm
Print Post  
Here's the Burn Bootloader Verbose Output:

  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: different upload behavior between projects in same solution
Reply #5 - Oct 5th, 2020 at 4:07pm
Print Post  
Maybe you should click the "Enable Programmer" button on the tool bar or on the vMicro>Upload menu? It looks that that board doesn't support serial upload.


tip

Make sure the .ino code is active from the intended project before making your programmer selection. The default mode for Visual Micro is that the solution explorer is ignored when determining which project is selected. The .ino wins. You can change this behaviour to allow the selection of the solution explorer to "win" (see the "vMiro>General")

« Last Edit: Oct 5th, 2020 at 4:12pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
perigalacticon
Junior Member
**
Offline


Posts: 55
Location: detroit area
Joined: Nov 7th, 2016
Re: different upload behavior between projects in same solution
Reply #6 - Oct 6th, 2020 at 4:16am
Print Post  
Thanks.  I did try the enable programmer button lots of times.  Not sure what happened but it is all fixed now, I stopped changing the Start-up project.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint