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

  1. Yes, looks like the C library is defining y0(),...

    Yes, looks like the C library is defining y0(), y1(), yn(), j0() and other functions with global scope.

    https://www.gnu.org/software/libc/manual/html_node/Special-Functions.html

    These names can...
  2. Replies
    8
    Views
    129

    Many people have reported both of these parts to...

    Many people have reported both of these parts to work.
  3. Maybe first re-heat the 8 solder connections? ...

    Maybe first re-heat the 8 solder connections? Apply liquid flux, if you have any. Don't be shy about leaving your soldering iron in contact for several seconds, since you can't make the chip any...
  4. That's the purpose of volatile. It forces code...

    That's the purpose of volatile. It forces code to actually read the variable, so you *can* change it in the ISR and have your program detect the change.

    Without volatile the compiler makes a lot...
  5. Cortex-M7 has a 32K data cache. To properly test...

    Cortex-M7 has a 32K data cache. To properly test the PSRAM, you need to flush and delete the cached data with arm_dcache_flush_delete(address, size). See the memory test program for an example.
    ...
  6. Microsoft loves their Windows Registry, so much...

    Microsoft loves their Windows Registry, so much that they cache USB device detection into and pull it from the registry and use that cached info, even when it's just been freshly read from the USB...
  7. Replies
    4
    Views
    137

    The test fixtures we use for testing each Teensy...

    The test fixtures we use for testing each Teensy do this by driving all (or almost all) the pins with a shift register. Resistors are used between the shift register outputs and Teensy pins. Some...
  8. Agreed, you need to solder the connections to the...

    Agreed, you need to solder the connections to the switches.

    I still recommend running File > Examples > Teensy > USB_Keyboard > Buttons simply to test the hardware using known-good software.
    ...
  9. Yes, absolutely, we see this sort of thing all...

    Yes, absolutely, we see this sort of thing all the time. It can be very difficult to know whether a problem is caused by hardware or software when you're creating both.

    One way to troubleshoot...
  10. Replies
    18
    Views
    305

    Any chance you could explain how to run this...

    Any chance you could explain how to run this test?

    What are those plots? Are they from a logic analyzer or USB oscilloscope? Is that the voltage on pin 13? Or are you collecting data somehow...
  11. If that hardware is still connected, remove...

    If that hardware is still connected, remove everything from the Teensy 3.6 except the USB cable.

    If it's still not responding, try measuring the voltage at VIN (which should be approx 5V if USB...
  12. This library is using the FTM1 timer. For...

    This library is using the FTM1 timer. For documentation on FTM1 on Teensy 3.2, you need the MK20DX256 manual. Get it here:

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

    The 2 registers which...
  13. Replies
    4
    Views
    387

    Yes, I will admit, my concern about bottom side...

    Yes, I will admit, my concern about bottom side pads & signal integrity was overly conservative. Several other decisions that went into Teensy 4.0 could probably also, in hindsight, be considered on...
  14. Usually these sorts of strange noise problems are...

    Usually these sorts of strange noise problems are a "ground loop". Usually there is another connection, like to an amplifier, where some of the power supply current unintentionally flows through...
  15. Replies
    4
    Views
    147

    Maybe the wires aren't connected properly? Or...

    Maybe the wires aren't connected properly? Or maybe there's a mistake somewhere in your program? All it would take is one "Serial4" not changed to "Serial7", sort of like how your message has...
  16. Yes. With the audio library you can generate...

    Yes. With the audio library you can generate many different sounds and combine them with mixers.

    To see how, check out this 31 page tutorial on the audio library.
    ...
  17. Maybe this? ...

    Maybe this?

    https://www.digikey.com/product-detail/en/mill-max-manufacturing-corp/350-10-114-00-006000/ED6864-14-ND

    or this?
    ...
  18. Replies
    3
    Views
    146

    Bill's SdFat library might be able to give you...

    Bill's SdFat library might be able to give you the required sequential write speed. But it's quite a bit more complicated to use than the normal SD lib.

    As for external RAM size, today 8MB chips...
  19. Well, at least it didn't take a lot of work to...

    Well, at least it didn't take a lot of work to try it. When I added -felide-constructors many years ago (around Arduino 0019, when String was added), there were a couple cases where...
  20. I'm afraid the only solution might be the...

    I'm afraid the only solution might be the difficult task of trimming your code.

    But one easy thing you might try is editing boards.txt. Look for this line:

    ...
  21. To quickly answer your questions... The...

    To quickly answer your questions...




    The array index is independent of the type of array's actual data. You can have an array of float or an array of a struct. Regarding the index, the...
  22. Thanks. I've put this on my high priority issue...

    Thanks. I've put this on my high priority issue list. Hope to look into it this weekend.
  23. Replies
    19
    Views
    388

    While the language in this image is a bit strong,...

    While the language in this image is a bit strong, as someone who lives in the outskirts of the greater Portland area and personally knows some of the protesters, I can confirm it really does...
  24. Wow, maybe this is a previously unknown & elusive...

    Wow, maybe this is a previously unknown & elusive bug?!

    Can I talk you into sharing the compiled .elf and .hex files for both the Teensy 4.0 and Teensy 3.6? That will let me try it here on Ubuntu...
  25. Another guess... maybe the software analysis is...

    Another guess... maybe the software analysis is configured incorrectly. Maybe it's looking at the data waveform during the falling edge rather than at the rising edge?

    Together with (assuming)...
  26. I tried running your code here on a Teensy 4.1. ...

    I tried running your code here on a Teensy 4.1. Here's what my scope sees:

    21189

    The 82 80 result is very consistent.

    Admittedly, I connected this quickly on a breadboard with a few inches...
  27. What equipment are you using to make these...

    What equipment are you using to make these measurements? Those images look more like a logic analyzer than any oscilloscope I've ever seen!

    I loaded your first image into an editor, so I could...
  28. In the short term, I'm aiming for a much lower...

    In the short term, I'm aiming for a much lower goal... just to make the File class from SD into a base class which can be shared among libraries.

    Years ago I started a redesign of the SD library. ...
  29. Replies
    2
    Views
    132

    Teensy 4.1 has plenty of PWM pins, so you can...

    Teensy 4.1 has plenty of PWM pins, so you can probably just use 8 of those. Just use analogWrite(pin, value) to control them, perhaps with something like elapsedMillis in loop() or IntervalTimer to...
  30. RS485 does sound like a pretty good approach. If...

    RS485 does sound like a pretty good approach. If using the CAT5 cables, you might have one pair for bidirectional data and perhaps dedicate a pair for a simple unidirection pulse from the server to...
  31. My general feeling about whitespace (expect...

    My general feeling about whitespace (expect Python) is usually to leave well enough alone, especially if the code has already been widely shared.

    Personally I try to keep everything within a 100...
  32. Replies
    14
    Views
    595

    I'm been debating whether to keep private...

    I'm been debating whether to keep private messages enabled. Looking for feedback on this. Please share your thoughts. Is PM valuable?

    The main problem with PMs is spam. With normal public...
  33. Replies
    14
    Views
    595

    I sure hope it does. I *really* want quick &...

    I sure hope it does. I *really* want quick & easy pasting of pictures. vBulletin makes such a simple thing way too complicated.





    FWIW, vBulletin also came with many annoying features...
  34. The links and files and other details mentioned...

    The links and files and other details mentioned in this answer are for Teensy 3.6.

    Edit WireKinetis.cpp if you want to control the clock speed settings.

    For documentation about the "F"...
  35. Replies
    2
    Views
    142

    I tried ShiftPWM using its "ShiftPWM_RGB_Example"...

    I tried ShiftPWM using its "ShiftPWM_RGB_Example" and the test hardware I built years ago with six 74HC595 chips and RGB LEDs.

    I had the edit the example like this to make it compile.



    ...
  36. Can you show us photos and details of the...

    Can you show us photos and details of the hardware you're actually using?

    This code is complex and honestly, I can't follow what is it doing and I can't understand your explanation of what you...
  37. Addresses 0 to 7 are supposed to be broadcast...

    Addresses 0 to 7 are supposed to be broadcast addresses which all I2C chips hear. So if you have any other I2C devices connected, I would imagine address 0 could cause issues.

    I'm also struggling...
  38. From msg #2 in this thread: And from msg...

    From msg #2 in this thread:




    And from msg #3:
  39. Was this Teensy 4.1 purchased directly from PJRC,...

    Was this Teensy 4.1 purchased directly from PJRC, or through a distributor?

    If it came directly from us, please email me or Robin with the 6 digit order number and a link to this forum thread. If...
  40. Some defines come from the command line and...

    Some defines come from the command line and others are a result of including headers. Including Arduino.h gives you everything. Other headers might or might not.

    You can tell which are from the...
  41. Can you show us photos of this problematic Teensy...

    Can you show us photos of this problematic Teensy 4.1?
  42. I'm afraid I'm out of guesses. I don't know...

    I'm afraid I'm out of guesses. I don't know MacOS (or BSD Unix) well enough to suggest anything else.
  43. Replies
    3
    Views
    162

    You can also use the DC object...

    You can also use the DC object to create a constant signal and then feed it and a normal waveform into a mixer to add them together. So if the waveform is a low frequency sine wave with amplitude of...
  44. Shorted power is almost always somewhere other...

    Shorted power is almost always somewhere other than the regulator, but the regulator gets hot because it is trying to deliver maximum current into the short.




    All sorts of problems and...
  45. Try running File > Examples > Wire > Scanner to...

    Try running File > Examples > Wire > Scanner to check that you have the correct I2C address.
  46. Yes, local variables with simple types (eg, not...

    Yes, local variables with simple types (eg, not pointers) within the interrupt function do not need to be volatile.

    But using volatile isn't really harmful. It just makes your code run slower,...
  47. Wow, an awk script. Haven't seen one of those in...

    Wow, an awk script. Haven't seen one of those in a very long time!
  48. I believe we do have some long-standing bugs in...

    I believe we do have some long-standing bugs in the timer code. Maybe those are playing a role in this problem? Very difficult to know.

    Any chance you could try to create a small host and small...
  49. I would answer with a qualified "yes". The usage...

    I would answer with a qualified "yes". The usage you have shown should be safe, and most normal uses of analogWrite inside an interrupt should work.

    But there are not-so-normal cases that may not...
  50. Replies
    5
    Views
    161

    Teensy 2.0 uses several folders, 1 for each USB...

    Teensy 2.0 uses several folders, 1 for each USB type. So if you're using USB serial, look in {Arduino}/hardware/teensy/avr/cores/usb_serial.

    Starting with Teensy 3.0 the code was made more...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4