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

  1. Yes, USBHost_t36 supports USB hubs. Like all USB...

    Yes, USBHost_t36 supports USB hubs. Like all USB devices it supports, you do have to put instances in your program. Most of the library's examples have hub instances.




    The schematic might...
  2. That board must be very old, since Teensy 3.1 was...

    That board must be very old, since Teensy 3.1 was discontinued about 6 years ago. Maybe time to just call it a loss and replace with a new board?

    And to answer your question, even if it's not...
  3. Replies
    1
    Views
    48

    Teensy 4.1 has a FPU which does perform 64 bit...

    Teensy 4.1 has a FPU which does perform 64 bit double math in hardware. When you declare "double" variables, the compiler does indeed store 64 bits.

    As for transmitting those 64 bits over CAN or...
  4. I updated the sample Makefile ...

    I updated the sample Makefile

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

    Compiling for Teensy 4.1 vs 4.0 involves uncommenting a few lines at the...
  5. Replies
    14
    Views
    292

    When your upload completes, Teensy reboots. The...

    When your upload completes, Teensy reboots. The USB controller is built inside the chip, so it gets rebooted too. From your PC's point of view, it is as if the USB cable has unplugged. Even though...
  6. Replies
    6
    Views
    195

    I've updated SoftwareSerial, so future versions...

    I've updated SoftwareSerial, so future versions of Teensyduino will "know" how to use the Serial4-Serial6 pins on Teensy 3.5 & 3.6, and also Serial8 on Teensy 4.1.
    ...
  7. 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...
  8. 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...
  9. Replies
    11
    Views
    299

    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...
  10. Replies
    13
    Views
    408

    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...
  11. 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...
  12. 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....
  13. Replies
    64
    Views
    1,183

    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. ...
  14. 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:
    ...
  15. Looks like this was duplicated on github ...

    Looks like this was duplicated on github

    https://github.com/PaulStoffregen/USBHost_t36/issues/41
  16. Replies
    64
    Views
    1,183

    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?
  17. Replies
    11
    Views
    299

    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...
  18. 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...
  19. 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...
  20. Replies
    2
    Views
    73

    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...
  21. Replies
    64
    Views
    1,183

    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...
  22. 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...
  23. Replies
    64
    Views
    1,183

    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.
  24. Replies
    64
    Views
    1,183

    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"
    ...
  25. Replies
    64
    Views
    1,183

    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...
  26. Replies
    64
    Views
    1,183

    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...
  27. 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.
  28. And welcome back Frank!!

    And welcome back Frank!!
  29. Fixed. ...

    Fixed.

    https://github.com/PaulStoffregen/cores/commit/a1a495a841f3ddd4dc13f8d9e5c10ffd020d8bca
  30. Replies
    64
    Views
    1,183

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

    If you've got the latest core installed, how's extmem_malloc() look?
  31. 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.
  32. Replies
    64
    Views
    1,183

    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.
    ...
  33. Replies
    13
    Views
    408

    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.
  34. 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.
  35. Replies
    64
    Views
    1,183

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

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

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

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

    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
  38. 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...
  39. Replies
    64
    Views
    1,183

    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...
  40. Replies
    64
    Views
    1,183

    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?
  41. 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...
  42. Replies
    64
    Views
    1,183

    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...
  43. Replies
    64
    Views
    1,183

    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...
  44. 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...
  45. Replies
    25
    Views
    775

    Unofficially of course, the code is pretty...

    Unofficially of course, the code is pretty unlikely to change.
  46. Replies
    14
    Views
    292

    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...
  47. Replies
    14
    Views
    292

    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.
  48. Replies
    42
    Views
    1,136

    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();
  49. Replies
    42
    Views
    1,136

    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!
    ...
  50. Replies
    42
    Views
    1,136

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