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

Thread: TeensyStep build errors

  1. #1
    Junior Member
    Join Date
    Jan 2016
    Posts
    19

    TeensyStep build errors

    The example HelloStepper fails to compile. First error is:
    PIT.h: 30:2: error: 'KINETISK_PIT_CHANNEL_t' does not name a type
    KINETISK_PIT_CHANNEL_t* channel = nullptr

    Any suggestions on how to resolve the error?

  2. #2
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    18,658
    Do you have the right board selected in Tools > Boards?

    If so, please give us a link to the code in question.

  3. #3
    Junior Member
    Join Date
    Jan 2016
    Posts
    19
    https://github.com/luni64/TeensyStep...s/HelloStepper

    Teensy 3.2/3.1 is selected.

    I'm using Visual Studio 2015.

  4. #4
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    7,059
    Try with Arduino & TeensyDuino install instance. That is easier to debug given the code if it fails.

  5. #5
    Junior Member
    Join Date
    Jan 2016
    Posts
    19
    I didn't think I'd ever hear the Arduino IDE was easier to use

    It fails with the same error.

  6. #6
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    18,658
    I tried just now, with Arduino 1.8.5 and Teensyduino 1.4.0, using Teensy 3.2 selected in Tools > Boards.

    It compiles without any error. Here's a screenshot.

    Click image for larger version. 

Name:	sc.png 
Views:	36 
Size:	39.5 KB 
ID:	11783

  7. #7
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    7,059
    Quote Originally Posted by Elf View Post
    I didn't think I'd ever hear the Arduino IDE was easier to use

    It fails with the same error.
    that was easier to 'debug' - as for usage . . . that involves a user

    With VisStudio in use, assuming Windows:: For easiest w/Windows usage pull the IDE ZIP down of the version Paul used - extract to a fresh directory - install TeensyDuino 1.40 there. That should give a true starting point - uses about 650MB.

  8. #8
    Junior Member
    Join Date
    Jan 2016
    Posts
    19
    Updating Teensyduino cured the problem.

    Thanks

  9. #9
    Junior Member
    Join Date
    Jun 2017
    Posts
    14
    Hi. I ereceive the same error:
    error: 'KINETISK_PIT_CHANNEL_t' does not name a type KINETISK_PIT_CHANNEL_t* channel = nullptr

    I'm running Teensy Installer Ver 1.31. I assume I need to update to a later version.

    I ran the Teensyduino 1.44 installer, and it is asking me to "Choose Arduino location to install Teensyduino". However I',not sure which folder to pick. I've tried the Aduino folder under Program Files (x86) and also the Arduini folder and users\...\documents\arduino. As I navigate through the file structure the "Next" button stays greyed out so I cannot proceed with the installation.

    Advice please.

  10. #10
    Senior Member
    Join Date
    Apr 2014
    Location
    Germany
    Posts
    306
    I assume your Arduino version is not compatible with Teensyduino 1.44. According to the homepage. Teensyduino 1.44 supports Arduino versions 1.0.6 and 1.6.5-r5 and 1.8.1 and 1.8.5 and 1.8.6 and 1.8.7. Best would be to upate Arduino to 1.8.7 and after that install Teensyduino 1.4.4

  11. #11
    Junior Member
    Join Date
    Jun 2017
    Posts
    14
    I'm running Arduino version 1.6.12
    Is there a risk that by updating to 1.8.7 that any of my previous projects will not compile ?

  12. #12
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany NRW
    Posts
    4,751
    The risk is very small. If you want to be sure, why not just make a backup first.

  13. #13
    Senior Member
    Join Date
    Apr 2014
    Location
    Germany
    Posts
    306
    You can also install the new version parallel to the old version: Just download the Arduino zip file and extract it wherever you want without touching the old version.

  14. #14
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    18,658
    Quote Originally Posted by Ausplex View Post
    As I navigate through the file structure the "Next" button stays greyed out so I cannot proceed with the installation.

    Advice please.
    Each installer only recognizes a few versions of Arduino. The supported versions are shown on the first page (which nobody reads) and the website right below the download links (also a place people don't usually read). Look at either of those to see which versions of Arduino can be used. If you have a different version, you'll need to install one of the supported Arduino versions.

    As Luni mentioned, you can extract the ZIP file in a new location on your PC and then install into that copy, if you want to keep the old install intact. But if you have 2 or more copies of Arduino+Teensyduino on your PC, remember where they are located and which one you're using. Many people have gone down that path and later faced confusing problems when they double-click on a file and Windows runs a different copy of Arduino than they expected. Remember to look at the the title bar of each window, or click Help > About to check which version you're really using.

Posting Permissions

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