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.12 seconds; generated 47 minute(s) ago.

  1. 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...
  2. 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...
  3. 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...
  4. 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...
  5. 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...
  6. Replies
    233
    Views
    24,513

    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...
  7. 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...
  8. 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...
  9. 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...
  10. Use this: void setup() { ...

    Use this:



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

    void loop() {
  11. Replies
    233
    Views
    24,513

    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



    ...
  12. 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...
  13. Replies
    129
    Views
    19,421

    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...
  14. Replies
    15
    Views
    248

    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?
  15. Replies
    129
    Views
    19,421

    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.
  16. 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...
  17. 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...
  18. Which power supply are you using?

    Which power supply are you using?
  19. I started this some time ago as comments in pwm.c...

    I started this some time ago as comments in pwm.c

    https://github.com/PaulStoffregen/cores/blob/master/teensy4/pwm.c#L87




    Please send a pull request to add to those comments.
  20. Audio input on the ADC pins is still a work in...

    Audio input on the ADC pins is still a work in progress on Teensy 4. So far only mono exists, and it's best described as "experimental" at this point. It will eventually improve, but perhaps not...
  21. I tested on this known-good hardware. 21705 ...

    I tested on this known-good hardware.

    21705

    First I ran the Ethernet WebClient example, to check the network really was working. Indeed it is able to fetch the web page.

    Next, I ran your...
  22. Replies
    39
    Views
    3,733

    Just to repeat what I said on msg #23: ...

    Just to repeat what I said on msg #23:



    Pointing to the spec isn't enough. Please point to driver support (Linux preferred), software, and at least 1 reasonably MIDI 2.0 product.
  23. Short answer is no. That port is only meant to...

    Short answer is no. That port is only meant to run in USB host mode.

    Longer answer is the hardware can do this, but software support is lacking.
  24. This is the power supply I used to the LM7805...

    This is the power supply I used to the LM7805 input.

    21703
  25. I tried with a LM7805AC voltage regulator and...

    I tried with a LM7805AC voltage regulator and 0.1uF capacitor, but I could not reproduce this problem.

    Here's a video so you can see what I tried and how Teensy 3.2 (programmed with LED blink)...
  26. It should print much faster than most Arduino...

    It should print much faster than most Arduino boards.

    Try running this program on your Teensy, and on the Arduino board(s). What lines/sec speeds do you see on each?
    ...
  27. Maybe you could give us links to the info you've...

    Maybe you could give us links to the info you've seen? I'm personally curious to see how they managed to make an analog part work with something that isn't made for analog signals.

    This might...
  28. Replies
    9
    Views
    268

    That one looks like it should work. I'm pretty...

    That one looks like it should work.

    I'm pretty sure all of these 8MB PSRAM parts are actually made or licensed from ApMemory (APS6404L-3SQR)
  29. Replies
    8
    Views
    2,865

    Should we mention your CP/M emulator on the blog?...

    Should we mention your CP/M emulator on the blog? Usually at least 1 photo or video showing its actual usage is needed. Are there any pictures?
  30. Normally you would use 74HC4051 chips for this. ...

    Normally you would use 74HC4051 chips for this. Check out "Connecting Many Buttons & Knobs/Sliders" on the USB MIDI page.

    https://www.pjrc.com/teensy/td_midi.html
  31. Yes, you can do that with "teensy_post_compile". ...

    Yes, you can do that with "teensy_post_compile". But there isn't any documentation. To see the command line syntax, use File > Preference in Arduino to turn on verbose output while compiling and...
  32. Try measuring the Program pin while it's not...

    Try measuring the Program pin while it's not shorted to GND. A blank or defective MKL04 will leave that pin floating. A properly running MKL04 will turn on the pullup resistor inside the MKL04,...
  33. Replies
    10
    Views
    233

    Please do not omit code. In trying to make...

    Please do not omit code.

    In trying to make reading your code easier, you're erecting a huge barrier for any of us to *run* your code.
  34. First, there is no 100% reliable way to always...

    First, there is no 100% reliable way to always get your Teensy into programming mode without the pushbutton. If the code you've previously written crashes or turns off the USB port or lingers in a...
  35. Replies
    5
    Views
    175

    Here is a much simpler test program which doesn't...

    Here is a much simpler test program which doesn't depend on the SD card working and having a readable file.



    #include <Audio.h>

    AudioSynthWaveformSine sine1; //xy=181,170...
  36. Replies
    5
    Views
    175

    Another quick look... SD.begin() is also missing,...

    Another quick look... SD.begin() is also missing, so it can't actually access the SD card.
  37. Replies
    5
    Views
    175

    You're missing AudioMemory(). The audio...

    You're missing AudioMemory().

    The audio library can't actually do anything unless you give it memory to use. Open any of the examples under File > Examples > Audio to see the syntax.

    Here are...
  38. This really depends on what you consider...

    This really depends on what you consider "better". The easiest way would be to use a PoE splitter that's designed to extract the power and pass the signal on to a regular non-PoE ethernet port, and...
  39. Sadly not. This verbose info only tells us...

    Sadly not. This verbose info only tells us *what* happened but not *why* it happened. Clearly Windows waited 5 seconds before detecting the freshly rebooted Teensy 3.1. These 3 things are pretty...
  40. Replies
    6
    Views
    229

    Turning the power off while the bootloader is...

    Turning the power off while the bootloader is running should be fine.

    However, if you do this while your PC is sending new data, the final state of the flash memory will end up with wrong data. ...
  41. Replies
    5
    Views
    155

    Assuming you've installed Arduino & Teensyduino,...

    Assuming you've installed Arduino & Teensyduino, the code is already on your computer at {Arduino}/hardware/teensy/avr/cores/teensy4. Look at the files usb.c, usb_serial.c and usb_desc.c for the USB...
  42. Replies
    7
    Views
    1,116

    Yes, exactly. Inside the chip, every pin has...

    Yes, exactly. Inside the chip, every pin has built-in pullup and pulldown resistors. Or it very well may be transistor-based circuitry which acts like a resistor. But whatever technique NXP used...
  43. It can not work with the Cetus J1B1211CCD Magjack...

    It can not work with the Cetus J1B1211CCD Magjack we use on the Ethernet Kit.

    A different Magjack meant for PoE is needed. Most of them are incompatible with PoE because they include the 75 ohm...
  44. The "Transfer Followup List" is inside print.cpp...

    The "Transfer Followup List" is inside print.cpp at line 55. It's rarely used, but you can find at least 1 usage commented out at line 333 in ehci.cpp.
  45. Replies
    2
    Views
    207

    Yup, use SCB_AIRCR to cause a reboot from...

    Yup, use SCB_AIRCR to cause a reboot from software.

    And in Arduino, click Help > About to check which version of Teensyduino you have. 1.53 is the latest. Some old versions had a bug impacting...
  46. Glad the new board worked. Maybe best to start...

    Glad the new board worked.

    Maybe best to start a new thread about I2C questions. Please consider a couple ideas when you ask tech questions. 1: Explain context of what you are trying to...
  47. Turn off Auto mode in Teensy Loader and keep the...

    Turn off Auto mode in Teensy Loader and keep the window visible on your screen. Then press the button on Teensy. If everything is working, Teensy Loader should replace the normal ""Press Button on...
  48. Ok. Here's one more "easy" thing to try, before...

    Ok. Here's one more "easy" thing to try, before the very difficult work of diving into the details.

    Uncomment this line in ehci.cpp.


    //USBHS_PORTSC1 |= USBHS_PORTSC_PFSC; // force 12...
  49. Just to make sure I understand this... ...

    Just to make sure I understand this...



    Seems like you're using MG-300 fails the same way when connected with any of the 3 hubs you mentioned? This is a very important point to know. If any...
  50. Replies
    15
    Views
    448

    Just in case there's any confusion, MQS and SPI...

    Just in case there's any confusion, MQS and SPI are completely unrelated, other than they happen to both be options on the same pins.

    Each pin has a mux which allows it to be controlled by 1 of...
Results 1 to 50 of 497
Page 1 of 10 1 2 3 4