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 30 minute(s) ago.

  1. Replies
    5
    Views
    60

    You'll probably need to modify the source, since...

    You'll probably need to modify the source, since tx_state is declared static.

    But regardless of how you go about things, hopefully this info about how the USB device code works will help.
  2. Look at the _VectorsFlash array in mk20dx128.c. ...

    Look at the _VectorsFlash array in mk20dx128.c.

    https://github.com/PaulStoffregen/cores/blob/master/teensy3/mk20dx128.c#L268

    Also, if you *really* want to learn how the processor works,...
  3. Replies
    15
    Views
    153

    Hope you'll confirm whether or not soldering a...

    Hope you'll confirm whether or not soldering a wire between those 2 points makes your board work. That sort of feedback can really help everyone else in the future when they're struggling to...
  4. Replies
    5
    Views
    60

    Looks like you're calling the not-public API...

    Looks like you're calling the not-public API functions within usb_dev.c. That's fine... the code is open source and meant to be used. But since these aren't the normal public API, their precise...
  5. Wow, looks like a really interesting project. ...

    Wow, looks like a really interesting project. Hope you'll share some more info as it develops?

    I'm really curious to hear if you see much of a difference in timing & latency with Teensy 4.0's USB...
  6. No, it only supports stereo. You can use stereo...

    No, it only supports stereo. You can use stereo input and stereo output simultaneously, but only 1 instance of each.




    Yes, it is theoretically possible, if your programming skill and...
  7. Replies
    20
    Views
    472

    Opps, I messed up the MacOS Catalina build. ...

    Opps, I messed up the MacOS Catalina build. Fixed it just now and uploaded a fresh file.

    The new Teensyduino_MacOS_Catalina.zip has shasum e72ba892097e5f849f71706d8b14d2abaea14926.

    The...
  8. Yes, but later. Audio requires isochronous...

    Yes, but later.

    Audio requires isochronous transfer, which is more complex and more difficult to test. We use it in asynchronous mode, which uses a slightly different rate feedback protocol at 12...
  9. Replies
    20
    Views
    472

    I'll confess... I tested the new USB stuff mostly...

    I'll confess... I tested the new USB stuff mostly with Linux and a quick check on Mac, but not Windows. I use Linux as my primary system, and the Macbook Air was set up due to the recent work on...
  10. Replies
    15
    Views
    153

    Schematic looks like it ought to work. Maybe...

    Schematic looks like it ought to work.

    Maybe something wrong in the layout? Here's a project where the schematic was perfect, but the problem turned out to be a missing trace in the layout. It...
  11. Replies
    13
    Views
    188

    For CV into an analog pin ...

    For CV into an analog pin

    https://www.pjrc.com/control-voltage-to-1-2v-analog-input-pin/

    https://www.pjrc.com/wp-content/uploads/2019/01/controlvoltage.png
  12. Oh that doesn't sound right. I'm pretty sure you...

    Oh that doesn't sound right. I'm pretty sure you need to connect VDD (pin 5) of the ICS40300 to 3.3V on the Teensy.
  13. Teensyduino 1.49-beta2 is now available, with USB...

    Teensyduino 1.49-beta2 is now available, with USB MIDI support for Teensy 4.0.

    https://forum.pjrc.com/threads/58654-Teensyduino-1-49-Beta-2

    Please give this a try and let me know how the USB...
  14. Replies
    30
    Views
    1,004

    Sorry, too late for 1.49-beta2. I'm uploading it...

    Sorry, too late for 1.49-beta2. I'm uploading it right now.
  15. Replies
    15
    Views
    153

    Can't read the schematic. Maybe a PDF would be...

    Can't read the schematic. Maybe a PDF would be better?
  16. Replies
    30
    Views
    1,004

    I've added this to my list of issues to...

    I've added this to my list of issues to investigate. Not going to hold up 1.49-beta2 for this.
  17. Replies
    30
    Views
    1,004

    Yes. Please send a pull request. Will probably...

    Yes. Please send a pull request. Will probably be in 1.49-beta3, since I'm about to package up beta2...
  18. Well of course the Keypad library examples only...

    Well of course the Keypad library examples only send to the serial monitor. They use Serial.print().

    You need to copy and paste code, maybe even improvise slightly, to create a hybrid of these 2...
  19. I've committed USB MIDI code for Teensy 4.0 to...

    I've committed USB MIDI code for Teensy 4.0 to github.

    https://github.com/PaulStoffregen/cores

    If you're feeling adventurous, edit your boards.txt file to enable MIDI in the USB Type menu, and...
  20. Replies
    4
    Views
    330

    Yes, this should also work using the USBHost_t36...

    Yes, this should also work using the USBHost_t36 library.

    Only Teensy 3.6 and 4.0 have USB host. They have only a single USB host port, so you'll need a USB hub to connect 2 USB MIDI devices.
    ...
  21. Replies
    30
    Views
    1,004

    Yes, this. The other ones with a dedicated...

    Yes, this.

    The other ones with a dedicated struct typedef has (mostly) been done that way.

    Eventually we'll probably get rid of all the old offset stuff. I did that before the beta test...
  22. Replies
    30
    Views
    1,004

    I'm not quite sure either.... Yes, please...

    I'm not quite sure either....



    Yes, please do.

    But do not delete the already defined full register names. Convert them to the new struct. I believe there's at least one pull request still...
  23. Replies
    63
    Views
    2,738

    FWIW, we are currently using these 5 hardened...

    FWIW, we are currently using these 5 hardened runtime entitlements on the JRE and top-level bundle, because they're required for Java 8:

    com.apple.security.cs.allow-jit...
  24. Replies
    63
    Views
    2,738

    All the info I've found so far is sandbox is...

    All the info I've found so far is sandbox is meant for programs distributed by Apple's app store and hardened runtime is intended for programs distributed outside the Apple app store.

    My (perhaps...
  25. Replies
    30
    Views
    1,004

    Yes, I did the HID ones and I'm working on MIDI...

    Yes, I did the HID ones and I'm working on MIDI now. I did a few quick tests on keyboard, mouse and joystick. Touchscreen still needs more work.

    My plan is for 1.49-beta2 within the next few...
  26. Replies
    14
    Views
    121

    That is a wrong assumption. The mixer and amp...

    That is a wrong assumption. The mixer and amp handle zero gain as a special case. They stop sending data, which does affect the CPU usage of most (but not all) objects connected to their outputs.
    ...
  27. This one, right? ...

    This one, right?

    https://www.invensense.com/download-pdf/ics-40300-datasheet/

    Looks like it should work. Can you show us photos of how you've actually connected everything? And the exact code...
  28. That confirms you *do* have a libraries folder in...

    That confirms you *do* have a libraries folder in Documents.

    Look again, it's in Documents/Arduino/libraries/Audio.

    You need to move or delete that library, because it's interfering with...
  29. I do not know what's wrong here. But I do have...

    I do not know what's wrong here. But I do have another idea that might help give more info.

    Click File > Preferences and turn on "Show verbose output during compilation". Then copy this into the...
  30. Any chance you have a conflicting library in your...

    Any chance you have a conflicting library in your Documents/libraries folder? Anything you install there always overrides all the other locations.
  31. Use the Keypad library. ...

    Use the Keypad library.

    https://www.pjrc.com/teensy/td_libs_Keypad.html
  32. Really good to know it's working well. I've...

    Really good to know it's working well. I've already started on the other USB types with this receive code. Will probably start pushing code to github later today.

    Looks like 8 buffers will be a...
  33. Replies
    63
    Views
    2,738

    Maybe try editing Contents/Info.plist. Look for...

    Maybe try editing Contents/Info.plist. Look for these lines:



    <key>LSMinimumSystemVersion</key>
    <string>10.8</string>

    Arduino 1.8.5 definitely does work on 10.7. It has an older Java...
  34. Replies
    4
    Views
    92

    I replied just now on your main thread. There...

    I replied just now on your main thread.

    There are 2 separate issues here... how tech stuff works, and how communicating with humans works. This forum is about DIY electonics. We all know...
  35. I'm not going to get directly involved in your...

    I'm not going to get directly involved in your project, but I might add another USB MIDI example for use of rotary encoders.

    First, I would like to ask, have you run *any* of the USB MIDI examples...
  36. Replies
    4
    Views
    92

    You've created at least 4 threads, which appear...

    You've created at least 4 threads, which appear to be all about the same thing. This one looks like the main conversation.
    ...
  37. Please do not create duplicate threads. Continue...

    Please do not create duplicate threads. Continue this here:

    https://forum.pjrc.com/threads/58564-Teensy-3-2-USB-MIDI-Controller-Coding-Assistance-*Willing-to-Pay*
  38. Replies
    1
    Views
    34

    Please do not create duplicate threads. ...

    Please do not create duplicate threads.

    https://forum.pjrc.com/threads/58632-Teensy-3-5-Coding-Problem
  39. Difficult to say when I can't run it here. This...

    Difficult to say when I can't run it here. This USB code is pretty new, so it's quite possible there may be undiscovered bugs.

    If you can give me a test case to run here, I can try investigating....
  40. If your program spends time doing work to...

    If your program spends time doing work to "consume" the incoming data, like a blocking write to SPI for 4-wire addressable LEDs, those buffers will allow USB to receive the next incoming data while...
  41. Answer here:...

    Answer here:
    https://forum.pjrc.com/threads/57132-Bootloader-Chip-For-Teensy-4-0?p=221811&viewfull=1#post221811
  42. Thanks for testing. Really good to see the new...

    Thanks for testing. Really good to see the new USB code is running faster!

    If you're feeling like experimenting, any chance you might try running this with different numbers of buffers inside...
  43. Everything you've described sounds like Teensy...

    Everything you've described sounds like Teensy 4.0 is working perfectly, but you're programming a HEX file onto it which does nothing.

    On this page, you can download known-good HEX files. Click...
  44. Replies
    63
    Views
    2,738

    Definitely use 1.49-beta1 from msg #43...

    Definitely use 1.49-beta1 from msg #43.

    Unless any Mac-specific problems turn up or Arduino makes a non-beta release, all remaining work planned for 1.49 is for the code running on Teensy. The...
  45. Sure does look like a bug in Windows, maybe even...

    Sure does look like a bug in Windows, maybe even a buffer overflow, judging by the sudden appearance of stuff about PCI bus devices in what looks like 16 bit wchar format that Windows uses...
  46. Replies
    63
    Views
    2,738

    Thanks Theremingenieur, hpyle, grahamguitarman,...

    Thanks Theremingenieur, hpyle, grahamguitarman, jwx49 for testing. It's a huge help.

    If I could ask you one more question... do you use the touch bar? I don't own any Macbooks new enough to have...
  47. The urgent question right now is whether the USB...

    The urgent question right now is whether the USB code on the Teensy side is working properly. With the recent tests on issue #401, and many tests I did before this week's MacOS Catalina work, and...
  48. One other variable to consider is your Mac's...

    One other variable to consider is your Mac's power source. Apple's CDC driver uses a *lot* of CPU time (for reasons unknown, Windows & Linux drivers don't do this) when receiving data at high speed....
  49. Red LED blinking (slowly) means something is...

    Red LED blinking (slowly) means something is wrong with the USB cable or port. It only does the slow blink when you're in bootloader mode, but your PC hasn't performed any USB communication, not...
  50. Simply including those other libs will not make...

    Simply including those other libs will not make Adafruit_NeoMatrix play nice. Adafruit designed their library to block interrupts.

    To make this work smoothly, you need to completely remove all...
Results 1 to 50 of 499
Page 1 of 10 1 2 3 4