PaulStoffregen

Latest activity Postings About

    • PaulStoffregen
      PaulStoffregen replied to the thread Teensyduino 1.60 Beta #4.
      Well, at least this confirms they do have different serial numbers. Windows is supposed to assign a unique COM port number when the serial number differs. Why it didn't do as it was supposed to, I have no idea. Maybe a bug? Since you're...
    • PaulStoffregen
      Server maintenance has been completed and we're back up. Forum was offline for a few hours this morning during the move.
    • PaulStoffregen
      PaulStoffregen replied to the thread Teensyduino 1.60 Beta #4.
      In Device Manager, can you look at the "Parent" value for both ports in the Details tab?
      • capture.png
    • PaulStoffregen
      If you buy the version without detents so it turns smoothly, you'll see the software really is working as it should and you'll get 60 or 80 counts (depending on which resolution you buy) per 360 degree turn. 4 counts per pulse is the correct...
      • 1747626469193.png
    • PaulStoffregen
      It's a well know hardware feature, or "issue" depending on your point of view. The hardware has "click" detents on every full cycle of the quadrature waveform. Since they're quadrature (quad = four) you get 4 changes counted, because the...
    • PaulStoffregen
      Please understand we're blind guessing here. We can only see what you've shown us, which so far is almost nothing. I tried to answer your question whether we've seen this before. But keep in mind I really can't see almost anything right now...
    • PaulStoffregen
      To explain just a bit further, the unable to sync on 100% bandwidth problem has every byte corrupted at the receiver, but they all do arrive at the correct pace. It only happens if the transmitter is already in the middle sending when the...
    • PaulStoffregen
      Agreed, this is really a job for an oscilloscope. Ideally for the sake of testing you would short the 2 grounds together and connect to the scope's ground. Then you could watch the signal Teensy sends and the copy of it the other chip receives...
    • PaulStoffregen
      Usually download errors are due to poor quality USB cables or other physical connectivity or power problems. Before you pour a lot of time into the software side, check the most common things. On the software side, the 2 places you might...
    • PaulStoffregen
      Maybe info from this breakout board can help? https://www.pjrc.com/breakout-board-for-teensy-4-0/ Scroll down to "Parts List"...
    • PaulStoffregen
      Ah, now I see "if one wanted to try to use two 32MB" probably means 32 Mbit, which is actually 4 Mbyte. Or maybe I've misunderstood? But I also see a lot of talk about the 8 Mbyte constants as a problem.... So please allow me to ask again...
    • PaulStoffregen
      Can you give me the full part number of the 32MB chip and links to any vendors that have it in stock?
    • PaulStoffregen
      For single pin use, digitalWriteFast() with const pin number compiles to exactly this direct register code. You won't gain any performance, but it will cost you code readability. Direct register access can sometimes be faster for manipulating...
    • PaulStoffregen
      Should be no issue at all. Can confirm int64_t works fine. However, only recent versions of Teensyduino have Serial.print() support for int64_t. With older versions you could still print them, buy only with Serial.printf().
    • PaulStoffregen
      By default OctoWS2811 will output 8 parallel data streams. On Teensy 4.x you can change this with the pinlist feature. See the pinlist example by clicking File > Examples > OctoWS2811. On older Teensy 3.x the 8 pins are fixed. Pinlist only...
    • PaulStoffregen
      PaulStoffregen replied to the thread Did I fry my teensy?.
      I want to help, but I do not have a clear picture of what you are seeing. These messages use too imprecise language. Please try to give us more detail. Remember, we can not see. The only info we have to help you is the words you give. Please...
    • PaulStoffregen
      Looks like you may have a very old (before Teensy 4.0 existed) copy of ILI9341_t3 in your {Documents}/Arduino/libraries folder. If you put a library into {Documents}/Arduino/libraries, it overrides any other copy. That's a nice feature if you...
    • PaulStoffregen
      PaulStoffregen replied to the thread TEENSY 4.0/4.1 LIFE CYCLE.
      SparkFun is now manufacturing Teensy boards. They are now sourcing all components and managing supply chains. This is really a question to ask SparkFun. SparkFun's main contact is sales@sparkfun.com Might also be worthwhile to keep in mind...
    • PaulStoffregen
      As I mentioned on your other question, slow & steady 1 second blinking on the red LED means the bootloader is running, but it's heard absolutely no USB communication. JTAG must be ok for the bootloader program to be running and giving you this...
    • PaulStoffregen
      This slow and steady (appox 50%) blink on the red LED (connected to the bootloader chip, not pin 13) means the bootloader is running but it has not heard any USB communication. For a known good Teensy, this blink almost always means you have a...
    • PaulStoffregen
      Your question has the words "double" and "precision", which are normally used when talking about floating point numbers. Teensy 3.2 uses software emulation for floating point math. It works, but speed isn't wonderful, especially for 64 bit...
    • PaulStoffregen
      We're down to the last 2 leftover Teensy + grab bags. Now they're sold out. Since the sale started, 2 postal return packages have come in, one with a Teensy 4.0 and the other with a Teensy 4.1, both pins soldered. So these last leftovers will...
    • PaulStoffregen
      PaulStoffregen replied to the thread No serial ports on imac.
      Here's 3 guesses... 1: Teensy uses HID protocol by default, not Serial. If you only look for /dev/cumodem or other USB serial while it's in HID mode, you would conclude it isn't connected when in fact it is working properly with HID rather than...
    • PaulStoffregen
      I tested this on Windows, it worked without any issues on the latest version of Windows 11, there are no problems at all, thank you for your help.
    • PaulStoffregen
      For the fast one, just use GPIO7 in your program rather than GPIO2.
    • PaulStoffregen
      NXP put two separate GPIO peripherals into the chip for every pin, except for just a few special pins controlled by GPIO5. Earlier chips had one GPIO for each pin, as you would intuitively expect. But GPIO1-GPIO5 have high latency which makes...
    • PaulStoffregen
      Can you tell me which operating system you used? I tested only with Linux. About your question, yes, if you don't update those 4 files should stay on your computer and be used for all future Teensy 4.x compiles. I've also committed this on...
    • PaulStoffregen
      PaulStoffregen replied to the thread Array in RAM1?.
      RAM2 is cached. The CPU cache is 32K. Even for cache misses, RAM2 is still very fast. It's also 64 bits wide, so a cache miss quickly fills a 32 byte cache row. For most "normal" programs, there's little to no performance difference because...
    • PaulStoffregen
      Oh, I should mention the KEYBOARD_SIZE define in usb_desc.h determines whether boot/6KRO or NKRO is used. Set to 8 bytes for normal, or 16 bytes to use NKRO. I only edited the define for the Tools > USB Type with just keyboard. If you want any...
    • PaulStoffregen
      Teensy's USB keyboard code uses the "boot protocol" which only supports 6KRO. Here's a quick attempt to add NKRO support. To use this, find the hidden folder where Teensy's core library is installed. Then put these 4 files into that folder...
    • PaulStoffregen
      On the PC side, in Teensy Loader, look for the messages in Help > Verbose Information. For example: 15:39:17.116 (loader): secure mode can not be locked: this is Standard Teensy From code running on Teensy, you would look at the fuse settings...
    • PaulStoffregen
      PaulStoffregen replied to the thread MTP Problem.
      Probably not until I package up 1.60-beta4. Should come within a few days. But even then, it'll only be for Arduino IDE. While it's theoretically possible to grab the code from github or local files installed for Arduino IDE and put them all...
    • PaulStoffregen
      PaulStoffregen replied to the thread MTP Problem.
      Should I investigate? To do so, I'll need a test program which reproduces the problem in Arduino IDE.
    • PaulStoffregen
      Might be worthwhile to consider Teensy is appearing twice in the Ports menu. This is normal when you programmed with USB Type set to Serial (the default). How Arduino's Serial Monitor will access the hardware is differs depending on which you...
      • 1746006042315.png
    • PaulStoffregen
      Usually PSRAM is useful for buffers to hold data you write and then read once, or occasionally. It's especially useful for network applications, like accessing a web server which might transmit a large file, or collecting and transmitting data...
    • PaulStoffregen
      PaulStoffregen replied to the thread MTP Problem.
      As for why you're getting strange results, I'd like to suggest compiling your program (or a small test program) with Arduino IDE. We regularly hear about problems with PlatformIO which turn out to be caused by using different compiler options...
    • PaulStoffregen
      PaulStoffregen replied to the thread MTP Problem.
      Support for __has_include began with gcc version 5, even though most other C++17 features came with version 7, and version 8 was the first claiming full C++17 support. This wikipedia page shows when each C++ feature was first supported...
      • 1745968456408.png
    • PaulStoffregen
      To give just a bit more technical detail, USB is not a truly differential signaling system, like you might expect based on experience Ethernet or PCIe. With fully differential signals, you can AC couple the signals with capacitors (common with...
    • PaulStoffregen
      Confirm ground is critically important for USB. It will not work with only D+ and D-. If it still doesn't work with ground connected, you might try editing usb.c for force only 12 Mbit/sec speed. Look for this line in usb.c. Arduino IDE...
    • PaulStoffregen
      To explain a bit further, Arduino IDE 1.8.x and 2.x.x store settings data quite differently. Older versions of teensy_secure (1.59 and earlier) only know how to read the settings data from Arduino IDE 1.8.x. We also only had the GUI support for...
    • PaulStoffregen
      If you are using only PlatformIO, you may need to run Arduino IDE 1.8.19 at least once, even if you don't actually compile any programs. Arduino IDE will automatically create the sketchbook folder and setting data which teensy_secure reads to...
    • PaulStoffregen
      PaulStoffregen replied to the thread Teensyduino 1.60 Beta #3.
      I just spent a couple unsuccessful hours fiddling with TeensyDebug. It's not working on my Linux machine. Admittedly I did just recently do a complete reinstall, switching from Ubuntu to Fedora, and some other stuff still isn't quite right...
    • PaulStoffregen
      PaulStoffregen replied to the thread FlexIOSPI with DQS.
      Yes. FlexSPI programming is complicated. You need to write instructions in the LUT memory. Look for "MODE1_SDR" in chapter 27. Maybe you're misunderstanding that FlexIO and LPSPI are completely different peripherals. FlexIO is supported by...
    • PaulStoffregen
      Try changing Tools > USB Type RawHID. After upload Teensy should be using only HID and not Serial at all. HID is used to emulate serial, so Serial.print() in your program should still print to the serial monitor. Does that work? Does the COM5...
    • PaulStoffregen
      Is this the library you're using (found by a google search) https://github.com/MajicDesigns/MD_MAX72XX
    • PaulStoffregen
      PaulStoffregen replied to the thread USB Serial Sniffer.
      Teensy doesn't have hardware support for USB sniffing. Teensy's USB hardware can act as a device or as a host, but it simply is not capable to passively listen. Your cheapest option would be a software-only sniffer program. I have not...
    • PaulStoffregen
      PaulStoffregen replied to the thread Teensyduino 1.60 Beta #3.
      Isn't this fixed by commit mentioned on that issue? Yes. But maybe I should package up 1.60-beta4 soon, so it's easier to test with the latest code?
    • PaulStoffregen
      PaulStoffregen replied to the thread Teensyduino 1.60 Beta #3.
      Merged both
    • PaulStoffregen
      PaulStoffregen replied to the thread FlexIOSPI with DQS.
      Now I'm confused. Is Teensy supposed to be the SPI master (transmits SCLK and CS) or the SPI slave (receives SCLK and CS)? I'm pretty sure FlexSPI (chapter 27 in the reference manual) can only work in master mode. GPIO_EMC_11 isn't routed...
    • PaulStoffregen
      To be realistic, an update to the old Teensy 3.2 reference PCB will probably never come. I have no plans to ever work on such a thing. Odds are virtually zero that anyone else would invest their valuable time to update such an old design for...
  • Loading…
  • Loading…
Back
Top