I'm getting errors in Visual Micro when trying to compile (in Debug Mode) the Example Blink Program. Within the last few days I have installed the following software on my Windows-7 64-bit computer: Arduino IDE release 1.6.12. Teensyduino 1.31 (currently in beta for the latest Arduino 1.6.12). Visual Studio Community 2015 Version 14.0.2543101.01 Update 3. Visual Micro Version 1610.4.2 My target board is a Teensy LC. In the Arduio IDE environment the "Basic Blink Program" compiles and loads into the Teensy LC board with no issues. I've tried the compile and upload with all the USB options: "No USB", "Serial", "Keyboard", "Keyboard+Mouse+Joystick", "Serial+Keyboard+Mouse+Joystick", "Keyboard+Touchscreen", "MIDI", "Serial+MIDI", "Raw HID", and "Flight Sim Controls". I've tested all the USB option settings, and they compile and successfully upload into the Teensy, LC and blink at the various rates I set in the sketch code. Building the same program in the Visual Micro IDE is giving varing results. Some USB Board Settings compile (in debug) and load correctly...and some don't. The configurations that work are: "No USB", "Serial", "MIDI", "Serial+MIDI". They compile, upload, and run correctly in Teensy LC board, But the "Keyboard", "Keyboard+Mouse+Joystick", "Serial+Keyboard+Mouse+Joystick", "Keyboard+Touchscreen", "Raw HID", and "Flight Sim Controls" USB configurations give me the following compile errors in the Output Window: Compiling debug version of 'Blinky' for 'Teensy LC' VM_DBG.cpp:33: In file included from Error compiling libraries That particular line points to a VM_DBG.h file (maybe missing)??? When I compile in "Release Mode" everything works for all USB configurations. To be quite honest, I don't know what the difference is between debug and release mode. I really never set break points while designing and testing my code. I turn LEDs on and off in various spots to locate and fix bugs in my code. Just curious on why "debug mode" is generating errors. Also, what are the differences of "Build Solution", "Rebuild Solution", "Build Blinky", "Rebuild Blinky", "Clean Blinky", and the "Project Only" options. It seems like the various build and rebuild commands do the same thing...they recompile and link. I never put more than one project into a solution directory, and don't make an extra project subdirectory when defining a New Project. So maybe all those different compile options are for more complex solution setups.
|