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

Thread: Teensy 3.0 IDE: Two Suggestions

  1. #1
    Senior Member
    Join Date
    Nov 2012
    Posts
    143

    Lightbulb Teensy 3.0 IDE: Two Suggestions

    I like the idea of a self-contained autonomous IDE for Teensy.
    I've created an icon: feel free to use it.Name:  Teensy3-2.png
Views: 1741
Size:  10.3 KB

    I strongly recommend to define a specific Teensy variable to pass on to the gcc and g++ with the -D parameter

    Code:
    -DARDUINO=101 -DTEENSY=3
    as both Arduino and Teensy share the same
    Code:
    -mmcu=atmega32u4
    All other Processing-based Wiring-derived Arduino-like IDEs have their own variables:
    Name:  Teensy3-1.png
Views: 1713
Size:  20.9 KB

  2. #2
    I'm using the Visual Micro plugin for Visual Studio to write code for Teensy. http://www.visualmicro.com/ It is a work in progress, but is already very useful with Intellisense, color coding, some debug capability, more helpful error messages, quick navigation to errors, definitions, and declarations, etc... The developer is very responsive and wants his product to support Teensy boards.

  3. #3
    Senior Member
    Join Date
    Nov 2012
    Posts
    143
    Yes, Visual Micro is a great plug-in for Visual Studio. I'm in touch with its developer and we exchange ideas!

    Visual Studio main advantage over Xcode is available documentation. I really don't understand Apple's obsession for secrecy and lack of documentation. Xcode deserves to be more widely used, even for non-Apple targets.

  4. #4
    Junior Member Cas55's Avatar
    Join Date
    Jun 2013
    Location
    Rotterdam, The Netherlands
    Posts
    3

    Post

    If someone wants to see what the VisualMicro-plug-in can do for Arduino/Teensy programming (yes, sofar I know it runs on windows). But it gives you possibilities beyond the standard arduino IDE and that makes programming for newbies like me so much more fun!

    If you overcome the computertalk, the following youtube video give a nice impression:

    1) http://www.youtube.com/watch?v=lUaQt6rMk1k
    2) http://www.youtube.com/watch?v=fFM8_RhIG0U

    With help of Tim Leek of VisualMicro I managed to get the Teensy3 compiling and debugging.
    On their forum you can find further help, see http://www.visualmicro.com/forums/Ya...1370300581/0#2

    Below are some screen dumps showing the results of the IDE while debugging the Blink.ino project.

    I hope that this is new stimuli for others, searching for debugging facilities,
    Groeten uit Rotterdam,

    Casper

    Click image for larger version. 

Name:	VisualMicro4.jpg 
Views:	471 
Size:	151.1 KB 
ID:	543Click image for larger version. 

Name:	VisualMicro5.jpg 
Views:	398 
Size:	124.7 KB 
ID:	544Click image for larger version. 

Name:	VisualMicro6.jpg 
Views:	396 
Size:	146.3 KB 
ID:	545

  5. #5
    Junior Member
    Join Date
    Nov 2013
    Posts
    4
    Thanks a lot for your description and for sharing - it works well for me.


    On compile errors: Did you get AtmelStudio to mark the line that causes the compile error? Currently I do not get a line indication at all in the output-window so I will have to search by hand. Example:

    Example:

    Code:
    C:\Users\myusername\Documents\arduino\arduino-1.0.5\hardware\tools\arm-none-eabi\bin\arm-none-eabi-g++ -c -g -Os -fno-exceptions -ffunction-sections -fdata-sections -Wall -mcpu=cortex-m4 -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -felide-constructors -std=gnu++0x -I"C:\Users\myusername\Documents\arduino\arduino-1.0.5\hardware\teensy\cores\teensy3" -I"C:\Users\myusername\Documents\arduino\arduino-1.0.5\libraries\SoftwareSerial" -o "C:\Users\myusername\AppData\Local\VMicro\Arduino\Builds\telemetry_convert\teensy3\telemetry_convert.cpp.o"  "C:\Users\myusername\AppData\Local\VMicro\Arduino\Builds\telemetry_convert\teensy3\telemetry_convert.cpp"  -DF_CPU=96000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DVISUALMICRO_COMPILER_VER=1  -mthumb -nostdlib -D__MK20DX128__  -fno-rtti
    telemetry_convert.ino : 'error_here' does not name a type
    telemetry_convert.ino : 'error_here' does not name a type
    telemetry_convert.ino : : In function 'void sendValue(uint8_t, uint16_t, uint32_t)':
    telemetry_convert.ino : 'sendByte' was not declared in this scope

  6. #6
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    25,236
    Are those missing line numbers the output from Visual Micro, or from the Arduino IDE with Teensyduino installed?

    I can't do anything about Visual Micro, but if that's a bug with Arduino+Teensyduino, I'll find and fix it.... if I can reproduce it here, of course.

  7. #7
    Junior Member
    Join Date
    Nov 2013
    Posts
    4
    Thank you Paul, Arduin+Teensyduino works just fine.

    Also if I enter the exact same compile command I get from AtmelStudio/VisualMicro into the shell I can see line numbers in the compile-error. So they seem to get cut out by VisualMicro or AtmelStudio. I will pester the VisualMicro-Guys about it

  8. #8
    Senior Member
    Join Date
    Jun 2013
    Location
    So. Calif
    Posts
    2,828
    Having only VisualStudio Express, I cannot use plugins.
    UsingAtmel's Studio add on to Visual Studio is a work-around but is Atmel only, is it not? One could not target the T3's CPU? Or legally so?

  9. #9
    Junior Member
    Join Date
    Nov 2013
    Posts
    4
    You can use VisualMicro as Plugin for Atmel Studio. This will work with Teensy 3.0 as target.

    Step 1) http://www.visualmicro.com/page/Ardu...el-Studio.aspx

    Step 2) http://www.visualmicro.com/page/Teen...al-Studio.aspx

  10. #10
    Junior Member
    Join Date
    Nov 2013
    Posts
    4
    Just in case somebody else stumbles upon this problem and my posting turns up in search:

    Quote Originally Posted by afterburner View Post
    Thanks a lot for your description and for sharing - it works well for me.


    On compile errors: Did you get AtmelStudio to mark the line that causes the compile error? Currently I do not get a line indication at all in the output-window so I will have to search by hand. Example:

    Example:

    Code:
    C:\Users\myusername\Documents\arduino\arduino-1.0.5\hardware\tools\arm-none-eabi\bin\arm-none-eabi-g++ -c -g -Os -fno-exceptions -ffunction-sections -fdata-sections -Wall -mcpu=cortex-m4 -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -felide-constructors -std=gnu++0x -I"C:\Users\myusername\Documents\arduino\arduino-1.0.5\hardware\teensy\cores\teensy3" -I"C:\Users\myusername\Documents\arduino\arduino-1.0.5\libraries\SoftwareSerial" -o "C:\Users\myusername\AppData\Local\VMicro\Arduino\Builds\telemetry_convert\teensy3\telemetry_convert.cpp.o"  "C:\Users\myusername\AppData\Local\VMicro\Arduino\Builds\telemetry_convert\teensy3\telemetry_convert.cpp"  -DF_CPU=96000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DVISUALMICRO_COMPILER_VER=1  -mthumb -nostdlib -D__MK20DX128__  -fno-rtti
    telemetry_convert.ino : 'error_here' does not name a type
    telemetry_convert.ino : 'error_here' does not name a type
    telemetry_convert.ino : : In function 'void sendValue(uint8_t, uint16_t, uint32_t)':
    telemetry_convert.ino : 'sendByte' was not declared in this scope
    This is partly expected behaviour but you can work around it by double clicking the line with the error message. Full reply from VisualMicro is here: http://www.visualmicro.com/forums/Ya...1370300581/0#5

Tags for this Thread

Posting Permissions

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