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; generated 12 minute(s) ago.

  1. Yes, definitely planning to make at least 1 flash...

    Yes, definitely planning to make at least 1 flash filesystem library use this File base class.

    Hopefully after SD, USBHost_t36 and a flash chip library use this, the API should become pretty...
  2. Replies
    1
    Views
    35

    I started a thread about this stuff. ...

    I started a thread about this stuff.

    https://forum.pjrc.com/threads/64136-File-abstraction-and-SdFat-integration
  3. If you're wondering why I'm doing all this,...

    If you're wondering why I'm doing all this, here's some of the goals.

    1: Fix the problems where SD and SdFat don't play well together. The goal is you'll be able to use libraries that want SdFat...
  4. If anyone wants to give it a try, there are 3...

    If anyone wants to give it a try, there are 3 pieces to grab from github.

    1: In the core library, you'll need this new FS.h header.
    ...
  5. File abstraction and SdFat integration

    I'm been quiet for the last few days while working on a long-planned change to bring the File class into Teensy's core library, and to remove the Arduino SD library and migrate all SD card use on...
  6. Replies
    44
    Views
    4,409

    Sticky: You can use Adafruit_GFX. In Arduino, click...

    You can use Adafruit_GFX.

    In Arduino, click Tools > Manage Libraries and type "GFX" in the search. Most libraries are found and installed that way.

    Many years ago, in the early days of 32 bit...
  7. 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...
  8. 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...
  9. Replies
    1
    Views
    64

    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...
  10. 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...
  11. Replies
    14
    Views
    301

    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...
  12. Replies
    6
    Views
    199

    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.
    ...
  13. 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...
  14. 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...
  15. Replies
    11
    Views
    304

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

    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...
  17. 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...
  18. 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....
  19. Replies
    64
    Views
    1,247

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

    Looks like this was duplicated on github

    https://github.com/PaulStoffregen/USBHost_t36/issues/41
  22. Replies
    64
    Views
    1,247

    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?
  23. Replies
    11
    Views
    304

    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...
  24. 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...
  25. 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...
  26. Replies
    2
    Views
    74

    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...
  27. Replies
    64
    Views
    1,247

    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...
  28. 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...
  29. Replies
    64
    Views
    1,247

    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.
  30. Replies
    64
    Views
    1,247

    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"
    ...
  31. Replies
    64
    Views
    1,247

    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...
  32. Replies
    64
    Views
    1,247

    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...
  33. 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.
  34. And welcome back Frank!!

    And welcome back Frank!!
  35. Fixed. ...

    Fixed.

    https://github.com/PaulStoffregen/cores/commit/a1a495a841f3ddd4dc13f8d9e5c10ffd020d8bca
  36. Replies
    64
    Views
    1,247

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

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

    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.
    ...
  39. Replies
    16
    Views
    557

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

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

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

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

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

    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
  44. 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...
  45. Replies
    64
    Views
    1,247

    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...
  46. Replies
    64
    Views
    1,247

    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?
  47. 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...
  48. Replies
    64
    Views
    1,247

    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...
  49. Replies
    64
    Views
    1,247

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