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.

  1. Replies
    9
    Views
    973

    I've added a simple example. Hopefully no big...

    I've added a simple example. Hopefully no big surprises... but also hopefully useful to document the proper include / define / include sequence and LEDS.addLeds<>() syntax needed for FastLED to make...
  2. Replies
    9
    Views
    973

    I've brought this fix into Teensyduino's copy of...

    I've brought this fix into Teensyduino's copy of FastLED. It'll be in 1.56-beta3 and all future versions.

    Maybe OctoWS2811 should have an example of using FastLED?
  3. Oh how nice that would be indeed. Sadly, we...

    Oh how nice that would be indeed.

    Sadly, we have to just work with the way NXP wired the clock circuitry inside the chip.
  4. I'm planning to merge this (and 3 other audio...

    I'm planning to merge this (and 3 other audio library efforts) for 1.56-beta3 or 1.56-beta4 later this month, or perhaps slipping into early November depending on how filesystem stuff goes.

    I've...
  5. Also keep in mind analogWrite can only generate...

    Also keep in mind analogWrite can only generate frequencies which are an integer division of the peripheral clock. As you use it to generate higher frequencies, remember it will round to the nearest...
  6. PRECLK_CLK_SEL also changes the time base for...

    PRECLK_CLK_SEL also changes the time base for IntervalTimer. You should be able to see the lines are now printing much faster than once per second. Of course you're seeing a smaller number if you...
  7. Maybe GPT1 is running from the 24 MHz clock? ...

    Maybe GPT1 is running from the 24 MHz clock? Look for the PRECLK_CLK_SEL bit in CCM_CSCMR1, which is documented on page 1059 in the reference manual.

    Best to change that bit when none of the GPT...
  8. Yes. The pins each have a 8 channel mux which...

    Yes. The pins each have a 8 channel mux which allows 1 of 8 things to control the pin.

    While there are many ways you might do this, the simplest would be to use Serial1.begin(baud), which causes...
  9. Replies
    2
    Views
    136

    Sadly, pretty sure that's not Teensy. Looks...

    Sadly, pretty sure that's not Teensy.

    Looks like a clone of Sparkfun Pro Micro, maybe this?

    https://www.amazon.com/OSOYOO-ATmega32U4-arduino-Leonardo-ATmega328/dp/B012FOV17O?th=1
  10. No, or at least not anytime reasonably soon. ...

    No, or at least not anytime reasonably soon. Those sorts of edited videos take an incredible amount of time. I'm far behind on several important software developments, and on written docs (which...
  11. Replies
    6
    Views
    264

    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...
  12. Replies
    30
    Views
    1,414

    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...
  13. 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...
  14. 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.
  15. Replies
    23
    Views
    260

    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...
  16. 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...
  17. Replies
    23
    Views
    260

    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...
  18. Replies
    24
    Views
    406

    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...
  19. Replies
    24
    Views
    406

    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.
  20. 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...
  21. 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.
  22. Replies
    24
    Views
    406

    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...
  23. 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...
  24. 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...
  25. 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...
  26. 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...
  27. 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...
  28. 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...
  29. 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...
  30. 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...
  31. 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...
  32. 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...
  33. 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
  34. Replies
    11
    Views
    263

    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...
  35. Replies
    1
    Views
    123

    Opps, fixed. ...

    Opps, fixed.

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

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


    //...
  36. 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...
  37. 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...
  38. 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...
  39. Replies
    11
    Views
    263

    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...
  40. 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/
    ...
  41. 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...
  42. Replies
    104
    Views
    4,930

    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...
  43. 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. ...
  44. Maybe this page can help? ...

    Maybe this page can help?

    https://www.pjrc.com/teensy/td_code_security.html
  45. Replies
    2
    Views
    168

    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...
  46. 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...
  47. Replies
    104
    Views
    4,930

    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...
  48. Replies
    19
    Views
    1,280

    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...
  49. Replies
    19
    Views
    1,280

    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....
  50. Replies
    19
    Views
    1,280

    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...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4