Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: lukexyz

Search: Search took 0.00 seconds.

  1. Replies
    18
    Views
    3,172

    luni -- thanks for the link! Somehow I missed...

    luni -- thanks for the link! Somehow I missed this when I was looking for debugging support.

    This is good news then, since Arduino IDE 2.0 should support Teensy debugging out of the box with this...
  2. Replies
    18
    Views
    3,172

    Another Arduino gdb stub that might be helpful as...

    Another Arduino gdb stub that might be helpful as a starting point:

    https://github.com/espressif/esp-gdbstub
  3. Replies
    18
    Views
    3,172

    I dug a little more and it looks like they...

    I dug a little more and it looks like they removed their own debugger extension three months ago in favor of the VSCode Arduino debugger.
    ...
  4. Replies
    18
    Views
    3,172

    Here's the Arduino 2.0 feature request for Teensy...

    Here's the Arduino 2.0 feature request for Teensy support: https://github.com/arduino/arduino-ide/issues/90
  5. Replies
    18
    Views
    3,172

    This notice was posted on the Arduino Pro IDE...

    This notice was posted on the Arduino Pro IDE GitHub page:



    It's not based on Eclipse as somebody posted earlier, it's based on Theia (which is an Eclipse Foundation project, but it's not...
  6. Replies
    11
    Views
    742

    I can also verify that this code in the new_Pipe...

    I can also verify that this code in the new_Pipe method is executing with host_port==2 before the async transfer is initiated, so async interrupts should be enabled on the host:

    ...
  7. Replies
    11
    Views
    742

    I'm still trying to debug this. If I insert...

    I'm still trying to debug this.

    If I insert the following code at the exit from queue_Transfer:


    while (!(halt->qtd.token & 0x40)) {
    println("TOKEN: ", halt->qtd.token, HEX);
    halt =...
  8. Replies
    11
    Views
    742

    By the way, while even the i.MX RT1170 processor...

    By the way, while even the i.MX RT1170 processor still has just two USB OTG ports, it is entirely conceivable that future chips will have four USB OTG ports, and at some point the single-host...
  9. Replies
    11
    Views
    742

    Thanks for taking a look at the code changes. ...

    Thanks for taking a look at the code changes.

    Yes, the changes are extensive. However, I tried multiple entirely different approaches, and I really don't think it's possible to do this in any...
  10. Replies
    11
    Views
    742

    I changed USBHost_t36 to support both USB1 and...

    I changed USBHost_t36 to support both USB1 and USB2 in host mode:

    https://github.com/PaulStoffregen/USBHost_t36/pull/61

    I was able to get USB1 powered up and switching on devices. However...
  11. I have a much better version of these library...

    I have a much better version of these library changes to enable USB1 in host mode, in this pull request:

    https://github.com/PaulStoffregen/USBHost_t36/pull/61

    I really need someone's help to...
  12. I guess the memory corruption doesn't matter,...

    I guess the memory corruption doesn't matter, since the first field of the struct is only overwritten by a type-coerced pointer when the struct is added to the free list. But still, this is pretty...
  13. Possible bug in USBHost_t36's memory allocation code

    Cross-posting what I posted here: https://github.com/PaulStoffregen/USBHost_t36/issues/60

    This code pattern is used a number of times in memory.cpp for memory allocation and recycling (for...
  14. Sorry, you'll need this change too: ...

    Sorry, you'll need this change too:

    https://github.com/lukehutch/USBHost_t36/commit/0f9373ca4154c829110b35254444ff99b66b0dd9
  15. Modifying USBHost_t36 to support host mode for USB1

    Both USB1 (the usual device mode port) and USB2 (the usual host mode port) on Teensy 4.1 technically support USB OTG. However, USB1 is configured to run in device mode by the bootloader, and...
  16. @wwatson: thanks for the electrical info. Sounds...

    @wwatson: thanks for the electrical info. Sounds like I should supply the Teensy with a boosted 5V supply anytime I'm planning to use USB devices.

    @MichaelMeissner: Thanks, the Pololu board is an...
  17. Is there a small subset of changes that would...

    Is there a small subset of changes that would support just USB flash drives (I don't need SD / MTP etc.), would allow basic operations like listing / copying / deleting of FAT files, and (ideally...
  18. Ah, I see what the problem is. I forgot to...

    Ah, I see what the problem is. I forgot to include the branch name with a "-b" switch when I tried cloning that repo. Thanks, it compiles now!

    I tried uncommenting this code in CardInfoUSB.ino:
    ...
  19. Driving Teensy with 3.7V with a USB flash drive connected?

    Teensy 4.1 drops the 5V supply voltage down to 3.3V, so I understand it can be driven from a 3.7V LiPo battery without any issues. However, if I connect a USB flash drive to the USB host port, I...
  20. Hi KurtE, thanks for all the helpful links. I...

    Hi KurtE, thanks for all the helpful links. I have not had any luck getting a complete working system based on any combination of these repos.

    I removed the USBHost_t36 from the Teensyduino 1.54...
  21. Replies
    524
    Views
    67,954

    A few suggestions for future Teensy boards: ...

    A few suggestions for future Teensy boards:

    (1) I would love to see a Qwiic socket, to make it easy for users to start tinkering with I2C devices.

    (2) It would be awesome if the USB device port...
  22. How to use a FAT filesystem with MassStorageDriver in USBHost_t36

    What are the right steps needed to be able to read FAT drives on Teensy 4.1, using USBHost_t36?

    I found this 2019 thread on USB mass storage driver experiments:
    ...
  23. I see. Thanks for the comprehensive response!...

    I see. Thanks for the comprehensive response! I'll try to use beta versions in future.
  24. Teensyduino installer installs old library versions

    I ran the Linux 64-bit version of the Teensyduino 1.53 installer, from here:

    https://www.pjrc.com/teensy/td_download.html

    This installs an old version of the USBHost_t36 library, where the...
  25. I figured out the issue. I had to manually select...

    I figured out the issue. I had to manually select Teensy 4.1 as the board, under the Arduino IDE's Tools menu. I guess the IDE can't automatically detect the board type based on the USB device type.
  26. Incidentally, the following page suggests using...

    Incidentally, the following page suggests using the filename 00-teensy.rules, but the Teensyduino installer requires the name 49-teensy.rules:

    https://www.pjrc.com/teensy/td_download.html
  27. avrdude: ser_open(): can't open device "/sys/devices/.../1-6.3": Is a directory

    I can't seem to upload Arduino sketches to a Teensy 4.1 from Fedora 33 Linux.

    I installed Arduino and Teensyduino, and put the 49-teensy.rules file in place as required by the Teensyduino...
  28. Replies
    11
    Views
    742

    I looked through the NXP documentation to try to...

    I looked through the NXP documentation to try to find what would be necessary to switch port 1 from device to host mode. I found the info on the USB_nUSBMODE register for setting the mode. However,...
  29. Replies
    11
    Views
    742

    Follow-up question: how can a USB OTG cable...

    Follow-up question: how can a USB OTG cable signal to the Teensy 4.1 that it is an OTG cable? Normally the Sense pin is shorted with GND in an OTG cable. But according to the Teensy 4.1...
  30. Replies
    11
    Views
    742

    Ah, OK, sorry, I was looking at the wrong section...

    Ah, OK, sorry, I was looking at the wrong section of the pinout (USB device rather than USB host). That's great.



    Since I need exactly two USB host ports during deployment, I may actually...
  31. Replies
    11
    Views
    742

    USB Host port hardware questions

    Why are surface solder pads used rather than vias for the D+/D- pins of the USB Host port on the Teensy 4.0 and 4.1? This makes mounting to a USB daughter board more difficult.

    Do the D+/D- pins...
  32. So just to clarify, does USBHost_t36 work on...

    So just to clarify, does USBHost_t36 work on Teensy 4.1? I don't see a definitive answer here.
Results 1 to 32 of 32