Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 4 of 4

Thread: Teensy with Atmel Studio 7 + Visual Micro

  1. #1
    Junior Member
    Join Date
    Dec 2018
    Posts
    7

    Teensy with Atmel Studio 7 + Visual Micro

    Hi,

    Am porting my Arduino program over to Teensy LC but because of its size I prefer to use the extra editing features of Studio7 +VM.

    Have found two 2013 threads in this forum about using Teensy with Studio+VM, but only bare info and nothing since ?

    Has anyone successfully run Teensy with these programs or if not, can suggest a better alternative ?

    thanks

  2. #2
    Junior Member
    Join Date
    Dec 2018
    Posts
    7
    Well got Teensy working OK on Studio 7 etc, however one little problem exists that as a beginner am not sure whats the best way to handle things.

    It relates to the Teensy Libraries, eg OneWire.
    If I build a Teensy project with the default Arduino OneWire it gives an error until I replace it with the Teensy version, but if I then change back to a pure Arduino project that needs OneWire it seems to compile and work ok using the Teensy Onewire.

    So it suggests (?) some of the Teensy libraries are cross compatible, but suspect some are not ?

    Rather than renaming the libraries each time, is there some better way to handle the libraries when switching between Teensy and pure Arduino projects ?


    Ah, just found one of Pauls earlier answers to the same point, though wonder if anyone has since found a simple workaround.

    Currently thinking/trying out using a USB stick with a Portable version of the Arduino IDE just for Teensy projects ...?

    This is a "feature" of Arduino. You can force Arduino to use your own copy of a library by putting into your sketchbook libraries folder, which by default is Documents\Arduino\libraries.

    Trouble is, when you put a copy of SPI, Time and Wire in there for some particular project, they will always get used even when you don't want them to be used for another project. The only solution is to move them out of that folder.
    Last edited by Dino; 01-06-2019 at 09:03 PM.

  3. #3
    Junior Member
    Join Date
    Aug 2019
    Posts
    6
    Hi Dino, could you explain in detail how did you use the Atmel Studio 7 programming environment to program and debug Teensy cards?
    I have a Teensy 3.5 and the new 4.0, but I still can't use Atmel Studio in connection with these two cards
    Is possible execute code step-by-step ?

  4. #4
    Junior Member
    Join Date
    Dec 2018
    Posts
    7
    Quote Originally Posted by amorosik View Post
    Hi Dino, could you explain in detail how did you use the Atmel Studio 7 programming environment to program and debug Teensy cards?
    I have a Teensy 3.5 and the new 4.0, but I still can't use Atmel Studio in connection with these two cards
    Is possible execute code step-by-step ?
    Its a while since I tested things out with a little Teensy LC board.

    Do you have the Arduino IDE eg 1.85 or above ? as its easier to set things up via that.

    Assuming its loaded, you need to install this-
    https://www.pjrc.com/teensy/td_download.html

    That will then allow you to run , say the Blink example sketch , just selecting the Teensy board and port from the Board Manager drop down menu. that should work fine...

    However for larger projects you may find you have to use one of the Teensy libraries instead of the Default Arduino ones, as I found above with the OneWire library.
    https://www.pjrc.com/teensy/td_libs.html

    To run your Arduino work on Atmel 7 you need to install the Visual Micro free plug in.
    https://www.visualmicro.com/

    Once that installed you either open a New Arduino Project or an existing Arduino project, and away you go. You can still access the Teensy project from the Arduino IDE.


    For projects with large amounts of code it makes editing so much easier, though not really used Atmels debug features, but there are some quiet detailed Ytubes on doing just that.

    Click image for larger version. 

Name:	000012.jpg 
Views:	11 
Size:	69.7 KB 
ID:	17293 Attachment 17294 Click image for larger version. 

Name:	000015.jpg 
Views:	18 
Size:	40.4 KB 
ID:	17296
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	000014.jpg 
Views:	11 
Size:	32.1 KB 
ID:	17295  

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •