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
    4
    Views
    79

    Sparkfun's hookup guide page...

    Sparkfun's hookup guide page has many technical errors. I've exchanged several emails with them. They're planning to update it, but progress has been slow. I believe some of the delay may be that...
  2. Still have this on my list to investigate. Was...

    Still have this on my list to investigate. Was looking yesterday at how Arduino has changed platform.txt over the years...

    Before I dive into this, can you tell me which version of Arduino and...
  3. Replies
    61
    Views
    3,163

    Sticky: That is better, but still not nearly as good as...

    That is better, but still not nearly as good as the new size report.

    In particular, ITCM and DTCM are also both reported as their maximum 512K size, rather than their actual size within RAM1.
    ...
  4. Replies
    61
    Views
    3,163

    Sticky: Ivan - if you want to integrate the new size...

    Ivan - if you want to integrate the new size info, the source code is here:

    https://github.com/PaulStoffregen/teensy_size
  5. Replies
    94
    Views
    8,801

    Just to further demonstrate, you can generate a...

    Just to further demonstrate, you can generate a hard fault by causing any sort of fault inside the memory fault handler.

    Here's your minimal example extended to cause a memory fault, and then...
  6. Replies
    40
    Views
    263

    Yes, that would be really nice! As you know,...

    Yes, that would be really nice!

    As you know, I'm currently working on flash encryption, and after that I'm going to give into NativeEthernet and try to fix the server port exhaustion bug.

    But...
  7. Replies
    40
    Views
    263

    It does indeed keep up. I'm personally tested...

    It does indeed keep up. I'm personally tested this many times. You can too, without writing a single line of code. Just put this program on your Teensy
    ...
  8. Replies
    40
    Views
    263

    If you write your own software to receive USB...

    If you write your own software to receive USB serial data, the buffer size you use has a huge performance impact on Windows and Linux. To get good performance, you need to use a large buffer (32K is...
  9. Replies
    40
    Views
    263

    Does "in practice" mean actual experience using...

    Does "in practice" mean actual experience using USB virtual serial on Teensy?

    Or is "in practice" general experience with serial communication?

    We get this sometimes on this forum, where people...
  10. In Arduino, just click Tools > CPU Speed and...

    In Arduino, just click Tools > CPU Speed and choose a lower speed before you compile and upload.

    That is, if this chip works at all. Seems likely, but only testing will really confirm.
  11. Replies
    4
    Views
    91

    Looks like a corrupted install. Try the...

    Looks like a corrupted install.

    Try the simplest thing first. Reboot your PC, in case any lingering process is holding a lock on certain files. (optional) Temporarily disable Windows Defender...
  12. Email me & Robin directly. Write the message...

    Email me & Robin directly. Write the message *only* about buying a small number of those chips. Mixing business and any tech questions in the same email is a perfect way for it to "slip through the...
  13. Replies
    21
    Views
    314

    If you're on an older version, you might want to...

    If you're on an older version, you might want to update to Teensyduino 1.54 for automatic fault recovery. It can't recover from every type of crash, but it does catch a lot of the common problems...
  14. Replies
    25
    Views
    307

    Unless you get a really good price on the...

    Unless you get a really good price on the flexible PCBs (and free labor to solder them), your total cost might work out less to just use a 7th Teensy 4.1.
  15. Replies
    25
    Views
    307

    I will confirm the dimensions which are regarding...

    I will confirm the dimensions which are regarding the pads on Teensy 4.1. Other dimensions on your diagram pertain to the design choices of your project. I'm not going to get involved in those.
    ...
  16. Replies
    7
    Views
    166

    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...
  17. Replies
    7
    Views
    180

    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...
  18. Replies
    7
    Views
    180

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

    SPI.transfer(buffer, length) is used by Ethernet and other libraries. It does indeed work.
  19. 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...
  20. 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
  21. Replies
    7
    Views
    166

    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...
  22. Replies
    7
    Views
    166

    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...
  23. Replies
    7
    Views
    166

    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...
  24. 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...
  25. 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,...
  26. Replies
    7
    Views
    180

    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...
  27. Replies
    5
    Views
    376

    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...
  28. 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...
  29. Replies
    13
    Views
    164

    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.
  30. Replies
    13
    Views
    164

    Include LittleFS.h first. #include...

    Include LittleFS.h first.



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


    Or include SD.h before SdFat.h
  31. 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...
  32. 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...
  33. 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?
  34. 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...
  35. 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...
  36. 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() {...
  37. 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"...
  38. 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...
  39. Replies
    14
    Views
    301

    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...
  40. 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...
  41. 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.
    ...
  42. 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...
  43. 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...
  44. 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...
  45. 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...
  46. 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...
  47. Replies
    11
    Views
    252

    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...
  48. 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
  49. 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.
  50. Replies
    61
    Views
    3,163

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

    Yes, the USB descriptors changed to use IAD. TeensySharp will need to be updated.
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4