M
Reaction score
2

Latest activity Postings About

    • M
      @msadie Thank you very much for the explanation.
    • M
      Simon, wdt.expired(); This function returns a boolean value indicating if the LAST reset resulted from a watchdog timeout. If the last reset was due to power-on reset or software initiated reset (normal operations), this will return false. This...
    • M
      A T4 running at 600MHz can make surprisingly quick work of a car battery if the car sits for long periods (like winter storage or while on vacation). While switching the T4 on/off from a ignition signal is certainly the most straight forward...
    • M
      If your vehicle uses an "Ignition" signal wire to wake up the control modules, you could also use this to control when the Teensy is powered, instead of relying on bus traffic. However, I know some newer vehicles have reduced the use of the IGN...
    • M
      Glad you got it working. The FlexCAN module on the T4 has the capability to go into "Stop Mode" which is a system low power mode, and "Self Wake" on CAN traffic. Unfortunately, this functionality isn't currently implemented in the FlexCAN_T4...
    • M
      The 0x denotes hexadecimal notation, which is typically used for ID and Byte data. However, the decimal equivalent is equally valid. For example, ID=0x3EA is the same as if you wrote ID=1002. Therefore you can't simply drop the "0x" without...
    • M
      Yep, that's the bare minimum to create a message. If you need to shorten the data length, you can use the msg.len property. If you don't specify the length, it defaults to 8 bytes.
    • M
      I'm glad that helped. Good catch on copying the frame in the callback. Yes. enableFIFOInterrupt() instructs FlexCAN to call the callbacks you specify with onReceive(). Without that, gotFrame1() and gotFrame2() will never be processed.
    • M
      The onReceive() function can't be used to separate messages by ID, as you are trying to do. It can only be attached to mailboxes or the FIFO. In setup(), attach your callback to the FIFO like this: Can0.enableFIFO()...
    • M
      msadie reacted to strud's post in the thread 100 +/- inputs and outputs (analog?) with Like Like.
      Hi Gef Those expansion devices over I2C will not be much good at all for analog signals. They are really suitable for low speed digital IO. There are SPI versions of these devices available that can obviously increase the update bandwidth...
    • M
      msadie reacted to Tenebrae0o's post in the thread FlexCAN_T4 - FlexCAN for Teensy 4 with Like Like.
      @skpang @msadie Oh my god... Thank you so much you two. I feel really dumb for making such a mistake! I cant believe it was something so simple. I was searching for this for ages and couldnt find the sollution. I was almost sure, that I had a...
    • M
      msadie replied to the thread FlexCAN_T4 - FlexCAN for Teensy 4.
      SK Pang is correct regarding the clock. I ran your code with a MCP2558FD transceiver and Vector CANalyzer. Red lines are CLK_80MHz, black are CLK_24MHz.
      • 1709070570574.png
    • M
      Nothing in your code stands out to me as incorrect. Is the bus properly terminated with 120ohms at each end? What do you see if you scope the TX and RX lines?
    • M
      msadie replied to the thread Teensy 4.1 CAN Bus Communication.
      FWIW, you can operate CAN over very short distances without transceivers. It is absolutely critical that you use a 3.3v source instead of the 5v shown! https://www.mikrocontroller.net/attachment/28831/siemens_AP2921.pdf
  • Loading…
  • Loading…
Back
Top