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

Search:

Type: Posts; User: PaulStoffregen

Page 1 of 10 1 2 3 4

Search: Search took 0.14 seconds; generated 38 minute(s) ago.

  1. Replies
    6
    Views
    215

    Agree, using FreqMeasureMulti is by far the best...

    Agree, using FreqMeasureMulti is by far the best way, as it uses timer hardware captures a timestamp at the moment the pulse happens, regardless of interrupt latency.

    But if you do end up with a...
  2. Replies
    24
    Views
    1,233

    I don't understand. FreqCount is still included...

    I don't understand. FreqCount is still included with the installer. Its 3 examples should still be in the Examples menu.

    Not sure what timing constraint you're talking about. On each Teensy...
  3. Early in the development of Teensy 4 (like in...

    Early in the development of Teensy 4 (like in 2018, before the first beta test boards) I had wanted to make the CPU speed easy to change at runtime. That's why I went to so much trouble to write the...
  4. Might be interesting to get a look at the actual...

    Might be interesting to get a look at the actual waveform this sensor creates, ideally using an oscilloscope, but even a logic analyzer which hides analog problems would be interesting.
  5. Replies
    23
    Views
    186

    Can you be more specific, so I can quickly...

    Can you be more specific, so I can quickly reproduce this problem without guesswork?

    Please try to imaging I fell behind by about 200 forum messages and have many other questions to answer. If...
  6. Errata ERR050101 applies only if an isochronous...

    Errata ERR050101 applies only if an isochronous IN endpoint is configured. Using Teensyduino, this only happens if Tools > USB Type is set to one of the options with Audio. None of USB Type choices...
  7. Replies
    23
    Views
    186

    I want to help, but I know know enough info to...

    I want to help, but I know know enough info to try recreating the problem here.

    I don't know what program you are compiling. Is it an example from one of the libraries? Or something you...
  8. Replies
    24
    Views
    397

    FWIW, getting pins 4 & 5 mixed up is by far the...

    FWIW, getting pins 4 & 5 mixed up is by far the most common serial MIDI output problem (for MIDI input, optocoupler issues reign supreme...)

    Seriously, it's so easy to get these swapped. Lots of...
  9. Replies
    24
    Views
    397

    No, it's not. All you need to do is swap the...

    No, it's not.

    All you need to do is swap the wires.
  10. Sounds like you didn't go with the advice to...

    Sounds like you didn't go with the advice to first slowly whittle down the many core library files, but instead just deleted everything. Well, something you deleted was essential. You can figure...
  11. Opps, sorry, my mistake. I typed PORTC_PCR11 but...

    Opps, sorry, my mistake. I typed PORTC_PCR11 but of course it really should be PORTC_PCR5. Wrote that whole thing quickly and didn't proofread.
  12. Replies
    24
    Views
    397

    Looks like the wires may be swapped. The green...

    Looks like the wires may be swapped.

    The green wire in your photo connects to 3.3V. That should go to pin 4 (positive), but it looks like it's wired to pin 5 (negative). Likewise for the orange...
  13. There are never any guarantees or promises...

    There are never any guarantees or promises regarding overclocking.

    In my personal experience, 1.008 GHz wasn't reliable with a moderately sized heatsink. It got very hot.

    All substantial...
  14. Serial.availableForWrite() should work on Teensy...

    Serial.availableForWrite() should work on Teensy 4.0. If you've found a circumstance where it is not reliable, please start a new thread (this very old thread is about Teensy 3.2) and post a...
  15. For a quick attempt to explain actual low-level...

    For a quick attempt to explain actual low-level programming....

    Consider turning on the LED on Teensy 3.2.

    First, look at the Teensy 3.2 schematic. The LED is connected to Arduino pin 13. If...
  16. Both of these assume build on top of libraries...

    Both of these assume build on top of libraries essentially the same as Arduino's APIs like Serial.print() and digitalWrite().

    "arm::m4" imagines come library has a C++ class or namespace called...
  17. If you try swapping out the toolchain Teensyduino...

    If you try swapping out the toolchain Teensyduino provides for any other "arm-none-eabi-gcc", consider the version. We use a fairly old version of arm-none-eabi-gcc. A lot of code probably breaks...
  18. You're definitely going in the wrong direction to...

    You're definitely going in the wrong direction to edit the Makefile so it uses a toolchain which compiles for Linux operating system.

    Use the correct toolchain, which is located in the...
  19. Yes, both ports have hardware which can run in...

    Yes, both ports have hardware which can run in either host or device mode. So is it "only" software and the physical parts on the PCB which make USB1 a device port and USB2 the host port.

    If you...
  20. Even if USBSER.SYS is missing, teensy_ports can...

    Even if USBSER.SYS is missing, teensy_ports can show when Windows sees the USB device and it will print "[no_device]" if USBSER.SYS doesn't load. Back at Teensyduino 1.42, a *lot* of work went into...
  21. Are you plugging the EXACT SAME CABLE into Mega...

    Are you plugging the EXACT SAME CABLE into Mega and Teensy?!


    Look, this whole thing might be as simple as a failed USB cable, which just happened to go bad with unlucky timing when you upgraded...
  22. teensy_ports.exe is able to show when Windows...

    teensy_ports.exe is able to show when Windows detects the Teensy base USB device but can't load drivers for its interfaces, similar to how Device Manager can show an unknown device with a yellow...
  23. Nothing in that debug stuff stands out. ...

    Nothing in that debug stuff stands out.

    Running teensy_ports.exe is supposed to look like this:

    26173
  24. Replies
    11
    Views
    257

    Two other tests you might try... Connect your...

    Two other tests you might try...

    Connect your oscilloscope to the 3.3V power and set either normal or single trigger (not auto) and adjust the trigger level to just slightly over 3.3V. If...
  25. Replies
    1
    Views
    121

    Opps, fixed. ...

    Opps, fixed.

    https://github.com/PaulStoffregen/cores/commit/6b5ba2decf526d14ae0ef04dc6a32e2edbdcc4e1

    Also added this comment to explain the typical way TCD registers are accessed.


    //...
  26. Also, in C:\Program Files (x86)\Arduino is an...

    Also, in C:\Program Files (x86)\Arduino is an alternate "arduino_debug" program which runs Arduino with a console window to show you any Java exceptions. Maybe try running that and see if it's...
  27. Can you run teensy_ports.exe in a command prompt...

    Can you run teensy_ports.exe in a command prompt window? Its default location is C:\Program Files (x86)\Arduino\hardware\tools.

    It should print a bunch of JSON stuff as you plug and unplug Teensy...
  28. Well, you did come to a forum about Teensy to ask...

    Well, you did come to a forum about Teensy to ask your security question!

    I'm pretty sure the reality of today's microcontroller market is parts you would consider "reasonably cheap" lack the...
  29. Replies
    11
    Views
    257

    Have you verified your DC-DC power supply...

    Have you verified your DC-DC power supply design's startup and shutdown behavior by watching the input and output voltages with an oscilloscope? And with the range of expected input sources (eg, if...
  30. Here are some links to people who've aspired to...

    Here are some links to people who've aspired to do basically the same thing, write every line of code from scratch.

    https://disconnected.systems/blog/bare-metal-c-on-the-teensy-3.1/
    ...
  31. First, the easy part, technical documentation. ...

    First, the easy part, technical documentation. On the Teensy 3.2 product page, scroll down to Technical Information. The reference manual has all the details about the on-chip peripherals. The...
  32. Replies
    104
    Views
    4,906

    Yes, I will work with it later this month. 3...

    Yes, I will work with it later this month.

    3 other major audio contributions are also pending. Will probably spend several days to do all 4 together.

    Please be patient. I need you to...
  33. Ok, I've read this lengthy message again, rather...

    Ok, I've read this lengthy message again, rather than just a quick skim.

    Teensy 3.x isn't a viable solution, since the code updating process needs to transmit the firmware unencrypted over USB. ...
  34. Maybe this page can help? ...

    Maybe this page can help?

    https://www.pjrc.com/teensy/td_code_security.html
  35. Replies
    2
    Views
    165

    If pin 11 (D6) is still working, and you don't...

    If pin 11 (D6) is still working, and you don't have the equipment for tiny surface mount soldering, maybe best to leave well enough alone. If you really need a LED, you can always just connect one...
  36. Yes, there is a reason. Endpoint 1 is reserved...

    Yes, there is a reason. Endpoint 1 is reserved for a future feature, which I'm not prepared to discuss at this time.




    Indeed, the everything option needs far too many endpoints to work on...
  37. Replies
    104
    Views
    4,906

    Normally I would not even look at source code...

    Normally I would not even look at source code using an incompatible open source license. Especially for features I plan to eventually implement, just viewing how it was done can influence future...
  38. Replies
    19
    Views
    1,277

    If the restore process won't recover, then yes, I...

    If the restore process won't recover, then yes, I would like to get those boards and try to investigate what went wrong.

    But before sending anything, first please try the restore again. 3...
  39. Replies
    19
    Views
    1,277

    Well that's very mysterious. The 15 sec restore...

    Well that's very mysterious. The 15 sec restore process is supposed to be able to recover even if the flash is loaded with bogus data.

    But you really do need to wait for the very long erase time....
  40. Replies
    19
    Views
    1,277

    It is supposed to return to normal with only...

    It is supposed to return to normal with only those 2 steps.

    But really, step 1.5 is the wait while the red LED is on bright and slow restore process wipes the entire flash memory. On MicroMod...
  41. Replies
    104
    Views
    4,906

    Looked at this for the first time today. I see...

    Looked at this for the first time today. I see the license is GPL3, not MIT.
  42. Oh, now I *really* want to see a photo! ...

    Oh, now I *really* want to see a photo!




    Very difficult to know without seeing the signal on an oscilloscope.
  43. Should work.

    Should work.
  44. Replies
    39
    Views
    2,304

    Sticky: Opps, sorry. Indeed I forgot to tag & release on...

    Opps, sorry. Indeed I forgot to tag & release on github.

    Added a tag at the last commit before 1.55 and created a release on github.

    https://github.com/PaulStoffregen/cores/releases/tag/1.55
  45. First check which Teensy you will use. Only...

    First check which Teensy you will use. Only Teensy 3.2, 3.5, 3.6 have the 1.2V reference.

    The same reference voltage applies to all ADC inputs. While you could in theory reconfigure the...
  46. Also, if you just want the LEDs to work, you...

    Also, if you just want the LEDs to work, you could also try the WS2812Serial library and FastLED driver.

    First, you need the includes like this (in this order):


    #include <WS2812Serial.h>...
  47. I submitted a pull request to FastLED. Hopefully...

    I submitted a pull request to FastLED. Hopefully they will merge it so this problem will be fixed for all future versions.

    https://github.com/FastLED/FastLED/pull/1306
  48. Ok, here is a fix for both bugs using FastLED...

    Ok, here is a fix for both bugs using FastLED 3.004.000
  49. Ugh, looks like there may be *another* bug which...

    Ugh, looks like there may be *another* bug which is limiting the output to only 3 LEDs. Looking into it now....
  50. If you're using the latest 3.004.000 version,...

    If you're using the latest 3.004.000 version, this will fix the bug.
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4