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

Search:

Type: Posts; User: marcmerlin

Search: Search took 0.00 seconds.

  1. Replies
    49
    Views
    13,782

    Hi Paul, I generally get what you're saying, but...

    Hi Paul, I generally get what you're saying, but the naive person in me is still wondering what it would cost to put some schottky diodes in front of each IO pin to act as voltage sinks if you exceed...
  2. Replies
    49
    Views
    13,782

    True that. My first mistake was using an...

    True that.
    My first mistake was using an expensive $90+ shipped fancy teensy 3.6 that was difficult to swap/replace, and in an application where I didn't even need it because 3.5 had just as much...
  3. Replies
    49
    Views
    13,782

    No offense to adafruit, but they are far from the...

    No offense to adafruit, but they are far from the cheapest source of ESP32s. If you look online, you'll find some in the $3.xx range.

    ESP8266 is supposed to resist to 5V (although not in spec)...
  4. Replies
    49
    Views
    13,782

    Given that an ESP32 can be had for less than $5,...

    Given that an ESP32 can be had for less than $5, is more capable for some things (although less capable for some others too), it's indeed disappointing to lose a $30 teensy to a single VUSB...
  5. Replies
    49
    Views
    13,782

    Thanks for clearing that up for me, I indeed read...

    Thanks for clearing that up for me, I indeed read outdated pages that gave the wrong RAM amount.
  6. Replies
    49
    Views
    13,782

    Sorry for getting off topic on the ESP32. It's...

    Sorry for getting off topic on the ESP32. It's actually the ESP8266 that is 5V tolerant despite its datasheet saying 3.3V max.
    The ESP32 can take 5V but only with a resistor to limit the current....
  7. Replies
    49
    Views
    13,782

    "and it turns out they both have the same 256KB...

    "and it turns out they both have the same 256KB of RAM."
    Just to be clear on that tangent: I've always read that teensy 3.5 has 192KB or RAM while 3.6 has 256KB.
    I have a 320x240 24bpp framebuffer,...
  8. Replies
    49
    Views
    13,782

    thanks both for your answers. Yes, I was aware...

    thanks both for your answers.
    Yes, I was aware that 5V was only there long enough to be stepped down to 3.3V, it's just easy-ish to mistakenly have it touch a pin that's close, and fry the whole...
  9. Replies
    49
    Views
    13,782

    As for Paul's comment that level shifters are...

    As for Paul's comment that level shifters are expensive and slow. Sure, I understand that, but 5v tolerance, is not level shifting, it's just not having the expensive chip destroy all of itself just...
  10. Not, really, it had been stale for over a year,...

    Not, really, it had been stale for over a year, and I mistakenly thought at the time that FastLED had something to do with the ttyACM serial port on teensy working so poorly (for me at least).
    Since...
  11. Paul, is there is a 30 second timeout anywhere?...

    Paul, is there is a 30 second timeout anywhere? Every time I strace this, I see a 30 second block
    I used this:
    sudo strace -e trace=file -tt -f -p 25658

    Before:


    [pid 25709] 10:17:33.669150...
  12. Teensy serial debugging, am I doing this wrong?

    Ok, I've had so many issues with serial debugging on teensy chips (3.1/2 or 3.5/6), that I must be doing something wrong?

    My setup code normally looks like this


    #ifdef TEENSYDUINO
    ...
  13. Replies
    49
    Views
    13,782

    Thanks. Just to be clear 1) push button 2) plug...

    Thanks. Just to be clear
    1) push button
    2) plug USB cable into computer/teensy
    3) count 15 seconds
    4) release button.
    If so, I got nothing visible from that.

    I also tried
    1) plug USB
    2)...
  14. Replies
    49
    Views
    13,782

    Ok, so I managed to mistakenly connect VUSB on a...

    Ok, so I managed to mistakenly connect VUSB on a teensy 3.6 to an IO pin on the same chip.
    Since then, it sure doesn't work much anymore.
    If I plug in USB, I still see
    usb 1-2: new full-speed USB...
  15. Sadly, still a problem with...

    Sadly, still a problem with arduino-1.8.9-teensyduino-1.46
    I get a 30-ish second delay every time I compile and have the serial console opened.
    Am I the only one seeing this?

    ...
  16. Replies
    74
    Views
    37,007

    Hi, one question I didn't find a very good answer...

    Hi, one question I didn't find a very good answer for.
    I had a look at https://github.com/sumotoy/SSD_13XX which has a benchmark table.
    It says beta 2 does a screenfill in 406us.
    Does it really...
  17. I don't, but typically I run strace -s 256 -f -p...

    I don't, but typically I run
    strace -s 256 -f -p <pid>
    or
    strace -s 256 -f program
    If I only want fileio, I add -etrace=file
  18. BUG: 1.8.8-teensyduino-1.45 compiler bug: insn does not satisfy its constraints

    Howdy,

    Fastest + Pure Code works
    Fastest with LTO works
    Fastest + Pure Code with LTO does not work

    I'm not looking for a fix, teenyduino does warn that those compile options can bring bugs,...
  19. BUG stale lock: Unable find Teensy Loader. Is the Teensy Loader application running?

    On linux, arduino-1.8.8-teensyduino-1.45, my teensy was working until today when I kept getting
    Opening Teensy Loader...
    Unable find Teensy Loader. (p) Is the Teensy Loader application running?
    ...
  20. Replies
    45
    Views
    13,770

    I tested beta3 as you requested (over 1.41), and...

    I tested beta3 as you requested (over 1.41), and it didn't work at all for me, arduino IDE won't even start. Detail here:...
  21. So, I just tried 1.42 beta and it's actually...

    So, I just tried 1.42 beta and it's actually worse, the arduino IDE won't even start.
    My kernel is 4.15.6, which is likely newer than yours and it seems that your code loops around
    Going back to...
  22. Thanks for the reply. I have debian/testing. ...

    Thanks for the reply. I have debian/testing. Will try your beta (I was using the latest release version) and report back.
    Marc
  23. Hi Paul, sorry that it took a long time for me to...

    Hi Paul, sorry that it took a long time for me to get back to you on this.
    The more I looked into it, the more it looked like an obscure library or compiler bug that I just didn't have a reasonable...
  24. So, I did more testing, this problem seems to...

    So, I did more testing, this problem seems to happen even if stop the FastLED.show() calls.
    The only fixes are either
    1) close the serial terminal before I click 'compile/upload'
    2) strace the...
  25. Yeah Paul, trimming obviously helps, sorry about...

    Yeah Paul, trimming obviously helps, sorry about that.
    While doing more debugging, I included FastLED demo code within my own code to see if that demo would work and then my code would work or not....
  26. Replies
    64
    Views
    24,849

    Thanks KurtE. Yes, I agree that something seems...

    Thanks KurtE. Yes, I agree that something seems to be toggled in hardware, and seems to survive a reprogram but not a power cycle. That said, I've gotten that trick to only work twice on teensy3.6,...
  27. As more debugging, I've confirmed that I have the...

    As more debugging, I've confirmed that I have the same problem with teensy 3.6. Fastled.show() hangs for a very long time, but actually succeeds eventually. If I let it run long enough, I can get my...
  28. Replies
    64
    Views
    24,849

    So, I've just verified the same behaviour with...

    So, I've just verified the same behaviour with teensy 3.6, my code hangs on the first fastled.show() and if I send code that uses adafruit.neopixel.show() instead, that code works, and then allows my...
  29. Replies
    64
    Views
    24,849

    So, we're about another year later now. I have...

    So, we're about another year later now. I have this vexing FastLED problem to debug ...
  30. I've posted more details on...

    I've posted more details on https://plus.google.com/+MarcMERLIN/posts/7ib5usMxzTY since I was able to reproduce on some other MCUs, while some on others like ESP8266, it "just works". I so wish I had...
  31. Thanks pictographer. I tried with fastled...

    Thanks pictographer. I tried with fastled release, fastled from teensyduino, and fastled TOT git.
    Same problem with all 3, sadly.
  32. As further debug, I removed all the...

    As further debug, I removed all the Serial.printxx commands from my code and the same problem happens.
    I then let it run for 4H while I was away, and it was able to run the show() command 16 times,...
  33. Another vexing problem with FastLED (lastest version): code hangs on show()

    This one makes no sense:
    1) my code only works if I upload other code before that also talks to my neomatrix, let's say...
  34. Thanks for the answer Paul. Given where we are...

    Thanks for the answer Paul.
    Given where we are today, would it make sense to only include libraries that are different/better in teensyduino at the time it's released? Or is that already the case?
  35. Just for testing, I used another board I had...

    Just for testing, I used another board I had lying around, a teensy 3.2 and I have the same problem. I'm guessing FastLED puts the board in a state that serial queries to it hang or upset the IDE in...
  36. problems with arduino-1.8.5 + teensyduino-1.41 and serial on linux and FastLED

    I had this problem with an older version of the arduino lib, and teensyduino. I just upgraded both and it's still there.
    platform: linux debian kernel 4.15, teensy 3.1

    My code is here:...
  37. Why install libraries along with teensy support?

    Howdy,

    https://www.pjrc.com/teensy/td_download.html says
    " Teensyduino can automatically install many libraries that are tested and verified to work with Teensy. Usually it's best to allow the...
  38. the page was deleted, but you can find an old...

    the page was deleted, but you can find an old copy here:
    https://web.archive.org/web/20141110124023/http://www.themeu.net/downloading-animated-gifs-onto-meu/
    which mostly points to this video...
  39. Thank you for the tip. Once read, can I reset the...

    Thank you for the tip. Once read, can I reset the counter?

    Thanks
    Marc
  40. How to count time when interrupts are disabled?

    I have code like this
    before = millis()
    leds.show() (using adafruit neopixel or FastLED libraries)
    Serial.println(millis() - before)

    Because both libraries when they talk to neopixels, have to...
Results 1 to 40 of 40