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.15 seconds.

  1. 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...
  2. 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.
  3. Replies
    11
    Views
    220

    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...
  4. 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...
  5. 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...
  6. 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...
  7. 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...
  8. 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...
  9. 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...
  10. 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...
  11. 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...
  12. 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...
  13. 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...
  14. 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
  15. Replies
    11
    Views
    235

    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...
  16. Replies
    1
    Views
    104

    Opps, fixed. ...

    Opps, fixed.

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

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


    //...
  17. 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...
  18. 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...
  19. 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...
  20. Replies
    11
    Views
    235

    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...
  21. 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/
    ...
  22. 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...
  23. Replies
    103
    Views
    4,814

    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...
  24. 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. ...
  25. Maybe this page can help? ...

    Maybe this page can help?

    https://www.pjrc.com/teensy/td_code_security.html
  26. Replies
    2
    Views
    156

    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...
  27. 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...
  28. Replies
    103
    Views
    4,814

    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...
  29. Replies
    19
    Views
    1,262

    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...
  30. Replies
    19
    Views
    1,262

    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....
  31. Replies
    19
    Views
    1,262

    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...
  32. Replies
    103
    Views
    4,814

    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.
  33. 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.
  34. Should work.

    Should work.
  35. Replies
    39
    Views
    2,261

    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
  36. 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...
  37. 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>...
  38. 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
  39. Ok, here is a fix for both bugs using FastLED...

    Ok, here is a fix for both bugs using FastLED 3.004.000
  40. 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....
  41. 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.
  42. Yup, it's a bug in FastLED. If you're using...

    Yup, it's a bug in FastLED.

    If you're using version 3.003.003 (which ships with Teensyduino) here is a fix.
  43. I was able to reproduce the problem. 26158 ...

    I was able to reproduce the problem.

    26158

    Looks like a bug. Teensy LC, 3.2, 3.5, 3.6 work, but Teensy 4.0, 4.1 give bright white no matter what data is used.

    I will investigate later today.
  44. Maybe some Serial.print() data got lost?

    Maybe some Serial.print() data got lost?
  45. By far the most common problem is charge-only...

    By far the most common problem is charge-only cables. They look like regular USB cables, but inside are only 2 wires for power, no wires at all for data. Before you spend a lot of work on the PC...
  46. Replies
    3
    Views
    201

    How about 2 diagrams? You can find one similar...

    How about 2 diagrams?

    You can find one similar to MarkT's suggestion on this audio library design tool page. Look at the right side documentation column and scroll down to Hardware.
    ...
  47. Also, on Teensy 4.x endpoint #1 is reserved, so...

    Also, on Teensy 4.x endpoint #1 is reserved, so you shouldn't use it for SEREMU_TX_ENDPOINT. Recommend changing that to endpoint 2. It's fine to both transmit and receive on the same endpoint...
  48. Try changing NUM_INTERFACE to 4, since you have 4...

    Try changing NUM_INTERFACE to 4, since you have 4 interfaces. Also, try numbering the interfaces 0, 1, 2, 3 rather than 1, 2, 3, 4.

    Does that make any difference?
  49. Replies
    19
    Views
    396

    Indeed Defragster is correct. Use SD.sdfs to...

    Indeed Defragster is correct. Use SD.sdfs to gain access to any underlying SdFat. I created that SdFat_Usage example to document how.




    The message you quoted tries to explain the rationale....
  50. Replies
    19
    Views
    396

    Unfortunately these infrequent but long card...

    Unfortunately these infrequent but long card latency times are the reality of modern SD cards. They're unpredictable. The only thing you can do is allocate a large enough buffer in RAM to store the...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4