Search results

  1. P

    Software Reset Teensy without Re-enumerating USB serial?

    I would like to be able to perform a software reset of a Teensy 4.1 while leaving the USB serial connected to an application on my host machine. I have tried setting SCB_AIRCR = 0x05FA0004; and using a watchdog, but both seem to power cycle the Teensy causing my host machine to reassign a new...
  2. P

    Need advice on PCB manufacturers

    Is it possible to use JLCPCB for DIY Teensy 4.0 and 4.1 projects using the bootloader chip? I would like to make a custom Teensy board that includes the RJ45 Ethernet connector already assembled. I need several hundred boards and I really prefer not to have to do any hand soldering. Would I...
  3. P

    Unable to Specify Upload Port for Teensy Loader Using PlatformIO

    Interesting, thank you for the wonderful explanation and all of your great work. This is my first time using PlatformIO, so I do not know much about it yet either. I just wanted a way to compile and link some Arduino code and its dependencies from a command line and upload it to many identical...
  4. P

    Unable to Specify Upload Port for Teensy Loader Using PlatformIO

    Setting the baud rate to 134 of each port before uploading seems to work. Like you suggested I used the stty command: stty -F /dev/ttyACM1 134 It is difficult to tell if it is working properly since I do not see any output from the teensy loader about which port it is using. I cannot tell from...
  5. P

    Unable to Specify Upload Port for Teensy Loader Using PlatformIO

    Hi. I am attempting to upload firmware to multiple Teensy 4.0 boards, one by one from the command line using PlatformIO. I have 8 Teensy 4.0 boards connected to my Linux desktop with ports /dev/ttyACM0 - /dev/ttyACM7. When I run the command: pio run -e teensy40 --target upload --upload-port...
  6. P

    Differentiate Teensy 4.1 from 4.0 in Preprocessor?

    Perfect, I was hoping it was that easy. Oh I see, ARDUINO_TEENSY40 is defined in the Makefile, not in boards.txt. I cannot find where ARDUINO_TEENSY41 is defined, but it works so thank you!
  7. P

    Differentiate Teensy 4.1 from 4.0 in Preprocessor?

    I notice that the bootloader is able to tell the difference between code compiled for the Teensy 4.1 and the 4.0. Is there a similar trick that could tell the preprocessor which board has been configured for the compiler? The preprocessor can tell if it is a 4.x board by checking to see if...
  8. P

    Arduino Events

    I have found Rich Hickey's "CALLBACKS IN C++ USING TEMPLATE FUNCTORS" to be extremely useful for this. http://www.tutok.sk/fastgl/callback.html I packaged his code as an Arduino library: https://github.com/janelia-arduino/Functor
  9. P

    3.5 Boot Lockup

    I enabled the watchdog in startup_enable_hook and that does not cause the Teensy to reset when it has locked up during the power up sequence. Perhaps it is the MKL02Z32VFG4 chip that needs to be reset and not the main processor. Is there any way to reset that chip without using the hardware...
  10. P

    3.5 Boot Lockup

    So you think it is definitely the processor that is locking up and not an issue with some other component on the Teensy board? Do you have a part number for an example DC-DC converter with a POWER_GOOD signal that I can look at? Unfortunately I am also seeing the same issue with the Teensy 3.2...
  11. P

    3.5 Boot Lockup

    I also have a problem with a Teensy 3.5 locking up and it is somehow related to the electrical power up sequence. I cut the trace on the 3.5 and use diodes so that I can use both USB power and an external power source. This works fine on most all of my boards, but I have one set of boards that...
  12. P

    Functor Callbacks will not Compile for Teensy 3

    Yes that makes sense, thank you so much!!
  13. P

    Functor Callbacks will not Compile for Teensy 3

    I have recently been using Richard Hickey's template functors to implement callbacks in my Arduino C++ code. Richard Hickey describes them in detail here: http://www.tutok.sk/fastgl/callback.html The syntax is a bit bizarre at first, but they are far more powerful than simple function...
Back
Top