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.

  1. Replies
    7
    Views
    84

    Letting the serial driver code control DE gives...

    Letting the serial driver code control DE gives probably accurate timing.

    If the transmitter turns off too soon, it could cause the outgoing message to be truncated slightly and maybe the other...
  2. Replies
    7
    Views
    127

    My guess is you're not dealing with the fact that...

    My guess is you're not dealing with the fact that SPI.transfer(buffer, length) overwrites the buffer with whatever is received on the MISO pin. Of course that's just guesswork since you only showed...
  3. Replies
    7
    Views
    127

    SPI.transfer(buffer, length) is used by Ethernet...

    SPI.transfer(buffer, length) is used by Ethernet and other libraries. It does indeed work.
  4. Honestly, I don't know. I haven't tested those...

    Honestly, I don't know. I haven't tested those chips. There's a chance they may work. If they don't work, no support will be added for them, so best to build just 1 or 2 boards if you want to take...
  5. You will need this chip to make a DIY board...

    You will need this chip to make a DIY board that's compatible with Teensy 4.0 or 4.1.

    https://www.pjrc.com/store/ic_mkl02_t4.html
  6. Replies
    7
    Views
    84

    While I don't have a modbus device here, I did...

    While I don't have a modbus device here, I did connect my oscilloscope. Here's the waveforms I see on pins 1 and 2.

    25429

    I tried changing the code to use the automatic DE pin support in...
  7. Replies
    7
    Views
    84

    Ah, ok. Got the library installed. Running it...

    Ah, ok. Got the library installed.

    Running it with no hardware connected indeed is slow. Looks like it's waiting 2 seconds, due to this line in ModbusMaster.h.



    // Modbus timeout...
  8. Replies
    7
    Views
    84

    Only once per second is incredibly slow! I...

    Only once per second is incredibly slow!

    I tried coping your code into Arduino to see if I could do anything to reproduce the problem, but it seems your code in msg #1 isn't a complete program I...
  9. Any chance temperature is a factor? Maybe try a...

    Any chance temperature is a factor? Maybe try a couple box fans blowing air or running in a room with AC turned on high... not necessarily as a solution, but just to experiment whether temperature...
  10. Perfectly fine to ask about MicroMod Teensy here....

    Perfectly fine to ask about MicroMod Teensy here. It is officially a Teensy board and uses the Teensyduino software.

    The main etiquette I would urge, not just about MicroMod but with everything,...
  11. Replies
    7
    Views
    127

    I would like to try this, but I don't understand...

    I would like to try this, but I don't understand "When I reset the slave device".

    Can you be more specific about exactly which SPI device you have connected, and exactly what you're doing to...
  12. Replies
    5
    Views
    344

    If you need just a few MK20 chips for prototypes,...

    If you need just a few MK20 chips for prototypes, email me directly. I have about dozen chips left.

    NXP is definitely still making this part. I believe we're due to get more in September, and of...
  13. I see "version=1.52" in the verbose info log. ...

    I see "version=1.52" in the verbose info log. Maybe give 1.54 a try?

    Teensyduino 1.54 did fix a long-standing issue with use of volatile on the USB buffer descriptor table, possibly affecting all...
  14. Replies
    13
    Views
    120

    I don't have 100% certain answers to all these...

    I don't have 100% certain answers to all these questions, but here's a quick try....




    Both use SPI in some configurations, but not in others.
  15. Replies
    13
    Views
    120

    Include LittleFS.h first. #include...

    Include LittleFS.h first.



    #include <LittleFS.h>
    #include <SdFat.h>


    Or include SD.h before SdFat.h
  16. If you really want to dive into the USB code,...

    If you really want to dive into the USB code, look for these lines in {Arduino}/hardware/teensy/avr/cores/teensy4/usb_serial.c



    #define TX_NUM 4
    #define TX_SIZE 2048 /* should be a multiple...
  17. Ok. I'm not going to put more time into this...

    Ok. I'm not going to put more time into this (unless a reproducible test program is posted).

    But I will quickly mention a common problem when code works with one optimization but fails with...
  18. I'm confused. Does the code on msg #11...

    I'm confused. Does the code on msg #11 behave differently when compiled with different optimization? Or does that statement only apply to the large program we can't see?
  19. Yes, please do. Would also be good if the...

    Yes, please do.

    Would also be good if the filter matched against the short names, if that's feasible?

    Please understand I'm currently working on flash encryption support, so not keeping up with...
  20. If you believe the problem is with the serial...

    If you believe the problem is with the serial code in Teensyduino 1.54, you need to craft a test program to demonstrate the problem. You may have indeed found an obscure bug. But as you can see in...
  21. For one more quick Serial1.flush() test, I added...

    For one more quick Serial1.flush() test, I added digitalWrite to pin 13, to check whether it really is waiting until the last stop bit is transmitted.

    Here's the code I ran:



    void setup() {...
  22. You said in msg #5 your use has "no half duplex"....

    You said in msg #5 your use has "no half duplex". In msg #3, I tested the 1.54 with USBtoSerial example (which uses ordinary full duplex) on Teensy LC. I typed words in Arduino and clicked "Send"...
  23. Closest thing might be the ARM DWT cycle counter....

    Closest thing might be the ARM DWT cycle counter. You can read it at any time to get a 32 bit count of the number of cycles since started. Not sure if that can be used to detect when 2 interrupts...
  24. Replies
    14
    Views
    265

    Update to version 1.54. Frank fixed a bug...

    Update to version 1.54.

    Frank fixed a bug where we had overlapping MPU regions which caused some programs to experience a 1.7 second stall. Difficult to say if that's really the cause of the lags...
  25. All sockets have an expected number of usage...

    All sockets have an expected number of usage cycles before they wear out. If you repeatedly unplug and reconnect the board, I'm sure M.2 will wear out too.

    If you leave it connected, I can't see...
  26. And just to answer the original question, this...

    And just to answer the original question, this commit is the only change on Teensy LC hardware serial since 2018.
    ...
  27. Yes. But some minor wiring work is needed for...

    Yes. But some minor wiring work is needed for the 2nd audio shield, to give it a unique I2C address and to route its I2S data lines to different pins. One of those alternate pins is on the back...
  28. I tested 1.54 just now with File > Examples >...

    I tested 1.54 just now with File > Examples > Teensy > USB_Serial > USBtoSerial and a FTDI TTL level USB serial cable connected to pins 0 & 1. Seems to work fine.

    25371




    If you want me...
  29. Would you share the MicronetToNMEA.ino.elf file? ...

    Would you share the MicronetToNMEA.ino.elf file? Then I could try to reproduce the error here.

    You'll probably need to put it into a zip archive to post it here. If using "Quick Reply", click...
  30. No, definitely not. There is currently no...

    No, definitely not.

    There is currently no support at all for 8MB PSRAM on the audio shield. Even if it were added, RAM performance over single bit SPI is slow and doesn't work as normal memory...
  31. No Teensy models past Teensy 2.0 and Teensy++ 2.0...

    No Teensy models past Teensy 2.0 and Teensy++ 2.0 work "out of the box" with hid_listen.

    In the very early days of Teensy, like 2008 to early 2009, development focused on use of command line tools...
  32. Replies
    11
    Views
    232

    Maybe it's just the limited resolution of the...

    Maybe it's just the limited resolution of the images, but the PCB looks to have extremely small vias with close to zero annular ring. If that's really the case, even very slight drill misalignment...
  33. You can also get adjustable frequency from the...

    You can also get adjustable frequency from the hardware PWM pins, using analogWriteFrequency() and analogWrite(). Details here:

    https://www.pjrc.com/teensy/td_pulse.html
  34. The easy way is to use the Teensy Audio library...

    The easy way is to use the Teensy Audio library, which is 16 bits, 44.1 kHz sampling. If you only wanted 8 bits, just discard the low 8 of 16 bits.
  35. Replies
    46
    Views
    2,615

    Sticky: Yes, the USB descriptors changed to use IAD. ...

    Yes, the USB descriptors changed to use IAD. TeensySharp will need to be updated.
  36. Replies
    11
    Views
    232

    Oh, yeah, that'll sure keep the crystal from...

    Oh, yeah, that'll sure keep the crystal from oscillating. The schematic says you used 12 pF.

    The chip has built in capacitors which are configured for a crystal in the 8-10pF range. So unless...
  37. Replies
    11
    Views
    232

    If you short the Program signal to GND (the same...

    If you short the Program signal to GND (the same as holding the button on a Teensy 3.2), does the bootloader chip pull Reset low?
  38. I've edited the tech specs table. Just dropped...

    I've edited the tech specs table. Just dropped the "A", as it doesn't seem like essential info for comparing the specs.
  39. Replies
    2
    Views
    75

    No, definitely not. The 3.5mm jack on the audio...

    No, definitely not. The 3.5mm jack on the audio shield is an output. You can't use it as an input, for a mic or any other type of signal. It's strictly an output.

    You might be able to use it...
  40. The range is 0 to 100. A code change to the...

    The range is 0 to 100.

    A code change to the definition of AUDIO_SAMPLE_RATE (making it a float) ends up promoting the entire calculation to float on all boards except Teensy LC.




    Maybe...
  41. Replies
    46
    Views
    2,615

    Sticky: I see the contents of file.htm printing to the...

    I see the contents of file.htm printing to the serial monitor in your screenshot, so I'm pretty sure the SD library is correctly reading that file.

    Which browser are you using? What version? I...
  42. I've updated the Teensy 4.1 schematic for the B...

    I've updated the Teensy 4.1 schematic for the B chip. I believe the schematic is the only place with the "A" chip is actually mentioned, right?

    On Teensy 4.0 we're still shipping boards with the...
  43. Replies
    46
    Views
    2,615

    Sticky: Yeah, I fiddled with the http header and other...

    Yeah, I fiddled with the http header and other stuff when first starting to investigate this. Really should have put that back as it was. But I'll admit, most of my effort was looking at whether we...
  44. Replies
    25
    Views
    1,326

    The relatively old compiler still works quite...

    The relatively old compiler still works quite well. It may be lacking some newer C++ features and may miss a few optimizations in -03 mode, but we know it works and gives very stable results. A...
  45. Might be bugs, might be misunderstanding, might...

    Might be bugs, might be misunderstanding, might be something simple. Who knows?

    If you're stuck and want help, please put your effort into trimming the code down to a reasonably small program...
  46. Replies
    25
    Views
    1,326

    I can comment on this, but it's not going to be...

    I can comment on this, but it's not going to be the answer you want.

    My 2 top priorities are flash encryption and debugging NativeEthernet. Both are large, daunting projects. I'm not even going...
  47. How did you evaluate memmove() speed? And which...

    How did you evaluate memmove() speed? And which Teensy are you using?

    Correctly measuring the timing can be tricky. First you need the source buffer filled with data the compiler can not...
  48. You don't need the audio shield, but you must...

    You don't need the audio shield, but you must have at least 1 hardware input or output, other than USB. The input & output objects have "update responsibility" which causes the entire audio library...
  49. Replies
    46
    Views
    2,615

    Sticky: I ran your program here. I could not get it to...

    I ran your program here. I could not get it to work on either Arduino 1.8.13 + Teensyduino 1.53 or Arduino 1.8.15 + Teensyduino 1.54.

    The main problem is the "while (client.connected()) {" loop. ...
  50. I'm reluctant to speak for Sparkfun. Even if I...

    I'm reluctant to speak for Sparkfun. Even if I did have some insight, the situation can change rapidly.

    But I can speak for PJRC. I can tell you we put a 1st moderately sized batch of Teensy 4.1...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4