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 Custom boards.txt (Read 5493 times)
derrick
Newbies
*
Offline


Posts: 7
Location: Maine
Joined: Feb 16th, 2013
Custom boards.txt
Nov 11th, 2013 at 5:15pm
Print Post  
I installed support for ATMEGA 328p using a new boards.txt
Code
Select All
atmega328smd16e.name=ATmega328 SMD (16Mhz Ext, no boot)

atmega328smd16e.upload.protocol=stk500
atmega328smd16e.upload.maximum_size=30720
atmega328smd16e.upload.speed=57600

atmega328smd16e.bootloader.low_fuses=0xFF
atmega328smd16e.bootloader.high_fuses=0xDA
atmega328smd16e.bootloader.extended_fuses=0x05
atmega328smd16e.bootloader.path=arduino:atmega
atmega328smd16e.bootloader.unlock_bits=0x3F
atmega328smd16e.bootloader.lock_bits=0x0F

atmega328smd16e.build.mcu=atmega328p
atmega328smd16e.build.f_cpu=16000000L
atmega328smd16e.build.core=arduino:arduino
atmega328smd16e.build.variant=arduino:eightanaloginputs

atmega328smd8i.name=ATmega328 SMD (8Mhz Int, no boot)

atmega328smd8i.upload.protocol=stk500
atmega328smd8i.upload.maximum_size=30720
atmega328smd8i.upload.speed=57600

atmega328smd8i.bootloader.low_fuses=0xE2
atmega328smd8i.bootloader.high_fuses=0xD7
atmega328smd8i.bootloader.extended_fuses=0x05
atmega328smd8i.bootloader.unlock_bits=0x3F
atmega328smd8i.bootloader.lock_bits=0x0F

atmega328smd8i.build.mcu=atmega328p
atmega328smd8i.build.f_cpu=8000000L
atmega328smd8i.build.core=arduino:arduino
atmega328smd8i.build.variant=arduino:eightanaloginputs

atmega328smd1i.name=ATmega328 SMD (1Mhz Int, no boot)

atmega328smd1i.upload.protocol=stk500
atmega328smd1i.upload.maximum_size=30720
atmega328smd1i.upload.speed=57600

atmega328smd1i.bootloader.low_fuses=0x62
atmega328smd1i.bootloader.high_fuses=0xD7
atmega328smd1i.bootloader.extended_fuses=0x05
atmega328smd1i.bootloader.unlock_bits=0x3F
atmega328smd1i.bootloader.lock_bits=0x0F

atmega328smd1i.build.mcu=atmega328p
atmega328smd1i.build.f_cpu=1000000L
atmega328smd1i.build.core=arduino:arduino
atmega328smd1i.build.variant=arduino:eightanaloginputs
 


Works under Arduino, does not work in Visual Micro under Visual Studio.
Quote:

System.NotSupportedException: The given path's format is not supported.
   at System.Security.Util.StringExpressionSet.CanonicalizePath(String path, Boolean needFullPath)
   at System.Security.Util.StringExpressionSet.CreateListFromExpressions(String[] str, Boolean needFullPath)
   at System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, AccessControlActions control, String[] pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boolean copyPathList)
   at System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess access, String[] pathList, Boolean checkForDuplicates, Boolean needFullPath)
   at System.IO.DirectoryInfo.Init(String path, Boolean checkHost)
   at System.IO.DirectoryInfo..ctor(String path)
   at processing.app.Board.get_boardVariantFullPath()
   at Visual.Micro.Visual.Studio.Arduino.AddInApp.CompileDo(Project oProject, Boolean IsDebugStartCommand)
   at Visual.Micro.Visual.Studio.Arduino.AddInApp.Compile(Project oProject, Boolean IsDebugStartCommand)


I do not have this problem with the ATTiny84/85 support I added.

Using latest Visual Micro version.

I have tried various install techniques, including modifying the master Arduino boards.txt. In all cases it's worked under Arduino, but not under Visual Micro.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Custom boards.txt
Reply #1 - Nov 11th, 2013 at 8:50pm
Print Post  
Hi,

Thanks for the detailed report. From the report it looks like a bug in how Visual Micro constructs the location of the variants folder which your board def specifies it should be inherited from the main "arduino\variants\eightanaloginputs"

Code
Select All
atmega328smd16e.build.variant=arduino:eightanaloginputs 



Can you please explain where you have placed the new boards.txt so that we can replicate.

I short term solution would be to paste your new board definitions into the arduino\hardware\arduino\boards.txt that is shipped with the arduino ide and then you probably can remove the "arduino:" before "eightanaloginputs", you could also then change the "arduino:" from the .core property as follows:-

Code
Select All
atmega328smd16e.build.core=arduino 



I hope this make sense, we will fix this in the next release.

Thanks again for the report
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Custom boards.txt
Reply #2 - Dec 17th, 2013 at 9:15pm
Print Post  
Fixed in the next release. Thanks for the report
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint