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

    I'm going to bring the smalloc files into the...

    I'm going to bring the smalloc files into the core library. I see you tried to contact the author a couple weeks ago.

    https://github.com/electrorys/smalloc/issues/1

    Since the repository hasn't...
  2. I'm disabling the printf format warnings, at...

    I'm disabling the printf format warnings, at least for Teensyduino 1.54

    https://github.com/PaulStoffregen/cores/commit/ba177b0d22d8974b43c65753a710e54a4979eb7c

    Will reconsider after we've...
  3. Replies
    25
    Views
    677

    Unofficially of course, the code is pretty...

    Unofficially of course, the code is pretty unlikely to change.
  4. Replies
    10
    Views
    202

    If you do need to use Windows XP, Vista, 7 or 8,...

    If you do need to use Windows XP, Vista, 7 or 8, we have a small stand-alone driver installer on the download page.

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

    Look for "Windows Serial...
  5. Replies
    10
    Views
    202

    The "driver" install is only needed on Windows...

    The "driver" install is only needed on Windows 8.1 and earlier.

    Windows 10, Linux and Macintosh have all needed drivers built in.
  6. Replies
    42
    Views
    963

    Turns out this optimization makes only a small...

    Turns out this optimization makes only a small improvement.

    Here's a little test program which transmits 12 bytes at 33 Mbit/sec.



    #include <SPI.h>

    void setup() {
    SPI.begin();
  7. Replies
    42
    Views
    963

    Yes, byte order is an issue. But I also made a...

    Yes, byte order is an issue.

    But I also made a silly mistake of not converting byte count to word count. Doh!
    ...
  8. Replies
    42
    Views
    963

    I tried making use of the SPI 16 and 32 bit block...

    I tried making use of the SPI 16 and 32 bit block transfer functions. The Ethernet library fails to run if they're used.

    Can anyone see a mistake?
    ...
  9. Replies
    42
    Views
    963

    Thanks for testing! Hopefully we will finally...

    Thanks for testing!

    Hopefully we will finally have a map() function that meets all expectations.
  10. In the late 1990s I went to hear a talk by Bob...

    In the late 1990s I went to hear a talk by Bob Pease, who is kind of a personal hero of mine. I probably never would have become reasonably proficient with analog circuitry if were not for the many...
  11. Replies
    10
    Views
    202

    To get started, I'd recommend you use Arduino to...

    To get started, I'd recommend you use Arduino to program something like this onto your Teensy LC.



    void setup() {
    }

    void loop() {
    if (Serial.available()) {
    char c = Serial.read();
  12. analogRead(13) technically means to try to read...

    analogRead(13) technically means to try to read voltage on pin 13. But pin 13 is digital only. It don't have analog input capability.

    Very early versions of Arduino used plain numbers 0 to 5,...
  13. Replies
    4
    Views
    141

    I believe these lines are likely the problem. ...

    I believe these lines are likely the problem.



    error = Wire.endTransmission();
    error = Wire1.endTransmission(); // and here

    Results from Wire1 activity are immediately...
  14. For numbers already built in, you can use the 24...

    For numbers already built in, you can use the 24 bit serial number PJRC writes into the "program once" memory, or you can use the 128 unique number NXP puts into the chip.

    For NXP's unique number,...
  15. Use analogRead(A17), not analogRead(17).

    Use analogRead(A17), not analogRead(17).
  16. Replies
    42
    Views
    963

    I should have mentioned, another property some...

    I should have mentioned, another property some people are expecting is identical result for "reverse" mapping.

    In other words, ideally these should give the same result for all inputs:

    map(x,...
  17. Replies
    42
    Views
    963

    I'm not eager to extend the SPI library public...

    I'm not eager to extend the SPI library public API this way, so as written, no, probably not.

    But I would be happy to merge this if it didn't change the public API. Maybe some trickery with...
  18. Replies
    42
    Views
    963

    Has anyone looked at the new map() function yet?...

    Has anyone looked at the new map() function yet?

    Several issues were reported on these 2 threads:

    https://forum.pjrc.com/threads/63230-map()-returns-different-values-on-arduino-vs-teensy
    ...
  19. Yes, "annoying" and "pedantic" are exactly the 2...

    Yes, "annoying" and "pedantic" are exactly the 2 words I would use.

    My current thinking is this feature does more harm than good and we should probably not use it (for a non-beta release) until a...
  20. Replies
    42
    Views
    963

    I've never heard of this syntax either. ...

    I've never heard of this syntax either.




    This thread.
    https://forum.pjrc.com/threads/62473-Adding-Print-class-printf()-format-string-vs-arguments-checking
  21. Replies
    9
    Views
    251

    Normally SPI isn't used over cables. It's really...

    Normally SPI isn't used over cables. It's really meant for connecting chips together on a circuit board over relatively short distance.
  22. Replies
    9
    Views
    830

    I gave this a shout-out on Twitter. ...

    I gave this a shout-out on Twitter.

    https://twitter.com/PaulStoffregen/status/1319980995202879489
  23. Replies
    29
    Views
    1,125

    Sorry I missed your email. It wasn't you. I'm...

    Sorry I missed your email. It wasn't you. I'm just bad at email....
  24. Having talked about rationale and tech, I'd like...

    Having talked about rationale and tech, I'd like to address the philosophical points and directly answer your questions.

    First, I want to politely disagree with the "stuff seems to be increasingly...
  25. Now, about the tech side.... First, let me...

    Now, about the tech side....

    First, let me assure you that if you were to sign a NDA with NXP and obtain the security manual, I'm confident you'd find the whole thing pretty underwhelming. I did....
  26. This kinda does come off as quite a rant. But...

    This kinda does come off as quite a rant. But yeah, I get your viewpoint. Any sort of secret documentation feels pretty bad. On a personal level, I really don't like it either.

    Obviously I...
  27. Replies
    41
    Views
    861

    I'm uploading 1.54-beta2 right now, but it's...

    I'm uploading 1.54-beta2 right now, but it's going very slowly. Looks like my ISP is severely throttling. ETA is looking like 2 hours to get it all uploaded.
  28. Replies
    41
    Views
    861

    Yes, so much to do. But right now I'm packaging...

    Yes, so much to do. But right now I'm packaging up 1.54-beta2, so we can have a much better starting point.

    I considered bringing the static malloc stuff into the core library, and will probably...
  29. Replies
    8
    Views
    296

    Much of the work in ILI9341_t3 started in various...

    Much of the work in ILI9341_t3 started in various optimized copies of ST7735. Of course all are built on top of Adafruit's work and generally follow their GFX API, though probably not much of...
  30. Replies
    41
    Views
    861

    Added....

    Added.
    https://github.com/PaulStoffregen/cores/commit/ea276ee57a364306562452fef42d3815fb2fbb59




    Updated Bounce2.
  31. Replies
    41
    Views
    861

    I'm pretty sure this will be the official fix. ...

    I'm pretty sure this will be the official fix.

    https://github.com/PaulStoffregen/cores/commit/a2246a5a0278a93877219e219907b79b34ecfc39

    Any chance you could edit your copy of startup.c to delete...
  32. Whether anything is wrong on the Teensy side, I'm...

    Whether anything is wrong on the Teensy side, I'm not 100% sure. I was able to find lots of cases where the Linux / Ubuntu / Gnome experience is confusing & frustrating. My gut feeling is these...
  33. I tried to create a screencast demo with the USB...

    I tried to create a screencast demo with the USB mic, but reprogramming Teensy causes my Linux machine to sometimes automatically switch the audio input from the USB mic to Teensy's silent incoming...
  34. I tried plugging that USB mic into a USB3 hub,...

    I tried plugging that USB mic into a USB3 hub, and apparently my PC can't see it at all through that hub. Grrr...

    I crawled under my desk and plugged the mic into a USB controller card I have in...
  35. I tried to reproduce this problem today, using...

    I tried to reproduce this problem today, using the code in msg #4 and Ubuntu 18.04, running on Teensy 4.1 and an audio shield connected to a monitor speaker.

    At first it seemed like Audio wasn't...
  36. Replies
    41
    Views
    861

    I'm pretty sure these problems are due to...

    I'm pretty sure these problems are due to not-so-robust parsing of symbol table data, and lack of error detection. I'd recommend adding a boolean for each item which defaults to false. Set each...
  37. If you expand this to all 3 hardware serial...

    If you expand this to all 3 hardware serial ports, and if all 3 could be expected to have sustained running at nearly max MIDI bandwidth, using Teensy LC you might need to be mindful of how much...
  38. Replies
    4
    Views
    143

    Yes. I believe that tutorial will work with...

    Yes. I believe that tutorial will work with Teensy in place of the Arduino Uno, but only if you have programmed your Teensy with the USBtoSerial sketch (or similar code).

    In Arduino, first select...
  39. Definitely don't use SoftwareSerial. It barely...

    Definitely don't use SoftwareSerial. It barely even works for just 1 instance, and when it does it hogs up the CPU which tends to make everything else perform quite badly.

    From everything you've...
  40. Replies
    21
    Views
    7,118

    Teensyduino 1.54-beta1 has the new & improved...

    Teensyduino 1.54-beta1 has the new & improved map() which hopefully solves all these problems.

    https://forum.pjrc.com/threads/63997-Teensyduino-1-54-Beta-1

    If anyone is still watching this...
  41. Teensyduino 1.54-beta1 has the new & improved...

    Teensyduino 1.54-beta1 has the new & improved map() which hopefully solves all these problems.

    https://forum.pjrc.com/threads/63997-Teensyduino-1-54-Beta-1

    If anyone is still watching this...
  42. Replies
    41
    Views
    861

    Even stranger, adding a single nop instruction...

    Even stranger, adding a single nop instruction *later* in ResetHandler also makes Teensy 4.1 work!

    Very mysterious......
  43. Replies
    41
    Views
    861

    Ugh, this makes no sense to me.... But adding...

    Ugh, this makes no sense to me....

    But adding a single nop instruction at the beginning of ResetHandler (without the vector_table array in bootdata.c) also fixes the problem with Teensy 4.1.
  44. Replies
    41
    Views
    861

    Likewise, NOW is the moment to bring up any issue...

    Likewise, NOW is the moment to bring up any issue you believe I might be able to fix quickly, like tonight only.

    If I can't reproduce a problem within 5 minutes, I definitely will not work on it...
  45. Replies
    41
    Views
    861

    Can you give me a link to the forum thread with...

    Can you give me a link to the forum thread with that exact same program? And clear / quick way to test (ideally with Linux)?

    Looks like I messed with Teensy 4.1 with the last minute HAB changes,...
  46. Maybe your search was case sensitive? It appears...

    Maybe your search was case sensitive? It appears on page 986 in all caps. You can see "SYSTICK" appears twice in the 13.3.2.1 screen grab I posted on msg #3 above.

    But as I mentioned earlier,...
  47. Normally WAV files are just raw audio data with a...

    Normally WAV files are just raw audio data with a small metadata header. If you know the data is 16 bits and stereo or mono, and if you don't mind a small glitch sound, you can just play the entire...
  48. Replies
    25
    Views
    677

    Officially, no news yet. Unofficially, good...

    Officially, no news yet.

    Unofficially, good guesswork. ;)
  49. Replies
    1
    Views
    111

    This might be simpler than trying to port NXP's...

    This might be simpler than trying to port NXP's code.

    https://github.com/WMXZ-EU/USB2
  50. Probably best to try using a different PC at this...

    Probably best to try using a different PC at this point. First check if the other PC detects the Teensy that's been programmed with this PC. Then use Arduino on that machine to reprogram it. If it...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4