Search results

  1. skpang

    FlexCAN_T4 - FlexCAN for Teensy 4

    Your sketch does not transmit any CAN frame. You have not setup the mailbox correctly. Follow the example sketch : mailbox_filtering_example_with_interrupts.ino Can0.begin(); Can0.setBaudRate(250000); Can0.setMaxMB(NUM_TX_MAILBOXES + NUM_RX_MAILBOXES); for (int i = 0; i<NUM_RX_MAILBOXES...
  2. skpang

    Teensy 4.0 CAN2 (CRX2/CTX2) Not Working

    The second sketch works. It can display the frames from can1 and can2. Check your wiring. Make sure you have two 120R terminator on each end of your CAN network. Using a scope, check you can see pulses on pin CRX2 of the Teensy.
  3. skpang

    Teensy 4.0 CAN2 (CRX2/CTX2) Not Working

    Your second sketch works fine. I can see printf from can1 and can2 like this: CAN1 MB: 0 ID: 0x65 EXT: 0 LEN: 8 DATA: 85 52 66 50 50 86 87 89 TS: 869 CAN1 MB: 0 ID: 0x65 EXT: 0 LEN: 8 DATA: 85 52 66 50 50 86 87 89 TS: 30325 CAN1 MB: 0 ID: 0x65 EXT: 0 LEN: 8 DATA: 85 52 66 50 50 86...
  4. skpang

    Teensy 4.1 CAN pin question

    Yes, you can use can3 in Classic CAN mode.
  5. skpang

    SparkFun To Manufacture Teensy

    Sparkfun have the T4.1 in stock now. Just placed an order with them.
  6. skpang

    SparkFun To Manufacture Teensy

    I wonder if there is a way to tell the new Teensy is manufactured by Sparkfun ? It would be useful to know.
  7. skpang

    CANopenNode on Teensy 4.1

    I've attempted to port CANopenNode to Teensy but failed. Couldn't get the directory structure and search path to compile on the Arduino IDE. I did managed to get CANopenNode STM32 example to compile and working. Tested with CANopen Magic.
  8. skpang

    SparkFun To Manufacture Teensy

    News made it on to Electronics Weekly: https://www.electronicsweekly.com/news/products/bus-systems-sbcs/arduino-compatible-teesny-cortex-m7-dev-boards-now-made-by-sparkfun-2025-03
  9. skpang

    SparkFun To Manufacture Teensy

    Sparkfun offer cheaper shipping so that is good news. I wish they will offer an option of no printed card. The Teensy I buy will into a board that I sell and I don't need the printed card. I've got thousands of printed cards that go into the recycle bin.
  10. skpang

    Which CAN library to use for Teensy 4.1

    Best to use FlexCAN_T4.h CAN1 and CAN2 are the same. CAN3 has FD capability.
  11. skpang

    CAN communication using Teensy 4.1 for Cubemars Motor AK70-10(HELP NEEDED)

    Yes, you can use a level shifter but your Teensy 4.1 might have already been damaged if you applied 5v to its input. Try to use CAN1 or CAN2 instead of CAN3.
  12. skpang

    CAN communication using Teensy 4.1 for Cubemars Motor AK70-10(HELP NEEDED)

    The MCP2551 is a 5v device with a 5v on the logic pin. The Teensy 4.1 is not tolerant on its input, you will damage the Teensy if it receives 5v. Try and use the MCP2562 instead. It has a separate VIO pin for the logic.
  13. skpang

    CAN-FD configuration options

    I can get 5Mb/s to work with these settings: CANFD_timings_t config; config.clock = CLK_60MHz; config.baudrate = 500000; config.baudrateFD = 5000000; config.propdelay = 188; config.bus_length = 1; config.sample = 75; You might want to try 4 or 6Mb/s instead. I found they are...
  14. skpang

    How to read ACK bit?

    First, please post complete code so we can compile the sketch. The #include <FlexCAN_T4.h> is missing. The sender is working fine. The receiver needs a can1.events() Change your code to this: void loop() { can1.events(); if (can1.read(msg)){ Serial.print("ID...
  15. skpang

    CAN Error Frame Register

    With the FlexCAN_T4.h library you can call the error(CAN_error_t &error, bool printDetails) function. This will give you these type of errors: typedef struct CAN_error_t { char state[30] = "Idle"; bool BIT1_ERR = 0; bool BIT0_ERR = 0; bool ACK_ERR = 0; bool CRC_ERR = 0; bool FRM_ERR...
  16. skpang

    How to Configure 0.6" OLED Full Color Display for Teensy 4.x

    Your schematic like that is not going to work. If you look at the OLED module there is U2 and L1. You haven't got there on your schematic. On the OLED panel pin 2 is VCC. Look at datasheet section 4.3 page 10. VCC requires a voltage of 12v. You are connecting it to 3.3v Have a look at the...
  17. skpang

    How to Configure 0.6" OLED Full Color Display for Teensy 4.x

    Looking at the components around U2, there is an inductor (L1) there which suggest it is a power supply of some sort. Most probably a boost converter. Have a look at this board, it has a similar power supply: https://www.adafruit.com/product/1431
  18. skpang

    Does the PHY chip on the T4.1 have a unique MAC address?

    The LAN8651 uses the SPI bus, so connecting to the Teensy 4.0 module is relatively simple 4 wires.
  19. skpang

    Does the PHY chip on the T4.1 have a unique MAC address?

    @shawn, thanks for the offer. It will take me a few days to get the hardware ready for you. I will PM you once it is ready to ship. The Single Pair Ethernet chipset is the Microchip LAN8651 10Base-T1S MAC/PHY. It talks to the Teensy via SPI. I've ported a basic UDP demo to the Teensy and it...
  20. skpang

    Assistance with CAN FD Communication Setup in Senior Design Project Using Teensy 4.1

    Info on CAN termination: https://www.ti.com/document-viewer/lit/html/SSZTB40 Best to keep using the FlexCAN_T4.h and not FlexCAN.h Your code will then work as Classic CAN on can3 with the SN65HVD230 transceiver.
  21. skpang

    Assistance with CAN FD Communication Setup in Senior Design Project Using Teensy 4.1

    Have you closed the terminator header pins on the CAN transceiver board ? The SN65HVD230 is not CAN FD compliant. You need to use a CAN FD compliant transceiver such as the MCP2562FD chip.
  22. skpang

    Assistance with CAN FD Communication Setup in Senior Design Project Using Teensy 4.1

    First your code doesn't compile. You need to add: uint8_t count; Just comment out msg.flags.fd = 1; As can3 is already has CAN FD. On PCAN-View you should see something like this: With your error on PCAN-View, it could be your wiring to the CAN transceiver is not right. Which CAN...
  23. skpang

    Assistance with CAN FD Communication Setup in Senior Design Project Using Teensy 4.1

    You need to use the CAN port of the Teensy. On the card it is shown in pink. So you need to wire up like this: For CAN port can1 CRX1 on pin 23 CTX1 on pin 22 For CAN port can2 CRX2 on pin 0 CTX2 on pin 1 For CAN port can3 CRX3 on pin 30 CTX3 on pin 31 So the RX pin of your CAN transceiver...
  24. skpang

    Assistance with CAN FD Communication Setup in Senior Design Project Using Teensy 4.1

    The photo of the wiring connection doesn't look right. Looks like you are using pin 24 and 25. Those are UART pins, not CAN. You need to use pin 0,1 for can2. pin 30,31 for can3 and pin 23,22 for can1
  25. skpang

    FlexCAN_T4 - Teensy 4.1 Not sending ACK bit

    As bicycleguy said, the CRX3 pin should be 3.3v the scope trace doesn't look like 3.3v On pin 8 (Rs) of the CAN transceiver is it connected to anything ? Can't see it from the photo. Try and connect it to GND. Also your code: for (uint8_t i = 0; i < msg.len; i++) { Serial.print(msg.buf, HEX)...
  26. skpang

    Bring back the Teensy 3.2 !

    PJRC might not bring back the Teensy 3.2 but definitely need something less powerful and less power hungry then the Teensy 4.0 A Teensy 3.3 may be ?
  27. skpang

    Does the PHY chip on the T4.1 have a unique MAC address?

    It is useful to know the T4.0 also have a MAC address. I have a T4.0 ethernet project which needs a MAC address. I was going to use an external I2C MAC address chip. Now I know I don't need this anymore. The project is Single Pair Ethernet in which the T4.0 is communicated over SPI to the...
  28. skpang

    Does the PHY chip on the T4.1 have a unique MAC address?

    Strange, if you use this code on a T4.0 you get all 00s #include <QNEthernet.h> using namespace qindesign::network; uint8_t mac[6]; void setup() { // put your setup code here, to run once: delay(1000); Ethernet.macAddress(mac); // This is informative; it retrieves, not sets...
  29. skpang

    Does the PHY chip on the T4.1 have a unique MAC address?

    I've tested the T4.0 and can't find a valid MAC address.
  30. skpang

    Does the PHY chip on the T4.1 have a unique MAC address?

    I've tested a TEENSY41_NE board and found a MAC address.
  31. skpang

    short circuit somewhere killing all my teensies?

    Post a photo of your setup would help to see what is going on.
  32. skpang

    CAN XL in Teensy 4.1

    The max speed of CAN FD depend on the topology. I've managed to get 8Mbps in a point to point topology.
  33. skpang

    FlexCAN_T4 - FlexCAN for Teensy 4

    First the 100Ohm terminator is a bit low. They recommend 120Ohm. Try and change the clock setting from: cfg.clock = CLK_80MHz; to cfg.clock = CLK_24MHz; I think 80MHz is too high or it is not a clean dividable to get 2Mbps.
  34. skpang

    CAN BUS Message Issue Transmiting with Teensy 4.1 and BAMOCAR d3 controller using FlexCAN_T4

    On the ISO1050 transceiver, have you applied the correct voltage on Vcc1 and Vcc2 ? Post a photo of your setup.
  35. skpang

    LIN bus 2.1, working example?

    Yes, those changes are correct. They are needed as Markus library has changed to a two step init.
  36. skpang

    LIN bus 2.1, working example?

    I have a RGB LED LIN-bus example working with the Teensy 4.0 and Markus's LIN library. https://github.com/skpang/Teensy40_CAN_FD_LIN-bus_NCV7430_RGB_demo Looks like jsimonkeller is making progress, lets see if he needs anymore help.
  37. skpang

    Firefox not accessing forum

    It is working on my M1 Mac Studio.
  38. skpang

    test thread

    Good to see the forum is back.
  39. skpang

    FlexCAN_T4 - FlexCAN for Teensy 4

    You are using extended IDs. You need to add this : msg.flags.extended = 1;
  40. skpang

    Teensy 4.1 with CANBUS adapter and flexcan t4 - no CAN data stream?

    The OBDII port I've seen uses 500k. Suggest you tried that. Depend on the make/model/year of your vehicle you may not see any data on its own. The OBDII port is not usually directly connected to the CAN network. It is via a gateway. You would need to do a request first, then the gateway will...
  41. skpang

    [duplicate] Software Defined Transceiver

    Do you have a GitHub link ?
  42. skpang

    FlexCAN_T4 - FlexCAN for Teensy 4

    If you plug the T4 and PCAN analyser in and the car bus goes silent. If the bitrate is set correctly then it could be that the CAN_H and CAN_L are swapped.
  43. skpang

    FlexCAN_T4 - FlexCAN for Teensy 4

    If you have a known working transceiver then the speed shouldn't really matter as long as it is 1Mbps or below. I would use your CAN-bus analyser, set it to 83.3k and connect it to your car to see if any data on PCAN-View. If you don't see any data that means it is not quite 83.3k If you see...
  44. skpang

    FlexCAN_T4 - FlexCAN for Teensy 4

    I don't have a device that runs at 83.3k so the following code might not work. All I can test is on a CAN-bus analyser. Try this : #include <FlexCAN_T4.h> FlexCAN_T4<CAN1, RX_SIZE_256, TX_SIZE_16> can1; uint8_t i; void setup(void) { can1.begin(); can1.setBaudRate(83333)...
  45. skpang

    Teensyduino 1.58 Released

    I just replaced my library with your lin_bus.h and lin_bus.cpp files. Changed to LIN lin and move the lin.begin into setup(). It works!! This is now working as it used to be. Strange v1.58 broke it. Thank you KurtE for fixing this. It is not my library.
  46. skpang

    Teensyduino 1.58 Released

    Putting LIN lin(&Serial3, 19200); inside the setup works ok but I can't access it in the main loop. I have to recompile the code and comment out the LIN lin(&Serial3, 19200) and upload again to get the crash report. CrashReport: A problem occurred at (system time) 19:17:32 Code was...
  47. skpang

    Teensyduino 1.58 Released

    I'm using the lin_bus.h library with Arduino IDE 2.0.4 on a Teensy 4. https://github.com/MarkusLange/Teensy_3.x_4.x_and_LC_LIN_Master This is working with v1.57.2 and now I've upgraded to v1.58.0 but the Teensy looks like it crashes on startup. #include "lin_bus.h" LIN lin(&Serial3, 19200)...
  48. skpang

    Teensyduino 1.58 Released

    Install, compile and upload ok on Mac Studio with Ventura 13.3
  49. skpang

    CAN-Bus with SN65HVD230D tranceiver Teensy 4.1

    Assumed you have wired them up correctly. If you see waveform on CTX and steady state on CAN_H and CAN_L then the SN65HVD230D breakout board most likely to be faulty.
Back
Top