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 How does VM upload code to the teensy. (Read 1983 times)
MakelEng
Newbies
*
Offline


Posts: 2
Joined: Dec 6th, 2017
How does VM upload code to the teensy.
Dec 6th, 2017 at 8:18pm
Print Post  
Hello, I am working on a project that requires me to upload new code onto the teensy without using visual micro or the push-button on the teensy.

I am trying to figure out how does visual micro automatically tells the teensy loader to upload the code to the teensy.

I investigated the log output of the teensy loader when VM programs the chip and here is what I see.


11:30:13.572: remote connection opened
11:30:13.572: remote cmd: "comment: Teensyduino 1.37 - WINDOWS (teensy_post_compile)"
11:30:13.573: remote cmd: "status"
11:30:13.573: status data sent
11:30:13.574: remote cmd: "dir:C:\Users\Mark\AppData\Local\Temp\VMBuilds\FUM\teensy36\Debug\"
11:30:13.575: remote cmd: "file:FUM.ino.hex"
11:30:13.585: File "FUM.ino.hex". 63860 bytes, 6% used
11:30:13.591: remote cmd: "status"
11:30:13.591: status data sent
11:30:13.602: remote connection closed

11:31:11.436: remote connection opened
11:31:11.439: remote cmd: "comment: Teensyduino 1.37 - WINDOWS (teensy_reboot)"
11:31:11.440: remote cmd: "status"
11:31:11.442: status data sent
11:31:11.449: remote cmd: "status"
11:31:11.450: status data sent
11:31:11.552: remote cmd: "status"
11:31:11.554: status data sent
11:31:11.655: remote cmd: "status"
11:31:11.656: status data sent
11:31:11.757: remote cmd: "status"
11:31:11.758: status data sent
11:31:11.859: remote cmd: "status"
11:31:11.860: status data sent

//Data transfer happens after this point




Any help would be greatly appreciated. I am not sure if someone else has asked this before, but I tried to look it up and I couldnt find much useful information. 

My entire goal is to duplicate the visual micro upload functionality without using visual micro.

I hope I am being clear.

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


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: How does VM upload code to the teensy.
Reply #1 - Dec 8th, 2017 at 3:30pm
Print Post  
If you switch on vmicro>compiler>verbose and "show build properties" you will see all the commands.

Visual Micro reads the commands for each board from the platform.txt and board.txt installed with each platform. If you look under the arduino ide/hardware folder you will find these files for Teensy.

The Teensy loaded.exe is probably what you need to run.
  
Back to top
WWW  
IP Logged
 
MakelEng
Newbies
*
Offline


Posts: 2
Joined: Dec 6th, 2017
Re: How does VM upload code to the teensy.
Reply #2 - Dec 8th, 2017 at 4:26pm
Print Post  
Thanks for the help. I solved this issue by running teensy_reboot.exe

  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint