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
    406
    Views
    31,340

    well filters you need to set one by one no? what...

    well filters you need to set one by one no? what do you want to configure exactly? why not use the object in the function itself? what is your purpose for the project?
  2. Replies
    406
    Views
    31,340

    192 mailboxes total in CAN2.0 mode, all 3 CAN...

    192 mailboxes total in CAN2.0 mode, all 3 CAN controllers, yes. each bus has 64 max.

    you can pass all your busses into one callback in your sketch. if you receive a frame from CAN2 for example,...
  3. Replies
    406
    Views
    31,340

    yes, each controller has 64 mailboxes, they can...

    yes, each controller has 64 mailboxes, they can be changed except the CANFD mode, size depends on mailbox data capacity.

    Yes I see the error here, as a workaround until it can be figured out, the...
  4. Replies
    406
    Views
    31,340

    it's a template compile time object. You may pass...

    it's a template compile time object. You may pass the object to your other program in a function after. Mailboxes can be changed at runtime too (setMaxMB()), your function is neither a pointer nor a...
  5. Replies
    7
    Views
    362

    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
  6. Replies
    3
    Views
    211

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

    this sounds like you uploading bad code. Share with us the sketch you are using
  7. 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...
  8. Replies
    3
    Views
    180

    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...
  9. Replies
    163
    Views
    5,589

    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
  10. Replies
    406
    Views
    31,340

    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...
  11. Replies
    406
    Views
    31,340

    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)....
  12. Replies
    406
    Views
    31,340

    > 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...
  13. Replies
    3
    Views
    180

    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
    ...
  14. Replies
    406
    Views
    31,340

    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...
  15. Replies
    406
    Views
    31,340

    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...
  16. Replies
    406
    Views
    31,340

    #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;
  17. Replies
    406
    Views
    31,340

    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...
  18. Replies
    406
    Views
    31,340

    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
  19. Replies
    25
    Views
    560

    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);
    ...
  20. 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.
  21. Replies
    2
    Views
    216

    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...
  22. Replies
    25
    Views
    560

    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...
  23. 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...
  24. 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...
  25. 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...
  26. 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...
  27. Replies
    406
    Views
    31,340

    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...
  28. Replies
    406
    Views
    31,340

    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...
  29. Replies
    406
    Views
    31,340

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

    Thats an extended ID, try


    msg.flags.extended = 1;
  30. Replies
    6
    Views
    219

    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...
  31. Replies
    2
    Views
    147

    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...
  32. Replies
    4
    Views
    240

    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...
  33. Replies
    4
    Views
    240

    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
  34. Replies
    27
    Views
    843

    is the toggle method faster?

    is the toggle method faster?
  35. Replies
    8
    Views
    405

    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,...
  36. Replies
    4
    Views
    329

    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...
  37. constrain(map(value,-1100.0f, 1100.0f, 0.0f,...

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

    :)
  38. 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?
  39. 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
  40. Replies
    8
    Views
    238

    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
  41. Replies
    406
    Views
    31,340

    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...
  42. Replies
    186
    Views
    17,696

    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...
  43. Replies
    1
    Views
    187

    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
    ...
  44. Replies
    7
    Views
    300

    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
  45. Replies
    11
    Views
    336

    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);
    ...
  46. Replies
    11
    Views
    336

    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
  47. Replies
    11
    Views
    336

    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...
  48. Replies
    11
    Views
    336

    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...
  49. Replies
    11
    Views
    336

    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...
  50. Replies
    11
    Views
    336

    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,...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4