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. You can put a char array into flash, but not...

    You can put a char array into flash, but not String because String is a C++ object.
  2. Sadly, there aren't any easy tutorials. But you...

    Sadly, there aren't any easy tutorials. But you might read through the DMAChannel.h class. I put lots of comments in the source to explain how things work. As things are today, those comments are...
  3. Replies
    4
    Views
    353

    I know this is an old thread, but just for a...

    I know this is an old thread, but just for a final followup, the dimensions page now has drawings for Teensy 4.0 and 4.1.

    https://www.pjrc.com/teensy/dimensions.html
    ...
  4. Which ethernet hardware are you using? ...

    Which ethernet hardware are you using? Ethernet.h is for the Wiznet-based boards. For the ethernet hardware on Teensy 4.1 you need NativeEthernet.h.
  5. I've updated the dimensions page. I know this...

    I've updated the dimensions page. I know this thread is a bit old by now, but hopefully it helps?

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

    https://www.pjrc.com/teensy/dimensions_teensy41.png
  6. Replies
    20
    Views
    1,029

    Updated this page with Teensy 4.0 and 4.1 info.

    Updated this page with Teensy 4.0 and 4.1 info.
  7. I've updated the dimensions page. :) And...

    I've updated the dimensions page. :)

    And here's the dimensions for Teensy 4.1.

    https://www.pjrc.com/teensy/dimensions_teensy41.png
  8. First try a 16 bit location which will output...

    First try a 16 bit location which will output both channels. To do that, just change SOFF and SLAST to zero, so the DMA doesn't ever change the source address. Then it will just read from the same...
  9. Look at File > Examples > Wire > slave_receiver...

    Look at File > Examples > Wire > slave_receiver for an example of using those functions.

    The wire library also has a master_writer example which you can run on the other side to send data to...
  10. That really depends upon what you consider...

    That really depends upon what you consider "simple". ;)

    Just yesterday I answered a question about transmitting a special 20 bit synchronous serial protocol by repurposing the digital audio...
  11. First a standard disclaimer: this message isn't...

    First a standard disclaimer: this message isn't meant to amend or modify or even explain any open source license. For that, you need to refer to the actual license terms. To truly understand what...
  12. Teensy 4.0 would be a better choice because you...

    Teensy 4.0 would be a better choice because you can reassign the LED pins. On Teensy 3.2 the OctoWS2811 pins are fixed and some conflict with the audio shield.
  13. I'm reluctant to comment too deeply about...

    I'm reluctant to comment too deeply about PlatformIO, since I don't personally use it. But if you try that other approach with teensy_post_compile and teensy_ports, I believe you can see we're using...
  14. The simple answer is yes, you can send multiple...

    The simple answer is yes, you can send multiple MIDI messages at once.

    The actual MIDI communication is done at 480 Mbit using a complicated protocol which communicates in packets. A single...
  15. Replies
    4
    Views
    118

    Lots of PCB routing guidelines for USB say not to...

    Lots of PCB routing guidelines for USB say not to have any routing stubs like these pads. For Teensy 4.0 I didn't route any stub traces. On Teensy 4.1 I risked these 2 small pads. Indeed the main...
  16. Can you share what the problem was? Maybe that...

    Can you share what the problem was? Maybe that info could help anyone who later finds this thread by search.
  17. Replies
    2
    Views
    129

    While it's blinking the orange LED, does Arduino...

    While it's blinking the orange LED, does Arduino detect it and show it as RawHID in the Tools > Ports menu?

    And does Upload work without needing the press the button (indicating Teensy was able to...
  18. Yes, you can. Or 1.22V anyway. Hopefully that's...

    Yes, you can. Or 1.22V anyway. Hopefully that's close enough?

    This is documented in the audio library design tool, under the SGTL5000 control. Here's a direct link:
    ...
  19. That would be my guess, that it's ignoring...

    That would be my guess, that it's ignoring --upload-port.




    Yes, there are actually 2 other ways.

    You could set the baud rate to 134 on the serial device, perhaps with "stty". Setting 134...
  20. Usually Euro-rack synths need signals like +/- 10...

    Usually Euro-rack synths need signals like +/- 10 volts (or 20 volts peak-to-peak). The audio shield defaults to only ~1.3V peak-to-peak. You can increase it by software control, but the maximum is...
  21. Maybe the BCP bit documented on page 1989 can...

    Maybe the BCP bit documented on page 1989 can help?

    When/if this all works, hopefully you can share the final known-good code and some more info about the project? It might really help anyone...
  22. Indeed those files aren't on github.

    Indeed those files aren't on github.
  23. I've edited those posts to re-upload the images.

    I've edited those posts to re-upload the images.
  24. Just because you can do a thing does not...

    Just because you can do a thing does not necessarily mean you should. If you have just 4 sensors, all this array stuff is probably a lot of complexity when just using 4 copies of the code is...
  25. Here's the waveforms that code generates. ...

    Here's the waveforms that code generates. Hopefully close to what you wanted?

    21813
  26. I did some fiddling. Here's a quick test using...

    I did some fiddling. Here's a quick test using TDM output code copied from the audio library.

    This probably isn't perfect, but hopefully it will give you a good start. It generates 10 MBit/sec...
  27. Comparing these waveforms to the SS-III XY2-100-E...

    Comparing these waveforms to the SS-III XY2-100-E documentation, I see the sync signal polarity is high for 19 of the 20 clocks. But the waveforms on msg #6 have it high only 1 of the 20 clocks.
    ...
  28. Assuming this is the waveform you really want,...

    Assuming this is the waveform you really want, and you really do intend for the clock to be continuous and the data to immediately repeat, this looks like a job for the SAI (digital audio) port.
  29. I ran your program here on a Teensy 4.1. These...

    I ran your program here on a Teensy 4.1. These are the waveforms I see. Is this correct?

    21809
  30. With the map() function, no. It's always linear....

    With the map() function, no. It's always linear.

    But you certainly can create your own non-linear mapping using equations and functions like logf() or expf(). Some math required...
  31. Not sure if this really matters, but I can tell...

    Not sure if this really matters, but I can tell you boot mode 00 "Boot From Fuses" is used. We never use mode 10 "Internal Boot" on Teensy. The BOOT_MODE1 pin (AD_B0_05) is hard wired to GND, as...
  32. Glad you got it back to working. No,...

    Glad you got it back to working.




    No, that's not how it works at all. Program mode fully resets the IMXRT processor, then takes control of it using its debug mode. In theory that should...
  33. Usually the startup delay can be removed. It's...

    Usually the startup delay can be removed. It's there because some devices like MEMS motion sensor chips need time to start up. Many Arduino libraries and projects depend on Arduino's normal slow...
  34. Addresses 60 to 63 are mapped to the first flash...

    Addresses 60 to 63 are mapped to the first flash sector, just like addresses 0 to 4 are. When you write a 32 bit number to either location, 8 bytes are actually written into the flash sector. 4 of...
  35. Yes. Teensy 4.1 and 4.0 use the same chip, so...

    Yes. Teensy 4.1 and 4.0 use the same chip, so the only real difference is more I/O on 4.1. Software-wise they are the same.

    MIDI works well. You get 8 serial ports which can do normal serial...
  36. Teensy 4.0 already does wear leveling. But it...

    Teensy 4.0 already does wear leveling. But it also maps certain emulated EEPROM addresses to particular 4K flash sectors, which greatly improves performance for 32 bit writes. You could maximize...
  37. Maybe try the FreqMeasure library? ...

    Maybe try the FreqMeasure library?

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

    If you already have a signal generator set up, just connect it to pin 17 on Teensy++ 2.0 and open the...
  38. Replies
    233
    Views
    24,869

    But if it's sharing anything with the other core,...

    But if it's sharing anything with the other core, waiting on semphores or mutexes or other thread synchronization would need to be one of those "nothing else" variable timing things needing to be...
  39. Teensy's Ethernet library works with W5100, W5200...

    Teensy's Ethernet library works with W5100, W5200 and W5500. Don't let the filename "w5100.cpp" scare you. If you read the source code in that file, you'll see it's filled with code which...
  40. I can't comment on the Ethernet2 library. But...

    I can't comment on the Ethernet2 library.

    But if you edit Teensy's copy of Ethernet, which is installed at {Arduino}/hardware/teensy/avr/libraries/Ethernet, you will need to replace "SPI" with...
  41. Indeed it should work up to half the sample rate....

    Indeed it should work up to half the sample rate. But the audio library gets relatively little testing at other sample rates. If you do find any bugs where it does something wrong, please mention...
  42. Use this: void setup() { ...

    Use this:



    void setup() {
    analogWriteFrequency(2, 1000000);
    analogWrite(2, 128);
    }

    void loop() {
  43. Replies
    233
    Views
    24,869

    NXP's public block diagram reveals quite a lot...

    NXP's public block diagram reveals quite a lot about the chip, and at least so far the documentation under NDA leaves a lot of be desired (or guessed). Here's that block diagram.

    21764



    ...
  44. I tested 6 of the 10 returned parts. The unused...

    I tested 6 of the 10 returned parts. The unused chips appear to be good. The soldered pulled chips are definitely bad. I don't know why.


    https://www.youtube.com/watch?v=5mbgwElpT6Y

    It's...
  45. Replies
    129
    Views
    19,562

    USBHost_t36 does not yet support most...

    USBHost_t36 does not yet support most touchscreens. Only ordinary USB mice, keyboards, joysticks / gamepads, and certain digitizers are supported. Generic HID parsing is in the library, so the hard...
  46. Replies
    15
    Views
    269

    Try adding pinMode(14, INPUT_DISABLE) at the...

    Try adding pinMode(14, INPUT_DISABLE) at the beginning of your program. Does that help at all?
  47. Replies
    129
    Views
    19,562

    The Tools > USB Type menu configures the USB...

    The Tools > USB Type menu configures the USB device mode used on the main USB port. It has absolutely no effect on the USB Host port.
  48. Could you give me some more detail about this...

    Could you give me some more detail about this circuitry? Maybe photos too? Any chance you could try with a LM317 and regular LM7805?

    If the problem only happens with L78L05, can you give me the...
  49. FlexPWM is probably a better choice for...

    FlexPWM is probably a better choice for generating quadrature waveforms. Each FlexPWM sub-module has 2 feature-rich outputs (A & B) and 1 low-feature output (X). FlexPWM has very nice buffering of...
  50. Which power supply are you using?

    Which power supply are you using?
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4