Search results

  1. D

    Modifying USB descriptors well after enumeration

    I'm looking for suggests on how to proceed here: A few seconds after boot I may find an I2C device connected to the Teensy 4.0 and it would be great if I could add a new device to the USB descriptors. The device is a variant of a HID device - a I2CHID PTP device. I'd like the Teensy 4.0 to be a...
  2. D

    I need some Teensy 3.6 modules

    I'm another person looking for some Teensy 3.6 parts. If you have any you'd like to sell PM me. Thanks
  3. D

    QSPI pull-up resistors required?

    Ah, I hate it when I'm not clear. That is a snip from the reference schematic (the demo board). The instructions in the text clearly state to remove the zero ohm jumpers from the hyperflash (not shown) and add the zero ohm jumpers on the QSPI. They also say to add the pull ups. edit: There is...
  4. D

    QSPI pull-up resistors required?

    The NXP reference design shows pull up resistors on the /WP and /RESET and /CE signals on the QSPI flash but the Teensy 4.1 design doesn't have those pull ups. The NXP FAE is saying it needs them for sure (but just during the initial startup for the 30MHz access of flash). Does that sound...
  5. D

    Teensy 4.1 Flash clock frequency question

    Thanks! Hopefully I'm not being too annoying here. I should know by the end of next week if this fixes the temperature issue.
  6. D

    Teensy 4.1 Flash clock frequency question

    Well, this traces down to a change in bootcode.c - with a little luck one of you has access to a nice scope and can confirm my findings. With the prior value (3) in the clock field the flash clocks at 120 MHz. With the new setting (8) it clocks at 144 MHz. These don't really match the docs -...
  7. D

    Teensy 4.1 Flash clock frequency question

    Is uint32_t FlexSPI_NOR_Config[128] in bootdata.c the data that is supposed to control this clock frequency? If I'm interpreting the data correctly it's set to 8 = 133 MHz. If I set it to 7 I get 180 MHz. I am clearly lost on this. How do you set the freq of the flash clock?
  8. D

    Teensy 4.1 Flash clock frequency question

    To add more info: A Teensy 4.1, fresh out the bag (running blinky) shows a clock of 120 MHz. If I then compile blinky on my system and download it the clock will bump up to 144 MHz. So the main flash clock seems to be set too high in the latest Teensyduino/Teensy 4.1 libraries.
  9. D

    Teensy 4.1 Flash clock frequency question

    On the Teensy 4.1, at power up, what maximum clock freq on the Winbond chip (U3) should I expect to see? I'm seeing 143.7 MHz and that seems out of spec. Is there something I'm doing wrong here? What clock frequency are you seeing? I'm using Teensyduino 1.57 with the 1.8.19 ide.
  10. D

    Teensy 4.0 code security?

    Thanks for the reply. For reference, many industry people start with the "NIST standard" - NIST Special Publication 800-193. Lot's of jargon, all centered around the idea of a "root of trust", some part of the system you know is safe. NIST doesn't give a solution, it just has the requirements of...
  11. D

    Teensy 4.0 code security?

    I'm confused. Is this a Dice (Riot) design? (root-of-trust bootloader, shared secret, double hash, "signs/authorizes the update" sorta thing)? Or is this a "root-of-trust bootloader, symmetric key, hex is encrypted, flash image is stored encrypted and decrypts to ram, executes from ram, only...
  12. D

    Teensy 4.1 - Fourth I2C device?

    I'm wondering, doesn't the processor have four I2C controllers? Why are only 3 available?
  13. D

    Wire library BUFFER_LENGTH. I need a way to change it.

    So we'll cook up a version (I prefer i2c_t3 so we'll likely use that) and then focus on the core issue: getting those changes rolled into the release version. MorganS - I hear you. It sounds like we are doing something crazy but many I2C devices require a complete report read or they won't...
  14. D

    Wire library BUFFER_LENGTH. I need a way to change it.

    The I2C buffer length in all versions of the wire library is hard-coded to 32 bytes. I must be the only guy in the world who needs it larger (up to 1.1k at times, but typically more like 53, 350, or 530 bytes). If I cook up a way to make it settable what are the odds I can get that code...
  15. D

    Wire library BUFFER_LENGTH - is there a good way to change it?

    The wire library (Wire.h) hard codes the buffer length to 32. I can edit wire.h but my code is hard for others to use (they have to know to edit it too). Is there some "project specific" way to change the I2C buffer length?
  16. D

    Calling multiple sine wave instances

    How about a for loop? for (x = 0; x < 32; x++) { sine1.frequency(FREQ[x]); }
  17. D

    Can we run multiple SPI devices on a Teensy++ 2.0?

    The idea with spi driving multiple things is: 1) Each thing has a "slave select" line (ss), it's like a chip select line. 2) When a device's ss is high it means "don't listen/respond", when ss is low it means "listen/respond to the clock and data" 3) All ss lines are usually high, you set a...
  18. D

    Does Serial.write() return the byte count?

    If I have: uint16_t write_count; write_count = Serial.write(Buffer, length); I was expecting to have write_count show the number of bytes written. It does not. It's just zero. What should the correct behavior be here? (The reference pages shows it returns a byte [the source seems to show...
  19. D

    Teensy 3.0 USB Serial speed

    I see what is going on. Serial.readBytes gravitates toward reading in 64 byte chunks. That's cool. I just may not get all the data in one grab. My test application is too basic. If I send 80 bytes the Teesny 3.0 gets the first 64, sends them back, then gets the remaining 16 bytes and...
  20. D

    Is it a USB HID standard to return the number of bytes received when bytes are sent?

    Some random pieces of the puzzle: HID only gets one 64 byte packet per frame (1ms) in each direction. If your PC-side code sends less than 64 bytes then somewhere in the PC is code that pads the buffer up to 64 bytes. On the embedded side all 64 are received. You have to know how many of...
  21. D

    Teensy 3.0 USB Serial speed

    The pc side in and out buffers are set large. I'm new to Teensy and Arduino - If I make changes to the usb stuff how do I recompile it?
  22. D

    Teensy 3.0 to PC communication via USB serial (>256000 baud)

    Just so I'm clear, you are wanting to communicate from the PC to the Teensy 3.0 with USB but not relay the traffic to a real UART, right? If so what does your Teensy code look like? Have you speed tested the code? What data rate (for a give data transmittion size) are you getting...
  23. D

    Teensy 3.0 USB Serial speed

    So I have Teensy 3.0 code that is a simple serial echo: void loop() { uint16_t length = Serial.available(); if (length > 0) { Serial.readBytes((char *)Buffer, length); Serial.write(Buffer, length); Serial.send_now(); } } On the PC side I: track the time of: loop...
  24. D

    Questions about USB CDC and SPI

    So I'm fairly new to Arduino and the Teensy. I have three Teensy 3.0 that I've written some simple/fun projects. Here is the what I'm after: I have an app that I wrote for and MSP-430 (TI processor) and I'm wondering how hard it would be to port it to the Teensy 3.0. The MSP430 talks to the...
Back
Top