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 1305.01 - Fixes and Additions + Beta with Atmel Studio (Read 7895 times)
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
1305.01 - Fixes and Additions + Beta with Atmel Studio
Apr 19th, 2013 at 6:03pm
Print Post  
fix: Compiler now stops on error if disabled/enabled via tools options

add: Official release of support for the TeensyDuino Ide

fix: Boards.txt defines that specified a value did not work, therefore, defines with value (-da=1) needed to be specified as project Defines (a=1;). This is no longer the case.

fix: In some instances, when opening an arduino project the the sketch was not validated to ensure the project represented the actual sketch. note: If the sketch had been altered in another tool (or using explorer) then the� knowledge vs has of the project might be wrong. This is why the plugin performs this function when an arduino project is opened.

add: First time use now prompts a task dialog requesting users to enter the location of the Arduino Ide. The dialog also provides an Ide download link to arduino.cc

add: Menu item "Tools>Arduino>Micro Explorer". Previously the Micro Explorer could only be accessed using the yellow question mark tool bar button.

fix: Custom hardware boards.txt failed to resolve core path correctly if the core was in a different location to the [boards.txt location].../cores and sketchfolder/hardware/.... folders.

mod: The default BreakPoint "Hit Count" measurement has been changed from "Count" to Milliseconds. This change will only apply to new projects. It makes more sense to use a time frequency because a count if often irrelevant. Example: To make a breakpoints active every 1 second set a BreakPoint "Hit Count" to "Break when multiple of 1000"

mod: custom toolchains are now support under the sketchbook folder "\\hardware\\tools". Previously toolchains could only be located under the "[arduinoIde]\hardware\tools" folder

mod: The tools>options category that is used to specify the location of the arduino.exe has been renamed to "tools>options>visual micro>applications & locations>arduino 1.0.x Application"

add: The sketchbook folder may now be set in the Visual Studio options "tools>options>visual micro>applications & locations>arduino 1.0.x Sketchbook"

mode: Changes to either "arduino.exe location" or "sketchbook folder location" in tools>options take effect immediately. (re-start no longer required)

add: "Tools>Arduino>Reload Tool Chain" detects changes to boards.txt and libraries, reloads and resets the projects intellisense without needing to re-start vs

fix: Micro Explorer detects a refresh of libraries and re-creates help/examples/references

fix: "Project>Upload last Arduino build" often failed when a project had only recently been opened

add: Upload can now run the simulator or cygwin gcc program instead of uploading (see boards.txt below)

fix: Including libraries that have a utilities sub folder caused the compiler cache to fail and a full library build would always occurr

add: support for apm arduino 9x build process
« Last Edit: May 12th, 2013 at 2:17am by Tim@Visual Micro »  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
1305.01 Beta - Released for experienced users only
Reply #1 - May 1st, 2013 at 1:19am
Print Post  
fix: compiler cache failed if included project libs contained utility folder source code

Advanced User and Hardware Designer Options

add: tools>options>visual micro>location>cygwin

add: new flexible build process tested with cygwin builds

add: run .elf as windows process

add: board "build.option[n]" defines recoginized in vs project for intellisense purposes

add: auto find gcc version during cygwin builds

add: build environment variables are automatically defined:-
Code
Select All
SKETCH
SKETCH_PATH
SKETCH_BUILD_FOLDER
SKETCH_PATH_W_EXT
SKETCH_PATH
SOURCE_FILE 



draft example of some new build properties. 

tip :All teensy designed properties can be used in combination with vm and arduino default properties


Code
Select All
apm_SITL.name=Apm SITL

apm_SITL.upload.protocol=wiring
apm_SITL.upload.maximum_size=258048
apm_SITL.upload.speed=115200

apm_SITL.bootloader.low_fuses=0xFF
apm_SITL.bootloader.high_fuses=0xD8
apm_SITL.bootloader.extended_fuses=0xFD
apm_SITL.bootloader.path=stk500v2
apm_SITL.bootloader.file=stk500boot_v2_mega2560.hex
apm_SITL.bootloader.unlock_bits=0x3F
apm_SITL.bootloader.lock_bits=0x0F

apm_SITL.build.mcu=atmega2560
apm_SITL.build.f_cpu=
apm_SITL.build.core=


apm_SITL.build.nocore=true
apm_SITL.build.noarchive=true
apm_SITL.build.noeep=true
apm_SITL.build.nohex=true
apm_SITL.build.nosize=true

apm_SITL.build.toolset=cygwin
apm_SITL.build.architecture=
apm_SITL.build.toolchain.path=

apm_SITL.build.command.gcc=gcc-?
apm_SITL.build.command.g++=g++-?
apm_SITL.build.command.link=g++-?
apm_SITL.build.command.runcmd=/c "%SKETCH_BUILD_PATH%\%SKETCH%.elf"

apm_SITL.build.default.cpp.options=-g -DF_CPU=� �-Wa,-adhlns="%SOURCE_BUILD_PATH%\%SOURCE_FILE%.lst" -O0 -g -Wformat -Wall -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Wformat=2 -Wno-reorder -MD -MT "%SOURCE_BUILD_PATH%\%SOURCE_FILE_W_EXT%.o" -ffunction-sections -fdata-sections -fno-exceptions -fsigned-char -c -I"%SKETCH_PATH%"
apm_SITL.build.default.c.options=-g� -DF_CPU= -Wa,-adhlns="%SOURCE_BUILD_PATH%\%SOURCE_FILE%.lst" -O0 -g -Wformat -Wall -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Wformat=2 -Wno-reorder -MD -MT "%SOURCE_BUILD_PATH%\%SOURCE_FILE_W_EXT%.o" -ffunction-sections -fdata-sections -fsigned-char -c -I"%SKETCH_PATH%"
apm_SITL.build.default.s.options=-g� -assembler-with-cpp -DF_CPU= -Wa,-adhlns="%SOURCE_BUILD_PATH%\%SOURCE_FILE%.lst" -O0 -g� -MD -MT "%SOURCE_BUILD_PATH%\%SOURCE_FILE_W_EXT%.o" -c -I"%SKETCH_PATH%"

apm_SITL.build.option1=-DCONFIG_HAL_BOARD=HAL_BOARD_AVR_SITL
apm_SITL.build.option2=-DSKETCH="\"%SKETCH%\""
apm_SITL.build.option3=-D_GNU_SOURCE

apm_SITL.build.default.link.options=-g -D_GNU_SOURCE -O0 -g -Wformat -Wall -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Wformat=2 -Wl,--gc-sections -Wl,-Map -Wl,"%SOURCE_BUILD_PATH%\%SKETCH%.map"
 



nb: 

If property "build.toolchain.path=" exists but is empty then the commands such as g++ are expected to be found in the computers "Path" environment variable. If the "build.toolchain.path=" property does not exist then the normal arduino toolchain or "build.architecture" toolchain is used.

The '?' below is replaced with the first char of the gcc version number

The %ENV_VAR% variables shown below are provided automatically. Any other windows variables can be used

build.command.runcmd causes a windows cmd.exe process to be used to run the resulting application (.elf)

All non-arduino commands are optional, Arduino defaults will be applied

The "build.default." compiler options override the entire standard arduino build settings
"command.link" defaults to gcc (as per arduino design)
« Last Edit: May 1st, 2013 at 4:27am by Tim@Visual Micro »  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: 1304.x Pre-Release Work in Progress
Reply #2 - May 1st, 2013 at 3:57am
Print Post  
Early beta on codeplex for experienced visual micro users to test

http://www.visualmicro.com/forums/YaBB.pl?num=1366394606
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: 1305.01 Beta - Released for experienced users only
Reply #3 - May 1st, 2013 at 4:23am
Print Post  
Note: This release is not yet recommended for general use. When it runs for the first time you will be prompted that there is a new Visual Micro version available. Click "Cancel", 1305.01 is the most recent release so the prompt can be ignored.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint