Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: brianmichalk

Search: Search took 0.00 seconds.

  1. Replies
    0
    Views
    60

    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...
  2. SOLVED: I was clicking on the upload button at...

    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,...
  3. 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...
  4. Replies
    3
    Views
    83

    It looks like the udev rules fixed this 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.
  5. Replies
    3
    Views
    83

    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() {
    ...
  6. Replies
    2
    Views
    132

    Thank you. I installed this, and the integration...

    Thank you. I installed this, and the integration looks like it will work.
  7. Replies
    2
    Views
    132

    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...
  8. Replies
    5
    Views
    578

    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...
  9. Replies
    0
    Views
    125

    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...
  10. Replies
    5
    Views
    445

    I understand that the watchdog is typically reset...

    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.
  11. Replies
    5
    Views
    445

    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() {
    ...
  12. Replies
    9
    Views
    491

    I am still having problems with locking up. My...

    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...
  13. Replies
    5
    Views
    542

    Thanks for the tip. I got frustrated, and moved...

    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...
  14. Replies
    5
    Views
    542

    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,...
  15. Replies
    9
    Views
    491

    I've come a long way to solving the problem. I...

    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....
  16. Replies
    9
    Views
    491

    So, where would I find the equivalent...

    So, where would I find the equivalent mk20dx256.c? This doesn't exist in my install.
  17. Replies
    9
    Views
    491

    About four months ago I went through a bout of...

    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...
  18. Replies
    9
    Views
    491

    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...
  19. Replies
    6
    Views
    276

    Thanks. I keep forgetting about this. Too many...

    Thanks. I keep forgetting about this. Too many languages at one time.
  20. Replies
    6
    Views
    276

    True that.

    True that.
  21. Replies
    6
    Views
    276

    Doh! It's so easy. Okay, this does solve my...

    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?
  22. Replies
    6
    Views
    276

    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...
  23. Replies
    4
    Views
    334

    Thanks for the reply. This is for Teensy 3.2. ...

    Thanks for the reply. This is for Teensy 3.2. Pin number (Teensy) 20.
  24. Replies
    4
    Views
    334

    Interesting. I see that: Interrupt...

    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...
  25. Replies
    4
    Views
    334

    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...
  26. I'm looking for the PDB input trigger pin for...

    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...
  27. Thanks. I'll give it another try. It's been...

    Thanks. I'll give it another try. It's been about a year since I tried the Sloeber solution.
  28. 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...
  29. Replies
    2
    Views
    1,264

    Thanks, but I wasn't planning on using an actual...

    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...
  30. Replies
    2
    Views
    1,264

    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...
  31. Replies
    29
    Views
    19,235

    I tried this code, and it is not working for...

    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...
  32. Replies
    9
    Views
    2,694

    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...
Results 1 to 32 of 32