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 39 minute(s) ago.

  1. 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...
  2. 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...
  3. 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...
  4. 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...
  5. 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...
  6. 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...
  7. 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...
  8. 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...
  9. 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...
  10. 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...
  11. 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
  12. Replies
    11
    Views
    232

    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...
  13. 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.


    //...
  14. 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...
  15. 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...
  16. 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...
  17. Replies
    11
    Views
    232

    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...
  18. 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/
    ...
  19. 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...
  20. Replies
    103
    Views
    4,772

    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...
  21. 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. ...
  22. Maybe this page can help? ...

    Maybe this page can help?

    https://www.pjrc.com/teensy/td_code_security.html
  23. Replies
    2
    Views
    154

    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...
  24. 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...
  25. Replies
    103
    Views
    4,772

    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...
  26. Replies
    19
    Views
    1,261

    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...
  27. Replies
    19
    Views
    1,261

    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....
  28. Replies
    19
    Views
    1,261

    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...
  29. Replies
    103
    Views
    4,772

    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.
  30. 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.
  31. Should work.

    Should work.
  32. Replies
    39
    Views
    2,206

    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
  33. 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...
  34. 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>...
  35. 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
  36. Ok, here is a fix for both bugs using FastLED...

    Ok, here is a fix for both bugs using FastLED 3.004.000
  37. 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....
  38. 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.
  39. 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.
  40. 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.
  41. Maybe some Serial.print() data got lost?

    Maybe some Serial.print() data got lost?
  42. 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...
  43. Replies
    3
    Views
    195

    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.
    ...
  44. 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...
  45. 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?
  46. Replies
    19
    Views
    387

    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....
  47. Replies
    19
    Views
    387

    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...
  48. Yeah, I'm pretty sure there's a bug or limitation...

    Yeah, I'm pretty sure there's a bug or limitation in the software for use of these very old pre-SDHC cards in the SDIO socket. I have a few here too which don't work. But they all work fine by SPI....
  49. Me too. Hoping you or Mike might look at this......

    Me too. Hoping you or Mike might look at this...

    Is just calling sdfs.format(&pr) is enough? I'm happy to remove all that extra code if it's not needed. (I mostly based it from...
  50. Ok, here's option #5. I added a restart()...

    Ok, here's option #5.

    I added a restart() function to SdFat:

    https://github.com/PaulStoffregen/SdFat/commit/f034ace5eca1e1afa17a7a85977de36b04e160fc

    Then in the SD wrapper, I removed storage...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4