Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: skpang

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    6
    Views
    77

    msg use in transmit function. rxmsg use in...

    msg use in transmit function.

    rxmsg use in receive function.
  2. Replies
    60
    Views
    2,178

    On short cable run, it is working at...

    On short cable run, it is working at 1000/8000kbps is well.

    17754
    17755
  3. Replies
    2
    Views
    102

    Yes, a 3.6 size Teensy 4 with uSD holder would be...

    Yes, a 3.6 size Teensy 4 with uSD holder would be great. Adding an uSD holder to the current Teensy 4 is a real pain.
  4. Use a scope and check the signals. You should...

    Use a scope and check the signals.

    You should see data on CAN_L and CAN_H.

    On the Teensy side you should see data on the CAN Rx pin.
  5. Have you got a 120R terminator on both end ?

    Have you got a 120R terminator on both end ?
  6. Replies
    167
    Views
    61,975

    No, Teensy 3.6 only has Classic CAN, which the...

    No, Teensy 3.6 only has Classic CAN, which the max rate is 1mbps.

    If you want 2mbps then you need CAN FD.
  7. Replies
    60
    Views
    2,178

    Ok, removing the comment and recompile got past...

    Ok, removing the comment and recompile got past the FD.begin().

    I can see data on the CTX3 line but can't work out what bit rate it is. From a scope I see the arbitration bit rate is 1us and data...
  8. Replies
    60
    Views
    2,178

    Adding #define PRINT_DEBUG_STUFF Didn't...

    Adding

    #define PRINT_DEBUG_STUFF

    Didn't work for me. It still doesn't get past FD.begin() but I'm using 1.47
  9. Replies
    60
    Views
    2,178

    I'm trying your beta_sample example but couldn't...

    I'm trying your beta_sample example but couldn't get past FD.begin();


    void setup(void) {
    Serial.begin(115200); delay(1000);
    pinMode(6, OUTPUT); digitalWrite(6, LOW);

    ...
  10. Replies
    60
    Views
    2,178

    Hi tonton81, that is great news. Any chance...

    Hi tonton81, that is great news.

    Any chance of trying your library ?
  11. Replies
    60
    Views
    2,178

    @mjs513 I can confirm can1 and can2 works with...

    @mjs513

    I can confirm can1 and can2 works with your sketch.

    I then changed can1 to can3 that also works on pin CRX3 and CTX3.

    I want to try can3 on CAN FD now.
  12. Here is a video of me changing Blinky delay to...

    Here is a video of me changing Blinky delay to 100.


    https://youtu.be/bOC5cXjH2-Q
  13. Just updated the Arduino IDE to 1.8.9 but still...

    Just updated the Arduino IDE to 1.8.9 but still the same problem after a sketch upload. It won't auto reboot.

    Anyone else seeing this problem ?
  14. Teensy 4.0 does not auto reboot after sketch upload

    I'm using the beta test software 1.47-beta6 with Arduino 1.8.7 on macOS 10.14.6

    When I compiled the Blinky sketch and it uploads to T4 ok, but it does not do auto reboot like the T3.2. I have to...
  15. Replies
    4,318
    Views
    459,864

    The Teensy 4 is similar price to Teensy 3.2 ...

    The Teensy 4 is similar price to Teensy 3.2

    What will happen to Teensy 3.2 ?
  16. Replies
    4,318
    Views
    459,864

    Oh, that is going to be a pain to get access to....

    Oh, that is going to be a pain to get access to.

    What is the best way to access to those pins when designing a board for T4 ?
  17. Replies
    4,318
    Views
    459,864

    Which port is the CAN FD ? Hope is not on the...

    Which port is the CAN FD ? Hope is not on the back side. Can't tell from the pinout card.
  18. Replies
    6
    Views
    497

    Also RTR has been removed in the CAN FD spec.

    Also RTR has been removed in the CAN FD spec.
  19. Your board has two green connectors. One marked...

    Your board has two green connectors. One marked CAN FD which is connected to the MCP2517FD controller then to the teensy via SPI.

    The other green connector which you have wired up is connected to...
  20. To read the message: void loop() { ...

    To read the message:



    void loop() {


    msg.len = 8;
    msg.id = 0x7DF;
    msg.buf[0] = can_msg_count++;
  21. From the photo, you are using the Teensy CAN....

    From the photo, you are using the Teensy CAN. You cannot use the MCP2517FD driver.

    Just use the FlexCAN driver.



    #include <FlexCAN.h>

    uint32_t can_msg_count = 0;
    CAN_message_t...
  22. Can you clarify your setup. Are you using the...

    Can you clarify your setup.

    Are you using the CAN on board the Teensy3.6 ?
  23. Thread: LIN bus

    by skpang
    Replies
    5
    Views
    780

    Try this: ...

    Try this:

    https://github.com/skpang/Teensy32_LIN-bus_master_send_demo

    https://github.com/skpang/Teensy32_LIN-bus_master_request_demo

    https://github.com/skpang/Teensy32_LIN-bus_slave_demo
  24. Replies
    17
    Views
    678

    Have you closed the terminator jumper on the...

    Have you closed the terminator jumper on the Waveshare board ? Try that.

    You might also need to do something similar on the motor controller side if it hasn't got a terminator.

    A CAN network...
  25. More useful to others, as in people by making a...

    More useful to others, as in people by making a class in a library.
  26. Calling attachInterrupt() inside a C++ class

    I'm trying to write a C++ class which a attachInterrupt() is called but it won't compile and giving me an error message of :
    ...
  27. Replies
    4
    Views
    266

    Yes, best to connect the 3k3 resistor to 3.3v...

    Yes, best to connect the 3k3 resistor to 3.3v instead.
  28. Replies
    4
    Views
    266

    You need attached a diode to the Tx pin like...

    You need attached a diode to the Tx pin like this:

    15707

    More info at:
    https://www.mikrocontroller.net/attachment/28831/siemens_AP2921.pdf
  29. I've changed it to "CHANGE" and test the voltage...

    I've changed it to "CHANGE" and test the voltage inside the ISR. It worked !!

    Thank you for your help.
  30. Interrupt on Rising and Falling on the same pin

    I've got a pulse coming in on pin 0 and trying to measure the pulse width.

    I'm using ISR on the falling and rising edge of the same pin but it looks like the ISR is only calling on the rising...
  31. Replies
    8
    Views
    611

    I think it is working now. After the...

    I think it is working now.

    After the Serial1.begin(9600) I sent out the break then reconfigure using serial_set_transmit_pin(tx_pin) but I have to add serial_set_tx(tx_pin,1).


    int led = 13;...
  32. Replies
    8
    Views
    611

    I can't set the Serial1.begin(9600) in advance...

    I can't set the Serial1.begin(9600) in advance because I need to set the tx pin low to sent out the break. Unless I manually set the tx pin low via registers but I don't really want to mess about...
  33. Replies
    8
    Views
    611

    I don't want any delay before the synch byte...

    I don't want any delay before the synch byte (0x55).
    I might try and set it serial mode first. Change the pin, output the break then switch it back like you said but this might not make it portable...
  34. Replies
    8
    Views
    611

    Generating serial line break for LIN-bus

    I'm trying to write a LIN-bus driver for Teensy 3.2

    A LIN-bus frame consist of break, synch(0x55), Ident, data. I'm trying to do this in software and found when I configure the uart there seems to...
  35. Replies
    242
    Views
    26,601

    I would like to see the use of the 1060 chip....

    I would like to see the use of the 1060 chip. With CAN FD this will enable T4 to run a new set of applications.
  36. Good to hear you got it working. For those who...

    Good to hear you got it working.

    For those who want to try Teensy with the MCP2517FD the code is in GitHub:

    For Teensy 3.2
    https://github.com/skpang/Teensy32_with_MCP2517FD_CAN_FD_demo

    For...
  37. Replies
    242
    Views
    26,601

    Thanks for that. I hope its going to be the...

    Thanks for that.

    I hope its going to be the i.MX RT1060 as it has CAN FD. I'm doing a few projects on CAN FD and would be nice to use Teensy 4.0
  38. Replies
    242
    Views
    26,601

    Hi Paul, Have you decided which version of the...

    Hi Paul,

    Have you decided which version of the iMXRT is going to be used for Teensy 4.0 ?
  39. The Microchip CAN-Bus analyser uses two mosfet. ...

    The Microchip CAN-Bus analyser uses two mosfet.

    Have a look at their schematic:

    http://ww1.microchip.com/downloads/en/DeviceDoc/51848B.pdf
  40. You really need to post the full code. Can't...

    You really need to post the full code. Can't really see whether you have setup the baud rate correctly or not.

    For a simple CAN test code try this:...
  41. Thanks Michael and Paul for the advice. I've...

    Thanks Michael and Paul for the advice.

    I've changed the drv_spi.c to drv_spi.cpp and added the SPI.h and SPI.begin() to the init function and that part compiles ok.

    Now I'm stuck on a enum...
  42. Porting C code to Teensyduino for MCP2517FD CAN FD Project

    What is the best way to port C code to Teensyduino ?

    I want to use the Microchip MCP2517FD CAN FD controller with Teensy 3.2
    The code is in C but Teensy wants C++.

    I've tried adding:
    #ifdef...
  43. Replies
    3
    Views
    867

    Is there a 120R terminator resistor on board? Is...

    Is there a 120R terminator resistor on board? Is it closed ? If not closed try and close it.
  44. Replies
    2
    Views
    1,002

    That is correct. CAN on Teensy only support up to...

    That is correct. CAN on Teensy only support up to 1Mbps.

    If you want to play with CAN FD try the S32K144EVB dev board. The CAN FD example works.
  45. Replies
    183
    Views
    51,142

    I would like to see CAN FD in the next Teensy.

    I would like to see CAN FD in the next Teensy.
  46. Replies
    7
    Views
    1,589

    Teensy 3.2 does have CAN, it is on pin 3 and 4....

    Teensy 3.2 does have CAN, it is on pin 3 and 4. All you need is connect it to a CAN transceiver.
  47. You don't need the MPC2515 module. Teensy 3.2...

    You don't need the MPC2515 module. Teensy 3.2 already has a built in CAN controller. All you need is a CAN transceiver.

    Example of Teensy 3.2 CAN project....
  48. No, you need to use the new version by Collin80....

    No, you need to use the new version by Collin80.

    https://github.com/collin80/FlexCAN_Library
  49. Depending on your car you might not see any data...

    Depending on your car you might not see any data unless you make a valid request first. On some car OBDII port is connected to the CAN network via a gateway so you might need see any data if you just...
  50. Thread: RA8875 library

    by skpang
    Replies
    68
    Views
    34,442

    I've the 5" LCD from buydisplay. I'm trying to...

    I've the 5" LCD from buydisplay. I'm trying to use the aerial_22 and aerial_48 font but they don't look quite right. I'm expecting a bit more of an Arial font.

    Does aerial_22 and aerial_48 meant...
Results 1 to 50 of 58
Page 1 of 2 1 2