Search results

  1. B

    switching from Teensy 3.2 to Teensy 4.0/4.x

    What was your solution to the watchdog timer? Is there a watchdog library that supports all Teensy classes?
  2. B

    Teensy4.0 USB host pads as USB device?

    I have upgraded to the 4.0 due to the non-availability of the beloved 3.2. In doing so, I erroneously mapped to the USB pins on the back side, because I have a USB hub module and some cameras on my circuit board. So, I plug it in and discover it's USB host, not device. I looked at the T36 USB...
  3. B

    testing for math overflow

    I'm surprised to find no results on a search of this. I assume this is not standard C, but is there a way, perhaps an already defined macro that will test an overflow bit in the CPU and return whether or not an integer or float operation resulted in an overflow? Edit: This is for Teensy 3.2.
  4. B

    disable monitor in tycmd (platformio)

    SOLVED: I was clicking on the upload button at the bottom of the VSCode screen with platformio. This button has the upload and monitor targets built in. There's probably a way to modify this, but if you run platformio run -r upload Then all of the environments will be processed.
  5. B

    disable monitor in tycmd (platformio)

    I have three teensies that have identical code except for a #define identifier that configures each target board. I set this with a -D compiler option. I have platformio configured with multiple environments, and they all compile, but when tycmd uploads the firmware, it enters the miniterm...
  6. B

    T3.5 Serial Halting Problem

    It looks like the udev rules fixed this problem. I'm not sure when they changed, and a system update probably caused this problem. The udev rules from the install web page fixed this problem.
  7. B

    T3.5 Serial Halting Problem

    I've used the T3.2 for years, and this is a strange problem that should be beneath me, but I can't figure it out. Teensy 3.5. Arduino IDE 1.8.9 Teensy Loader 1.46 Code: void setup() { Serial.begin(57600); pinMode(LED_BUILTIN, OUTPUT); } void loop() { delay(1000); Serial.print("Hello...
  8. B

    Multiple T3.2 and Platformio

    Thank you. I installed this, and the integration looks like it will work.
  9. B

    Multiple T3.2 and Platformio

    Is there a way to select which Teensy to program in Platformio? I am doing remote (450 miles away) development, and two Teensies are connected to the machine. I can ask someone to pull a USB cable, but not at a rate that would be annoying.
  10. B

    Debugger Depression

    This is not a rant, and I hope that Paul will consider one developer's perspective. I've bought maybe 75 Teensy3.2's from Oshpark, and use them to control my machines. I like the Teensy because the voltage tolerance, footprint flexibility, and compatibility with the Arduino libraries...
  11. B

    Teensy Complete Lockup

    I've been posting here over the last few months about issues I've been having with my Teensy brass case feeder controller. I came to the conclusion that RF noise is stopping the Teensy3.2. One of my customers switched to different brass primers and began having problems, and I have not been...
  12. B

    Hitting Watchdog Too Often

    I understand that the watchdog is typically reset just before the timer expires. I am more interested in why it doesn't work if it is reset too often.
  13. B

    Hitting Watchdog Too Often

    Why does hitting the watchdog too often not reset the watchdog timer? The following code causes a reset on the Teensy 3.2. #include <Adafruit_SleepyDog.h> void setup() { Watchdog.enable(5000); delay(1000); Serial.begin(115200); Serial.setTimeout(10); delay(100)...
  14. B

    Teensy 3.2 lockup issue

    I am still having problems with locking up. My DMA canary is showing that it's locking up at analogRead(). But I have another problem that is the sleepyDog is not resetting the Teensy. I can run my machine for hours and not have any problems. My customer can lock up two of his machines...
  15. B

    PlatformIO project creation problems

    Thanks for the tip. I got frustrated, and moved on with importing my project. After a while, it seemed to figure things out. I prefer Eclipse, but VSCode/platformio is better than the Arduino IDE and Sloeber. Now if someone could figure out a good debugger.
  16. B

    PlatformIO project creation problems

    I'm having difficulty with Platformio picking up my libraries and other problems with IntelliSense. I figured I'd start a fresh project and copy in files one by one. But in one of my header files, I get an error near the top. One error was a comment, and another was a #define. #include...
  17. B

    Teensy 3.2 lockup issue

    I've come a long way to solving the problem. I inserted more debug statements, and the program became less and less reliable. What I figured out is that I was bit by the String() concatenation bug. I removed all catenations and the program got a lot better. I've removed my DMAMEM variables...
  18. B

    Teensy 3.2 lockup issue

    So, where would I find the equivalent mk20dx256.c? This doesn't exist in my install.
  19. B

    Teensy 3.2 lockup issue

    About four months ago I went through a bout of tracking down the source on a different CPU board that also uses a Teensy. Even though that other board was four feet away compared to the inches on this design, the other board had to accurately count teeth on a gear. With my scope, I was seeing...
  20. B

    Teensy 3.2 lockup issue

    My Teensy 3.2, locks up randomly, and I've been trying for months to find this problem with little luck. It's a large program with multiple hardware devices, most implementing interrupt routines, so removing modules one at a time for testing is very difficult because other modules don't work...
  21. B

    Defining Encoder() pins at runtime

    Thanks. I keep forgetting about this. Too many languages at one time.
  22. B

    Defining Encoder() pins at runtime

    Doh! It's so easy. Okay, this does solve my particular problem. Thanks. For argument's sake, what would your solution be if the encoder wires were on completely different pins?
  23. B

    Defining Encoder() pins at runtime

    Using quadrature Encoder library, v1.3, Teensy3.2. I thought I would be clever with a macro definition to get around the requirement of defining the encoder A/B pins at compile time. The problem is that a supplier swapped the encoder lines on a motor I'm using, so I added a solder pad that...
  24. B

    RF noise causing spurious interrupts

    Thanks for the reply. This is for Teensy 3.2. Pin number (Teensy) 20.
  25. B

    RF noise causing spurious interrupts

    Interesting. I see that: Interrupt set-pending bits. For SETPEND[m] in NVIC_ISPRn, allows interrupt 32n + m to be accessed. Is "n" the interrupt number? That define would seem to evaluate to E000E200, assuming one specified an interrupt in the range of 0-31. I'm obviously missing something.
  26. B

    RF noise causing spurious interrupts

    I want to know if there is a way to check an interrupt pending flag while in an interrupt. My circuit board is getting interrupts on a signal that's going to my board, and this has been verified by a practicing electrical engineer. They have tried several methods to clamp down on the noise, but...
  27. B

    Where are the chip configuration details (or the "Chip-specific" sub-chapters)?

    I'm looking for the PDB input trigger pin for external trigger, from: 3.8.1.1.2 PDB Input Trigger Connections Table 3-45. PDB Input Trigger Options This is for Teensy3.2. I am driving a motor PWM through analog write, and am also sensing motor current, which I'd like to synch with the PWM pin...
  28. B

    Eclipse Arduino Download Manager for Teensy

    Thanks. I'll give it another try. It's been about a year since I tried the Sloeber solution.
  29. B

    Eclipse Arduino Download Manager for Teensy

    Okay, so my last Teensy project used 12 classes, and I really don't want to use the Arduino IDE anymore. I've tried various approaches, Sloeber, Jante, but there seems to be some issue or another that is annoying enough to cause me to drop back to the Arduino toolchain. I'm starting a new...
  30. B

    Using ADC enableCompareRange

    Thanks, but I wasn't planning on using an actual voltage comparator, but a register compare. I hope I did not mis-understand. But still, if I clear the interrupt, will it immediately reenter if the conditions are the same? I suppose I'll find out soon enough when I get my changes in to test.
  31. B

    Using ADC enableCompareRange

    Teensy 3.2 I have a project where I've been using an ISR triggered when a DIO pin toggled state. This works well, but in the field, the optical sensor degrades over time and the digital sensor supplies a voltage that eventually does not pass through the required digital threshold. The proper...
  32. B

    How to change Teensy 3.0 PRODUCT_NAME ?

    I tried this code, and it is not working for Teensy 3.2. It appears that to get this to work, the struct in usb_names.h needs to have an explicit size defined. For example, if I change usb_names.h to struct usb_string_descriptor_struct { uint8_t bLength; uint8_t...
  33. B

    Scanner Discovery Problem

    I am running Eclipse Mars, and the Arduino V3 plugin. I can build a project for my Arduino. Next, I installed TeensyDuino 1.28. I created a new Arduino project, set the board to Teensy 3.2, and selected the default example sketch for Blink. The Problems tab is showing two scanner discovery...
Back
Top