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. Oh, yeah, I believe datalogger isn't working...

    Oh, yeah, I believe datalogger isn't working because of this unfinished TODO...



    File open(const char *filepath, uint8_t mode = FILE_READ) {
    oflag_t flags = O_READ;
    ...
  2. Whew, that's a relief. I couldn't reproduce it...

    Whew, that's a relief. I couldn't reproduce it on Linux and really wasn't looking forward to fiddling more with Windows.
  3. Replies
    46
    Views
    1,277

    You need to be much more specific about how to...

    You need to be much more specific about how to reproduce this problem!

    I tried just now with Arduino 1.8.13 and 1.54-beta2 on Windows 10. I believe you can see in this screenshot it looks...
  4. Let's discuss newline formats and serial monitor...

    Let's discuss newline formats and serial monitor stuff on a different thread.

    At this moment, I'm pretty focused on the File base class and whether this approach to C++ derived classes and...
  5. Maybe this is a good moment to mention the C++...

    Maybe this is a good moment to mention the C++ slicing problems I encountered. Truth is, I mostly think in C (and assembly and analog circuitry) rather than C++. Maybe someone here with more C++...
  6. Replies
    4
    Views
    126

    I ran one more quick test to check the actual SPI...

    I ran one more quick test to check the actual SPI clock frequency.

    The meaning of SPISettings is a maximum frequency. The SPI port gives you the highest frequency it can without exceeding that...
  7. Replies
    4
    Views
    126

    As you can see by the gaps between the burst of...

    As you can see by the gaps between the burst of clock pulses on the blue trace, stopping to toggle pin 2 really slows the whole transfer.

    If your device can work without CS changing every 16 bits,...
  8. Replies
    4
    Views
    126

    I connected my oscilloscope to look at the...

    I connected my oscilloscope to look at the waveforms. They both look fine to me.

    Here's what I see with the first line for 26 MHz

    22248

    And here is the result if I comment out the 26 MHz...
  9. Maybe not such good advice. The setup()...

    Maybe not such good advice.

    The setup() function runs only once at startup, usually before your PC is even able to complete detecting which type of USB you've just plugged in. If you only check...
  10. Yes. It's expecting this Processing program on...

    Yes. It's expecting this Processing program on your PC to send a message with the current time.
    ...
  11. What should that function be named and how should...

    What should that function be named and how should it be documented?

    Please look at the SGTL5000 documentation in the right-side panel of the design tool.
    ...
  12. Opps, fixed. ...

    Opps, fixed.

    https://github.com/PaulStoffregen/SD/commit/824a16eb0657a8e7e7868b7063ea5a169402f08f




    SD.begin(chipselect);

    Or you can access the main SdFat object with "SD.sdfs", if you...
  13. You could just use the Wire library to talk...

    You could just use the Wire library to talk directly to the SGTL5000 chip, if you *really* don't want to do the easiest thing and just edit control_sgtl5000.cpp.
  14. 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...
  15. Replies
    1
    Views
    64

    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
  16. 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...
  17. 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.
    ...
  18. 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...
  19. Replies
    44
    Views
    4,446

    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...
  20. 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...
  21. 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...
  22. Replies
    1
    Views
    75

    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...
  23. 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...
  24. Replies
    14
    Views
    304

    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...
  25. Replies
    6
    Views
    203

    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.
    ...
  26. 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...
  27. 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...
  28. Replies
    11
    Views
    305

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

    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...
  30. 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...
  31. 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....
  32. Replies
    64
    Views
    1,266

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

    Looks like this was duplicated on github

    https://github.com/PaulStoffregen/USBHost_t36/issues/41
  35. Replies
    64
    Views
    1,266

    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?
  36. Replies
    11
    Views
    305

    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...
  37. 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...
  38. 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...
  39. Replies
    2
    Views
    75

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

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

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

    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"
    ...
  44. Replies
    64
    Views
    1,266

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

    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...
  46. 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.
  47. And welcome back Frank!!

    And welcome back Frank!!
  48. Fixed. ...

    Fixed.

    https://github.com/PaulStoffregen/cores/commit/a1a495a841f3ddd4dc13f8d9e5c10ffd020d8bca
  49. Replies
    64
    Views
    1,266

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

    If you've got the latest core installed, how's extmem_malloc() look?
  50. 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.
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4