Forum Rule: Always post complete source code & details to reproduce any issue!
Page 5 of 5 FirstFirst ... 3 4 5
Results 101 to 125 of 125

Thread: 3D Printer Software with Teensy 3.1

  1. #101
    Got a problem... I cna't compile for Teensy 3.5...
    C:\Program Files (x86)\Arduino\libraries\Wire\utility\twi.c:27:24: fatal error: compat/twi.h: No such file or directory

    #include <compat/twi.h>

    But the file is there

  2. #102
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    9,913
    No 'compat' directory - File is :: I:\arduino-1.8.1\hardware\teensy\avr\libraries\Wire\utility\t wi.h ???

  3. #103
    deleted library in libraries/wire and now it compiles

  4. #104
    Is onboard SD card supported on Teensy 3.5 and 3.6 ?

  5. #105
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    20,674
    Quote Originally Posted by Tady View Post
    Is onboard SD card supported on Teensy 3.5 and 3.6 ?
    Yes, it is. First, make sure Teensy is selected in Tools > Boards. Then open any of the examples from File > Examples > SD. Look at the comments in the example about how to select the built in SD card.

  6. #106
    Paul thank you! I know that the card is suported . i used the 3.6 in my motion simulator I was asking @GhostPrototype if built in sd is supportd in his Marlin firmware )
    These 3.6 are amazing!

  7. #107
    Not currently, but it would make sense to implement it.

    Edit: Looking at the card reader in Marlin and the Teensy SD example, it could be nothing more than defining the correct SDSS pin. For the onboard on T3.5 and T3.6 this would be "BUILTIN_SDCARD".
    Last edited by GhostPrototype; 05-14-2017 at 11:28 AM.

  8. #108
    I ordered a new 3.6 and I will try it out thank you!

  9. #109
    This is way out of my reach. I don't know where to begin to edit the SD library for Builtin support The Marlin SD h and cpp files are very simmilar but still different. Maybe PaulStoffregen could thake a quick look on what to do. If he is not too busy

  10. #110
    OK it seems something works I copied KinetisSDHC.c , Sd2Card.h from Pauls Teensy library
    Changed -pins_TEENSY35_36.h - SDSS to BUILTIN_SDCARD
    -Sd2Card.h - #include "src/HAL/HAL_TEENSY35_36/spi_pins.h"
    Commented out Sd2Card.h lines: -uint8_t const SPI_FULL_SPEED = 0;
    -uint8_t const SPI_FULL_SPEED = 1;
    -uint8_t const SPI_FULL_SPEED = 2;
    -uint8_t const SD_CHIP_SELECT_PIN = SS_PIN;
    -uint8_t const SPI_MOSI_PIN = MOSI_PIN;
    -uint8_t const SPI_MISO_PIN = MISO_PIN;
    -uint8_t const SPI_SCK_PIN = SCK_PIN;

    Hope I'm not forgeting anything (I tried multiple variants).
    I don't know if this is the right thing to do or if I broke any parts of the code. But with these modifications the code compiles and I can init the card and read contents of the card and see the filenames
    Update: it seems to work. The files are beeing read, in repetier you can upload files, mounting and dismounting works
    Last edited by Tady; 05-29-2017 at 05:49 PM.

  11. #111
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    20,674
    Looks like you figured it out.

  12. #112
    Good to know it works with so few modifications. I'll make sure it's more seamless with the next PR.

    Also, the Teensy HAL has been officially merged into the official repo!
    Now what's needed is hardware support to plug the Teensy board into something, along with people actually trying it out it and reporting any bugs.

  13. #113
    Yes something like RADDS maybe RTDS )
    I am currently building a reprap from scratch and Im planning to use teensy 3.6.
    My printer will be simple so I modified you firmware to support 128x64 LCD with K0108 driver. I had a few laying around so I didn't want to buy those with I2C support and I had no problems sacrificing 13 I/Os ))

  14. #114
    I found a problem with 3.6 an probably 3.5. The firmware does not ronun standalone. The LCD is lack and frozen at boot until you open a serial terminal. The same is even if you fo not connect the USB and you power from an external power supply. You always need to connect the USB and open the serial port. Then it runs normally

  15. #115
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    9,913
    Quote Originally Posted by Tady View Post
    I found a problem with 3.6 an probably 3.5. The firmware does not ronun standalone. The LCD is lack and frozen at boot until you open a serial terminal. The same is even if you fo not connect the USB and you power from an external power supply. You always need to connect the USB and open the serial port. Then it runs normally
    You didn't post code - this is likely a problem typical and simple within your code, likely one line in setup(), but it isn't shown - a forum search would show the answer - seeing the code the forum could confirm it and give corrective advice. A simple fix really - but the Teensy shouldn't be the first part to blame - and the forum rule is there for a great reason.

  16. #116
    Not to be rude but this code is very big (15+ .h files). The code is on github that was posted by GhostPrototype. So posting code on the forum is rather hard

  17. #117
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    9,913
    Quote Originally Posted by Tady View Post
    Not to be rude but this code is very big (15+ .h files). The code is on github that was posted by GhostPrototype. So posting code on the forum is rather hard
    ... it would seem less rude seeing signs of reading and some attempt to post . . .

    Quote Originally Posted by defragster View Post
    . . . likely one line in setup(), but it isn't shown - a forum search would show the answer ...

  18. #118
    https://github.com/MarlinFirmware/Ma...ain.cpp#L11059

    There's a USB while loop in setup(), try changing that to delay(1000); and see if it helps.

  19. #119
    Found it! Thbk you!

  20. #120
    Senior Member
    Join Date
    Dec 2016
    Location
    Detroit, Michigan, USA
    Posts
    102
    I am adding a comment here as I have a delta 3D printer that would benefit greatly from a more powerful processor than the 2580. I have a dozen or so 3.6, another dozen 3.5, and countless LC and 3.2 Teensy (Teensies?) here. I cloned Paul's repo from 4 years ago, but I think I need to search this topic for a better version.

    At any rate, I am interested in adding to this and using the power of the Teensy to handle these kinematic calculations.

  21. #121
    Quote Originally Posted by Detroit_Aristo View Post
    I have a dozen or so 3.6, another dozen 3.5, and countless LC and 3.2 Teensy
    Man this must have been expensive I managed to get Marlin working with T3.6 and built in SD card...

  22. #122
    Upstream Marlin v2.0 bugfix branch.

  23. #123
    Senior Member
    Join Date
    Dec 2016
    Location
    Detroit, Michigan, USA
    Posts
    102
    Quote Originally Posted by Tady View Post
    Man this must have been expensive I managed to get Marlin working with T3.6 and built in SD card...
    I have a small addiction problem with Paul's products. Well, maybe not small.

    Once I get the wireless and low power modes out, I'll be using them for much, much more!

  24. #124
    I love teensys also) but I buy them when needed)))

  25. #125
    Senior Member
    Join Date
    Dec 2016
    Location
    Detroit, Michigan, USA
    Posts
    102
    Quote Originally Posted by Tady View Post
    I love teensys also) but I buy them when needed)))
    Any time I am at Micro Center, I pick a few up.

    I also seem to like to order them late at night when I think I need 2 or 3 more for some random project that seems like a great idea at 2am.

    They are fantastic though and I simply love working with them. Haven't melted one yet either!

Posting Permissions

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