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 [2]  Send TopicPrint
Very Hot Topic (More than 25 Replies) Where is "solution explorer"? (Read 29054 times)
wolf
Junior Member
**
Offline


Posts: 33
Joined: Sep 19th, 2014
Re: Where is "solution explorer"?
Reply #20 - Sep 22nd, 2014 at 11:32pm
Print Post  
The usb/serial stuff is working.
HalfKey loaded as HID-compliant device, as described in http://www.pjrc.com/teensy/check_halfkay_vista.html :

PaulStoffregen said:
Quote:
Teensy is not natively a serial device. It only becomes USB Serial after you program it.

More info here.

http://www.pjrc.com/teensy/troubleshoot.html

I copied the applications.txt and configured in Visual Micro to "Teensy" as you suggested.
But the COM field is still blank:

I also opened a trouble shooting thread on http://forum.pjrc.com/threads/26681-Loading-Teensy-2-0-USB-serial-driver

Thank you.
« Last Edit: Jan 20th, 2023 at 11:56pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Where is "solution explorer"?
Reply #21 - Sep 23rd, 2014 at 11:47am
Print Post  
Hi,

I think we are getting confused.

1) The update you made to applications.txt should mean that upload now works in atmel studio

2) The serial port is not required for upload but is required for serial communication. Can you please show a screen shot of the Arduino Ide showing a COM port. The yellow !!! in your image suggests the driver is not installed correctly. Paul suggests that when you have performed the correct upload to teensy you will see the serial port.

Thanks
« Last Edit: Sep 23rd, 2014 at 11:49am by Tim@Visual Micro »  
Back to top
IP Logged
 
wolf
Junior Member
**
Offline


Posts: 33
Joined: Sep 19th, 2014
Re: Where is "solution explorer"?
Reply #22 - Sep 23rd, 2014 at 2:09pm
Print Post  
OK, I see what you mean.
Before uploading to Teensy, Arduino IDE > Tools > "Serial Port" is dimmed.
After uploading to Teensy, it shows COM3:

Now I am learning to compile and upload Blink on AtmelStudio.
AtmelStudio should upload without needing "COM3" in the Serial Ports field.
I will let you know how it goes.

Thank you for your patients.
« Last Edit: Jan 20th, 2023 at 11:56pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
wolf
Junior Member
**
Offline


Posts: 33
Joined: Sep 19th, 2014
Re: Where is "solution explorer"?
Reply #23 - Sep 23rd, 2014 at 11:24pm
Print Post  
I am attempting to compile a blink example and get an error.
Google did not find the error:
Quote:
Compiling 'blink' for 'Arduino Uno'
Binary sketch size: 1,076 bytes (used 3% of a 32,256 byte maximum) (3.25 secs)
Uploading to I/O board using 'USB'
avrdude: ser_open(): can't open device "\\.\": The filename, directory name, or volume label syntax is incorrect.

Should the first line say, "Compiling 'blink' for 'Teensyduino' "?

Thank you.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Where is "solution explorer"?
Reply #24 - Sep 24th, 2014 at 1:39am
Print Post  
Hi,

The compiler has worked okay but the upload is failing with a port error.

1)
Please switch on tools>visual micro>verbose messages then try the upload again.

2) Questions

In the Arduino IDE is see COM3 is available. 

Is this still the case? Can you see COM3 in the Arduino Ide?
Can you not see any ports in Visual Micro on tools>visual micro>serial ports?

Thanks
« Last Edit: Sep 24th, 2014 at 1:41am by Tim@Visual Micro »  
Back to top
IP Logged
 
wolf
Junior Member
**
Offline


Posts: 33
Joined: Sep 19th, 2014
Re: Where is "solution explorer"?
Reply #25 - Sep 24th, 2014 at 2:42am
Print Post  
Here is the verbose message from Output:
Quote:
Compiling 'blink' for 'Arduino Uno'
Build folder: file:///C:/Users/wolf/AppData/Local/VMicro/Arduino/Builds/blink/uno
Summary: Header=1 Prototypes=3 Imports=0
Additional Defines: F_CPU=16000000L;USB_SERIAL;LAYOUT_US_ENGLISH;VISUALMICRO_COMPILER_VER=1;
Architecture Tools: C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\
GCC: 4.3.2
Sketchbook: file:///C:/Users/wolf/Documents/Arduino
Core Include Paths
Include Path 'C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino'
Include Path 'C:\Program Files (x86)\Arduino\hardware\arduino\variants\standard'
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -fno-exceptions -ffunction-sections -fdata-sections -Wall -mmcu=atmega328p -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -I"C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino" -I"C:\Program Files (x86)\Arduino\hardware\arduino\variants\standard" -o "C:\Users\wolf\AppData\Local\VMicro\Arduino\Builds\blink\uno\blink.cpp.o"  "C:\Users\wolf\AppData\Local\VMicro\Arduino\Builds\blink\uno\blink.cpp"  -DF_CPU=16000000L -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DVISUALMICRO_COMPILER_VER=1
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-gcc -Os -Wl,--gc-sections -mmcu=atmega328p -L"C:\Users\wolf\AppData\Local\VMicro\Arduino\Builds\blink\uno" -o "C:\Users\wolf\AppData\Local\VMicro\Arduino\Builds\blink\uno\blink.elf" "C:\Users\wolf\AppData\Local\VMicro\Arduino\Builds\blink\uno\blink.cpp.o" "C:\Users\wolf\AppData\Local\VMicro\Arduino\Builds\blink\uno\core.a" -lm
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-objcopy -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 "C:\Users\wolf\AppData\Local\VMicro\Arduino\Builds\blink\uno\blink.elf" "C:\Users\wolf\AppData\Local\VMicro\Arduino\Builds\blink\uno\blink.eep"
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-objcopy -O ihex -R .eeprom "C:\Users\wolf\AppData\Local\VMicro\Arduino\Builds\blink\uno\blink.elf" "C:\Users\wolf\AppData\Local\VMicro\Arduino\Builds\blink\uno\blink.hex"
Binary sketch size: 1,076 bytes (used 3% of a 32,256 byte maximum) (0.23 secs)
Uploading to I/O board using 'USB'
Uploader started for board Arduino Uno
Upload method will be: bootloader
Uploading via Bootloader 
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avrdude -C"C:\Program Files (x86)\Arduino\hardware/tools/avr/etc/avrdude.conf" -v -v -v -v -patmega328p -carduino -P\\.\ -b115200 -D -V ":i
avrdude: Version 5.11, compiled on Sep  2 2011 at 19:38:36
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "C:\Program Files (x86)\Arduino\hardware/tools/avr/etc/avrdude.conf"

         Using Port                    : \\.\
         Using Programmer              : arduino
         Overriding Baud Rate          : 115200
avrdude: ser_open(): can't open device "\\.\": The filename, directory name, or volume label syntax is incorrect.



avrdude done.  Thank you.


After Arduino IDE uploads to Teensy, Arduino IDE on Tools>Serial Port: "COM3"

After pressing the HalfKay button on the Teensy circuit board, blinking stops and Arduino IDE on Tools>Serial Port - is dimmed.

Visual Micro on tools>visual micro(Teensy)>Serial port, Other serial ports - are dimmed.
« Last Edit: Sep 24th, 2014 at 2:43am by wolf »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Where is "solution explorer"?
Reply #26 - Sep 24th, 2014 at 2:48am
Print Post  
Oh sorry I missed it in your picture before. For some reason the project thinks it is associated to the Arduino Uno. Can you please click Teensy 2.0 in the toolbar and select a different board (any one) then re-select the teensy 2.0 and try again. 

Thanks
  
Back to top
IP Logged
 
wolf
Junior Member
**
Offline


Posts: 33
Joined: Sep 19th, 2014
Re: Where is "solution explorer"?
Reply #27 - Sep 24th, 2014 at 3:10am
Print Post  
That fixed it.  Teensy is now blinking fast or slow, depending on what I compile Smiley.
But the last line in Output window is incongruent:
Quote:
Compiling 'blink' for 'Teensy 2.0'
Build folder: file:///C:/Users/wolf/AppData/Local/VMicro/Arduino/Builds/blink/teensy2
Summary: Header=1 Prototypes=3 Imports=0
Additional Defines: F_CPU=16000000L;USB_SERIAL;LAYOUT_US_ENGLISH;VISUALMICRO_COMPILER_VER=1;
Architecture Tools: C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\
GCC: 4.3.2
Sketchbook: file:///C:/Users/wolf/Documents/Arduino
Core Include Paths
Include Path 'C:\Program Files (x86)\Arduino\hardware\teensy\cores\teensy'
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -fno-exceptions -ffunction-sections -fdata-sections -Wall -mmcu=atmega32u4 -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -felide-constructors -I"C:\Program Files (x86)\Arduino\hardware\teensy\cores\teensy" -o "C:\Users\wolf\AppData\Local\VMicro\Arduino\Builds\blink\teensy2\blink.cpp.o"  "C:\Users\wolf\AppData\Local\VMicro\Arduino\Builds\blink\teensy2\blink.cpp"  -DF_CPU=16000000L -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DVISUALMICRO_COMPILER_VER=1  -DTEENSYDUINO=118 
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-gcc -Os -Wl,--gc-sections,--relax -mmcu=atmega32u4 -L"C:\Users\wolf\AppData\Local\VMicro\Arduino\Builds\blink\teensy2" -o "C:\Users\wolf\AppData\Local\VMicro\Arduino\Builds\blink\teensy2\blink.elf" "C:\Users\wolf\AppData\Local\VMicro\Arduino\Builds\blink\teensy2\blink.cpp.o" "C:\Users\wolf\AppData\Local\VMicro\Arduino\Builds\blink\teensy2\core.a" -lm
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-objcopy -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 "C:\Users\wolf\AppData\Local\VMicro\Arduino\Builds\blink\teensy2\blink.elf" "C:\Users\wolf\AppData\Local\VMicro\Arduino\Builds\blink\teensy2\blink.eep"
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-objcopy -O ihex -R .eeprom "C:\Users\wolf\AppData\Local\VMicro\Arduino\Builds\blink\teensy2\blink.elf" "C:\Users\wolf\AppData\Local\VMicro\Arduino\Builds\blink\teensy2\blink.hex"
C:\Program Files (x86)\Arduino\hardware\tools\teensy_post_compile.exe -board=teensy2 -tools="C:\Program Files (x86)\Arduino\hardware\tools" -path="C:\Users\wolf\AppData\Local\VMicro\Arduino\Builds\blink\teensy2" -file=blink
Binary sketch size: 2,028 bytes (used 6% of a 32,256 byte maximum) (0.30 secs)
Uploading to I/O board using 'USB'
Uploader started for board Teensy 2.0
Upload method will be: bootloader
Uploading via Bootloader 
C:\Program Files (x86)\Arduino\hardware\tools\teensy_reboot.exe -v -v -v -v -patmega32u4 -chalfkay -P\\.\ -b12000000 -D -V .hex":i
teensy_reboot, verbose mode
trying port 3149
found Teensy Loader, version 1.19
send: status - at Tue Sep 23 21:05:07 2014
Teensy Loader is currently busy with another operation (r).  Please try again in a few seconds, or restart Teensy Loader.
« Last Edit: Sep 24th, 2014 at 3:51am by wolf »  
Back to top
 
IP Logged
 
wolf
Junior Member
**
Offline


Posts: 33
Joined: Sep 19th, 2014
Re: Where is "solution explorer"?
Reply #28 - Sep 24th, 2014 at 8:56am
Print Post  
The loader no longer says, "Teensy Loader is currently busy with another operation (r).  Please try again in a few seconds, or restart Teensy Loader."

Everything seems to be working fine Smiley.  Thank you for all your assistance.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Where is "solution explorer"?
Reply #29 - Sep 24th, 2014 at 1:17pm
Print Post  
Great. All of those messages come from the teensy programs. Visual Micro doesn't know anything about them just shows the result. So any problems in that area should be addressed by the teensy forum.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1 [2] 
Send TopicPrint