Search results

  1. P

    FlexCAN_T4 - FlexCAN for Teensy 4

    The "isotp_example_send_receive.ino" calls: line 36: Can1.setClock(CLK_60MHz); I'm confused; this function is private. What am I missing? Update: I see it is only private within: FlexCAN_T4FD
  2. P

    QNEthernet and SimpleFTPServer modification

    Ah, good point. I hadn't thought that through.
  3. P

    QNEthernet and SimpleFTPServer modification

    Sounds good. I was able to get the SimpleFTPServer working well with QNEthernet and meets my needs. The following is just to document what I did in case someone else wants to try it. For some reason uploads are limited to approximately 10MB/s, and downloads 8MB/s. Maybe due to the old...
  4. P

    QNEthernet and SimpleFTPServer modification

    Thanks shawn. I'll look into just modifying the SimpleFTPServer code and using QNEthernet as-is.
  5. P

    QNEthernet and SimpleFTPServer modification

    I modified the setup files for SimpleFTPServer to work with QNEthernet, and SdExFat/ExFile. However, when downloading files, I rarely got the whole file unless the file was very small. My solution was to replace the call to file.write( buf, nb ) in bool FtpServer::doRetrieve() to...
  6. P

    I2C startup issue

    Problem resolved. I decided to shotgun the problem and just start removing components. The issue was caused by one of the daughter boards in my system. So while I don’t know the root cause yet, I plan to leave the offending board unplugged and work on higher priority parts of the system...
  7. P

    I2C startup issue

    I connected a thicker ground wire to the ground between 3.3v and 5V, then to the first ground pin on the other side, then to the another ground, one at a time with no success. Installed a new Teensy 4.1, with the same result. Measure the resistance between SCL and its pull-up and then SDA to...
  8. P

    I2C startup issue

    maybe “start up” wasn’t the right word. The issue happens at the start of every one second loop. Another thing I noticed is that SDA looks fine, only SCL has the ramping issue, as shown below:
  9. P

    I2C startup issue

    I'm using 2K pull up resistors. This simplified code exhibits the same issue, though I'm not sure it's the code (though I've been wrong before): #include <Arduino.h> #include <i2c_device.h> enum class Switch_Digital : uint16_t { Address = 0x0023, SWITCH_BATT_ENABLE_0 = 0x0001...
  10. P

    I2C startup issue

    I’m having communication errors with the first I transmission. If I immediately send the same message again it is fine. I noticed that the signal isn’t pulled down properly at first. Here is a screenshot: I’ve checked for grounding issues, and even added additional grounding with no change...
  11. P

    Project: SPI_MSTransfer

    EDIT: SPI communication is working. There may be somthing else going on non-teensy related. The warnings below sent me down the rabbit hole. SPI communication stopped working on my project, even after I reverted the code back to a known working version. I'm still troubleshooting the...
  12. P

    Teensy 4.0 hardware timers for PWM and pins

    Thanks Kurt, I'll look into it. Right now I'm generating a PWM on one timer, and reading the duty cycle on 4 independant freqencies on the 4 other pins as follows: Wheelspeed : FTM3 pin2 Input frequency 1: pin5 Input frequency 2: pin6 Input frequency 3: pin22 Input frequency 4: pin23...
  13. P

    Teensy 4.0 hardware timers for PWM and pins

    Could someone tell me how many PWM timers the Teensy 4.0 has and the respective pins? I'm looking for something like this that I got from the PWM and Tone link for the Teensy 3.6: FTM0 5, 6, 9, 10, 20, 21, 22, 23 488.28 Hz FTM1 3, 4 488.28 Hz FTM2 29, 30 488.28 Hz FTM3 2, 7, 8, 14, 35...
Back
Top