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

Search:

Type: Posts; User: tonton81

Page 1 of 10 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    7
    Views
    357

    I used the UART console once on a raspi3, so...

    I used the UART console once on a raspi3, so Teensy could have ADB/SSH capabilities
  2. Replies
    3
    Views
    209

    this sounds like you uploading bad code. Share...

    this sounds like you uploading bad code. Share with us the sketch you are using
  3. Opendrain would work also I think. As for...

    Opendrain would work also I think.

    As for inputs, if he is driving the pin, that won't work because the pedal will ground and the digitalwrite will apply 3.3v. with open drain it grounds and...
  4. Replies
    3
    Views
    172

    first, stop using all the filtering, stop using...

    first, stop using all the filtering, stop using REJECT_ALL. you say your having issues receiving but your posting a sketch showing me you wanna block all frames and add filtering. you are not...
  5. Replies
    163
    Views
    5,512

    Yes that way theres no address conflicts if you...

    Yes that way theres no address conflicts if you have 2 devices with same address. Although make sure library supports multiple busses as well, not all do
  6. Replies
    397
    Views
    30,914

    no thats just the clock for the controller, the...

    no thats just the clock for the controller, the bitrate calculation is based off that.


    config.clock = CLK_60MHz;

    but liike i said if your FD rate is not set properly you wont get any frames...
  7. Replies
    397
    Views
    30,914

    sure the rate is correct? try another clock to...

    sure the rate is correct? try another clock to shift the timings, FD supports multiple timing parameters for the same bitrates (due to advanced calculation algorithms built in a separate file)....
  8. Replies
    397
    Views
    30,914

    > 8 definately does work because TeensyCAN used...

    > 8 definately does work because TeensyCAN used 64byte transfers. what did serial monitor show for output?

    what device is it connected to? that device must have BOTH matching rates for it to work...
  9. Replies
    3
    Views
    172

    Are you using the latest version on github for...

    Are you using the latest version on github for testing?

    whats the mailboxStatus() report show?

    I noticed you are polling with interrupts, without RX mailboxes, that won't actually do anything
    ...
  10. Replies
    397
    Views
    30,914

    Here is a way you can try it without a...

    Here is a way you can try it without a transceiver, beware that the pullup is at 5V, teensy pins are not 5V tolerant. If you have issues communicating after that theres not much we can do software...
  11. Replies
    397
    Views
    30,914

    CANFD has 2 baudrates. Nominal max is 1Mbps...

    CANFD has 2 baudrates.

    Nominal max is 1Mbps for CAN2.0 and FD
    The second rate for FD is for it's data, which can go up to 8Mbps, provided your transceiver is capable (some transceivers do 5...
  12. Replies
    397
    Views
    30,914

    #include FlexCAN_T4FD

    #include <FlexCAN_T4.h>

    FlexCAN_T4FD<CAN3, RX_SIZE_128, TX_SIZE_128> FD;

    void setup(void) {
    FD.begin();

    CANFD_timings_t config;
    config.clock = CLK_24MHz;
    config.baudrate = 1000000;
  13. Replies
    397
    Views
    30,914

    All CAN controllers need transceivers, it doesn't...

    All CAN controllers need transceivers, it doesn't matter what mocrocontroller you have, even vehicles have them in the ECUs, it's just the way it is. There is a diode hack somewhere on google but...
  14. Replies
    397
    Views
    30,914

    you definately need the transceiver. you can...

    you definately need the transceiver. you can gerry rig a diode and resistors to possibly make it work, but stability wont be guarenteed obviously
  15. Replies
    25
    Views
    542

    you should be using SPI Transactions, the older...

    you should be using SPI Transactions, the older code is deprecated and may or may not be calculated same way

    replace:


    SPI2.setBitOrder(MSBFIRST);
    ...
  16. they're all the same, there are no fakes or...

    they're all the same, there are no fakes or copies if thats what your wondering.
  17. Replies
    2
    Views
    210

    templates work under .tpp with compiler, you may...

    templates work under .tpp with compiler, you may check out the sources in FlexCAN_T4 (which has compile time and runtime object creation(user object and ISR forwarding)) and even WDT_T4. The template...
  18. Replies
    25
    Views
    542

    when you change modes to synchronize the clock,...

    when you change modes to synchronize the clock, there was a post somewhere about it on the forums, send a dummy transfer after the cloco change (SPI.transfer(0xFF)) before asserting the chip...
  19. if adafruit posted what i quoted above, i wouldnt...

    if adafruit posted what i quoted above, i wouldnt drive the Vin at 5v, the pullups may be pulled to Vin (didnt check schematic, just the quote)

    plus as per their PDF:

    Power Pins:
    Vin - this is...
  20. according to adafruit Vin is connected to 5V...

    according to adafruit

    Vin is connected to 5V (on a 3V logic Arduino/microcontroller, use 3.3V)

    so you need to connect it to 3.3v, teensy 3.6 -> 4.1 gpios only support 3.3v max, they are not 5v...
  21. it is better to run them at 3.3 beware that...

    it is better to run them at 3.3

    beware that some breakout boards require 5v with very few having 3.3 on the communication lines. Most chips don't do this but few do. Thats why its better to check...
  22. Should be unless they use specific registers that...

    Should be unless they use specific registers that doesn't exist on another platform, it all depends where you source the library

    you can try loading it in the IDE with teensy 4.1 selected in drop...
  23. Replies
    397
    Views
    30,914

    can you plug in your other mcu, just as a reader,...

    can you plug in your other mcu, just as a reader, to see if teensy is actually sending something on the bus?

    also check your bus termination, your old CAN board may have been using a resistor and...
  24. Replies
    397
    Views
    30,914

    looks good, what kinda transceiver you are using?...

    looks good, what kinda transceiver you are using? some have reported to be reading fine but not transmitting


    CAN.sendMsgBuf(5376, 1, 2, canMsg)

    try specifying length of 2? on new code your...
  25. Replies
    397
    Views
    30,914

    Thats an extended ID, try msg.flags.extended...

    Thats an extended ID, try


    msg.flags.extended = 1;
  26. Replies
    6
    Views
    208

    instead of .print(), do a Serial.write() to view...

    instead of .print(), do a Serial.write() to view the actual byte, after the sendBreak the last byte would be the break, then you can check for that. Serial.print doesn't print it obviously but you...
  27. Replies
    2
    Views
    142

    yes, you just need to use FlexCAN_T4, it has...

    yes, you just need to use FlexCAN_T4, it has basic examples to get you up and running. Just make sure since you are on the ECU bus that the PTS or KEY is in IGN_ON mode, irregardless if engine is...
  28. Replies
    4
    Views
    235

    only Teensy 4.0/4.1 supports CANFD on CAN3 only....

    only Teensy 4.0/4.1 supports CANFD on CAN3 only. it is also backwards compatible with 2.0B in FD mode, or run legacy 2.0B mode only on CAN3.

    Max bitrate there by the controller in FD mode is...
  29. Replies
    4
    Views
    235

    theres a dual can board on tindie designed to...

    theres a dual can board on tindie designed to piggyback the Teensy 3.6, CAN spec on all supported teensies are CAN2.0B
  30. Replies
    27
    Views
    823

    is the toggle method faster?

    is the toggle method faster?
  31. Replies
    8
    Views
    397

    standard pids are fine, but not OEM specific....

    standard pids are fine, but not OEM specific. each car and year can be different. Some data is already in stream while you have the option to request them. But not all requested pids are available,...
  32. Replies
    4
    Views
    317

    well i use it in automotive environment, its...

    well i use it in automotive environment, its socketed to a triple CAN board, and i am using all 3 CANs on my vehicle, no issues here. it's mounted in a project box in the trunk.

    if you are not...
  33. constrain(map(value,-1100.0f, 1100.0f, 0.0f,...

    constrain(map(value,-1100.0f, 1100.0f, 0.0f, 44.0f), 0.0f, 44.0f)

    :)
  34. there are other ways to round up or down, you...

    there are other ways to round up or down, you want rounding to closest integer?

    i think you solved your issue above?
  35. Try this: 903/50 is 18.06 then (cast)/store it...

    Try this:
    903/50 is 18.06 then (cast)/store it into an integer then it will be 18. 18 then multiply by 50 gives you 900.

    323/50 == (int)6.46 x 50 == 300
  36. Replies
    8
    Views
    234

    This usually happens when your DMM battery is low...

    This usually happens when your DMM battery is low (offscale readings), also make sure you have a good ground path when testing voltages
  37. Replies
    397
    Views
    30,914

    the only difference between 4.0 and 4.1 is that...

    the only difference between 4.0 and 4.1 is that CAN3 has been routed to pins 30 and 31 at edge of board, the other CAN1 and CAN2 have same regular and alternate pins. It's already updated in the...
  38. Replies
    186
    Views
    17,639

    I havn't played with SD or USB utils so I...

    I havn't played with SD or USB utils so I wouldn't be of much help on that part, but a circular queue you could assign 512 bytes and when it is full via size() you can write that block to the SD or...
  39. Replies
    1
    Views
    186

    an fdti board can not be used to program teensy....

    an fdti board can not be used to program teensy. You need to connect the usb cable directly from teensy to pc to program. fdti board only works for serial uarts, but they will NOT reprogram teensy
    ...
  40. Replies
    7
    Views
    293

    try another PC as well, in case your Windows has...

    try another PC as well, in case your Windows has usb driver issues or hardware problem
  41. Replies
    11
    Views
    318

    ill show you the sketch soon, but it's basically...

    ill show you the sketch soon, but it's basically once the ISR sets a volatile variable, it runs the digitalwrite from loop(), like


    void loop() {
    if (var) {
    mcp.digitalWrite(35, HIGH);
    ...
  42. Replies
    11
    Views
    318

    delayMicroseconds(500) still failed, i havn't...

    delayMicroseconds(500) still failed, i havn't went lower than 5ms to test more but i must be near that sweet spot between 500us and 5ms
  43. Replies
    11
    Views
    318

    that may be a possibility, however the...

    that may be a possibility, however the digitalwrite section only uses transfer16, just checked, some other functions use both, but they're not running by the time the loop is hit. but by the time the...
  44. Replies
    11
    Views
    318

    yes maybe tomorrow when i get back on laptop i...

    yes maybe tomorrow when i get back on laptop i can zip up the code, but its mostly digitalwrites consistantly on the SPI port expander. I used to use the DIP versions of 'em on T3.5 and they never...
  45. Replies
    11
    Views
    318

    note: the spi accesses are not ran from interrupt...

    note: the spi accesses are not ran from interrupt routines or threads, so loop only. i tried 10mhz, 8mhz, 2mhz, 1mhz, 100khz, same issue, so i dont think its about speed, more like the clock line at...
  46. Replies
    11
    Views
    318

    Teensy 4 SPI polling issue

    Just added the 128gpio setup to teensy 4.0 in my car project and in its test stages of wiring everything was fine. When i started adding consistant SPI polling in the loop controlling the MCP23S17s,...
  47. Replies
    11
    Views
    387

    It's the IDE, if a PC is unstable and crashes,...

    It's the IDE, if a PC is unstable and crashes, under rare circumnstances during an upload or save when the crash occurs, you can end up with a blank sketch.
  48. Replies
    397
    Views
    30,914

    very odd, there is no trickery in the read...

    very odd, there is no trickery in the read (polling) function, and it doesn't play with timers, interrupts, or other hardware, just reads the memory of the mailbox, what happens if you comment out...
  49. Replies
    397
    Views
    30,914

    found the problem? I don't think the I2C has any...

    found the problem? I don't think the I2C has any influence on flexcan it should work fine, the triple CAN board from skpang uses an I2C display addon.
  50. Replies
    397
    Views
    30,914

    which specific subroutine causes it to not work?...

    which specific subroutine causes it to not work? (you said read one..?which)
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4