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

  1. There are 2 copies of that file, one for Teensy...

    There are 2 copies of that file, one for Teensy 4.x, the other for Teensy 3.x. Maybe you edited the wrong file? (from these messages, I can't even tell which Teensy you're using...)

    The file for...
  2. 74HC4067 is good for input signals, but not so...

    74HC4067 is good for input signals, but not so good for outputs which drive LEDs. It only connects 1 at a time, and only with a series resistance that prevents driving a LED enough.

    Normally you...
  3. Replies
    11
    Views
    273

    Oh, ok, that's makes sense. Windows 7, 8, 10...

    Oh, ok, that's makes sense.

    Windows 7, 8, 10 all require drivers to be digitally signed. On Windows 7 & 8 we also have to install an INF to tell Windows to load its own USBSER.SYS driver (which...
  4. Replies
    12
    Views
    332

    Two issues with those chips are their cost and...

    Two issues with those chips are their cost and power consumption, not just of the codec chip but also the support circuitry needed to achieve those specs.

    The really tough part of that support...
  5. Smart move to make a registry backup. Please let...

    Smart move to make a registry backup. Please let me know if you ever learn any more about what might cause this strange delay. If there's something that can be seen in the registry, maybe I can put...
  6. You have 2 options. 1: Connect EN to 3.3V, so...

    You have 2 options.

    1: Connect EN to 3.3V, so the USB port gets power whenever 3.3V power is on.

    2: Connect EN to a digital I/O pin, so you can turn the USB power on/off under software control....
  7. Replies
    64
    Views
    1,137

    Indeed, seems likely we'll eventually have to...

    Indeed, seems likely we'll eventually have to make substantial changes to smalloc, or replace it with some other memory management scheme. For now (version 1.54) this is probably good enough. ...
  8. This is very likely an old or corrupted software...

    This is very likely an old or corrupted software install.

    Please download a fresh copy of Arduino 1.8.13 and Teensduino 1.53. Follow the install steps on this page:
    ...
  9. Looks like this was duplicated on github ...

    Looks like this was duplicated on github

    https://github.com/PaulStoffregen/USBHost_t36/issues/41
  10. Replies
    64
    Views
    1,137

    Maybe we should have a way to pad allocations to...

    Maybe we should have a way to pad allocations to 32-byte cache row boundaries?
  11. Replies
    11
    Views
    273

    Wow, I've never even heard of this DLL before. ...

    Wow, I've never even heard of this DLL before. But then I don't use Windows much.

    Any idea what triggered these sorts of mysterious problems? Any advice or things learned which might help us to...
  12. I added 1.2 seconds to the time teensy_reboot...

    I added 1.2 seconds to the time teensy_reboot waits before concluding Teensy didn't respond. I still have no idea why there was a 5 second delay with Windows using this particular Teensy. But if...
  13. Shorting the power seems like a pretty bad way to...

    Shorting the power seems like a pretty bad way to go. Maybe it can be made to work, but if your end goal is reliability, my gut feeling is this strays pretty far in the wrong direction!

    Before...
  14. Replies
    2
    Views
    70

    Usually a PC's USB port can provide 500 mA of...

    Usually a PC's USB port can provide 500 mA of current.

    But unpowered hubs give only 100 mA, and some very cheaply made ones struggle to do even that.

    When running at higher currents, very thin...
  15. Replies
    64
    Views
    1,137

    Regular newlib malloc() already puts its heap on...

    Regular newlib malloc() already puts its heap on all the unused DMAMEM (the other 512K which isn't ITCM / DTCM).

    Yeah, you could create a static array in DMAMEM and use it with smalloc, but what's...
  16. Fixed on Teensy 3.x too. ...

    Fixed on Teensy 3.x too.

    https://github.com/PaulStoffregen/cores/commit/2cd86801aed85e1b2f700c8c3f444313bd95b8cd




    Their code has changed quite a lot. Their invalidate() function does set...
  17. Replies
    64
    Views
    1,137

    Yes, planning to switch to composite device for...

    Yes, planning to switch to composite device for all USB serial.

    The CDC class at device level was needed to support Windows XP-SP2, Windows Vista (no service packs) and Macintosh OS-X 10.5 & 10.6.
  18. Replies
    64
    Views
    1,137

    Looks like the stats about free space are a...

    Looks like the stats about free space are a little optimistic.

    Here's a quick test which queries the free space, then tries to allocate it all at once. Fails. :(



    #include "smalloc.h"
    ...
  19. Replies
    64
    Views
    1,137

    I'm struggling to understand what's wrong here. ...

    I'm struggling to understand what's wrong here. It kinda sounds like Windows decided to assign COM3 and the port is indeed working as COM3, but TyCommander is still believing it's COM4. Is that...
  20. Replies
    64
    Views
    1,137

    Good question. I didn't see anything in the...

    Good question. I didn't see anything in the smalloc code to query the largest allocation expected to succeed. Unless it has some functionality I missed, getting this capability might involve quite...
  21. Maybe start a new thread about the specific MIDI...

    Maybe start a new thread about the specific MIDI 5.0 library changes. Links to details and example code would really help.
  22. And welcome back Frank!!

    And welcome back Frank!!
  23. Fixed. ...

    Fixed.

    https://github.com/PaulStoffregen/cores/commit/a1a495a841f3ddd4dc13f8d9e5c10ffd020d8bca
  24. Replies
    64
    Views
    1,137

    If you've got the latest core installed, how's...

    If you've got the latest core installed, how's extmem_malloc() look?
  25. USB is really unreliable if running at only 24...

    USB is really unreliable if running at only 24 MHz, as there's not really enough bus bandwidth. Best to run at 150 MHz or higher if you're going to use USB.
  26. Replies
    64
    Views
    1,137

    Ugh, looks like several minor descriptor problems...

    Ugh, looks like several minor descriptor problems have crept in. And my little experiment a few days ago wasn't such a good idea. Here's a fix.
    ...
  27. Replies
    12
    Views
    332

    Yes, I did seriously consider this, but...

    Yes, I did seriously consider this, but ultimately the decision was made to use that space for ethernet.
  28. The hub problems seem to be related to power...

    The hub problems seem to be related to power consumption. Those blink hex files are built with slower CPU speed, so they use less power. In Arduino you can access that with Tools > CPU Speed.
  29. Replies
    64
    Views
    1,137

    Testing now with Windows 7. I see it here too.

    Testing now with Windows 7. I see it here too.
  30. Replies
    64
    Views
    1,137

    Ok... I'm getting out my Windows laptop to...

    Ok... I'm getting out my Windows laptop to investigate....
  31. Replies
    64
    Views
    1,137

    This is the last commit that went into...

    This is the last commit that went into 1.54-beta2.

    https://github.com/PaulStoffregen/cores/commit/ea276ee57a364306562452fef42d3815fb2fbb59
  32. I downloaded the zip file and used Teensy Loader...

    I downloaded the zip file and used Teensy Loader to write your HEX file to a Teensy 4.0 here (using Linux). Works fine. I know that doesn't solve your issue, but at least we can know the HEX file...
  33. Replies
    64
    Views
    1,137

    Does a fresh copy of Arduino 1.8.13 and...

    Does a fresh copy of Arduino 1.8.13 and Teensyduino 1.54-beta2 work?

    That commit did indeed cause problems on Teensy 4.1 (or perhaps more clearly expose long-standing problems). The issue is...
  34. Replies
    64
    Views
    1,137

    I tested on Ubuntu 18.04 with fresh copy of...

    I tested on Ubuntu 18.04 with fresh copy of Arduino 1.8.13 and the lastest work-in-progress. Serial.printf() works fine.

    Maybe I need to dig out my Windows test laptop?
  35. Arduino is putting the hex file and all the...

    Arduino is putting the hex file and all the compiled stuff into a temporary folder. The name changes every time you run Arduino. In this log file, you can see it's...
  36. Replies
    64
    Views
    1,137

    I've added extmem_malloc(), extmem_realloc(),...

    I've added extmem_malloc(), extmem_realloc(), extmem_free() which attempt to use external memory, but automatically fall back to internal RAM when an external RAM chip isn't available (or has been...
  37. Replies
    64
    Views
    1,137

    I'm going to bring the smalloc files into the...

    I'm going to bring the smalloc files into the core library. I see you tried to contact the author a couple weeks ago.

    https://github.com/electrorys/smalloc/issues/1

    Since the repository hasn't...
  38. I'm disabling the printf format warnings, at...

    I'm disabling the printf format warnings, at least for Teensyduino 1.54

    https://github.com/PaulStoffregen/cores/commit/ba177b0d22d8974b43c65753a710e54a4979eb7c

    Will reconsider after we've...
  39. Replies
    25
    Views
    760

    Unofficially of course, the code is pretty...

    Unofficially of course, the code is pretty unlikely to change.
  40. Replies
    12
    Views
    244

    If you do need to use Windows XP, Vista, 7 or 8,...

    If you do need to use Windows XP, Vista, 7 or 8, we have a small stand-alone driver installer on the download page.

    https://www.pjrc.com/teensy/td_download.html

    Look for "Windows Serial...
  41. Replies
    12
    Views
    244

    The "driver" install is only needed on Windows...

    The "driver" install is only needed on Windows 8.1 and earlier.

    Windows 10, Linux and Macintosh have all needed drivers built in.
  42. Replies
    42
    Views
    1,096

    Turns out this optimization makes only a small...

    Turns out this optimization makes only a small improvement.

    Here's a little test program which transmits 12 bytes at 33 Mbit/sec.



    #include <SPI.h>

    void setup() {
    SPI.begin();
  43. Replies
    42
    Views
    1,096

    Yes, byte order is an issue. But I also made a...

    Yes, byte order is an issue.

    But I also made a silly mistake of not converting byte count to word count. Doh!
    ...
  44. Replies
    42
    Views
    1,096

    I tried making use of the SPI 16 and 32 bit block...

    I tried making use of the SPI 16 and 32 bit block transfer functions. The Ethernet library fails to run if they're used.

    Can anyone see a mistake?
    ...
  45. Replies
    42
    Views
    1,096

    Thanks for testing! Hopefully we will finally...

    Thanks for testing!

    Hopefully we will finally have a map() function that meets all expectations.
  46. In the late 1990s I went to hear a talk by Bob...

    In the late 1990s I went to hear a talk by Bob Pease, who is kind of a personal hero of mine. I probably never would have become reasonably proficient with analog circuitry if were not for the many...
  47. Replies
    12
    Views
    244

    To get started, I'd recommend you use Arduino to...

    To get started, I'd recommend you use Arduino to program something like this onto your Teensy LC.



    void setup() {
    }

    void loop() {
    if (Serial.available()) {
    char c = Serial.read();
  48. analogRead(13) technically means to try to read...

    analogRead(13) technically means to try to read voltage on pin 13. But pin 13 is digital only. It don't have analog input capability.

    Very early versions of Arduino used plain numbers 0 to 5,...
  49. Replies
    4
    Views
    156

    I believe these lines are likely the problem. ...

    I believe these lines are likely the problem.



    error = Wire.endTransmission();
    error = Wire1.endTransmission(); // and here

    Results from Wire1 activity are immediately...
  50. For numbers already built in, you can use the 24...

    For numbers already built in, you can use the 24 bit serial number PJRC writes into the "program once" memory, or you can use the 128 unique number NXP puts into the chip.

    For NXP's unique number,...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4