I installed support for ATMEGA 328p using a new boards.txt
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.