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.02 seconds.

  1. Replies
    4,338
    Views
    460,583

    Yes it would be for inactive CAN controllers. If...

    Yes it would be for inactive CAN controllers.
    If a user uses CAN2, he can optionally use CAN1 or CAN3 for non-volatile ram storage which should be pretty fast, the controller will remain in freeze...
  2. Replies
    4,338
    Views
    460,583

    Hi defragster, just following up on older post...

    Hi defragster, just following up on older post about flexcan memory

    Is there any interest in using unused flexcan controllers for RAM storage? If so, on T3, 48 dwords are accessible for 16 MB...
  3. Replies
    7
    Views
    104

    Name can be anything you want it to be, like a...

    Name can be anything you want it to be, like a variable, yeah

    Txmsg is an example to let you know its a transmit message
  4. Replies
    2
    Views
    56

    The library is out (FlexCAN_T4) which supports...

    The library is out (FlexCAN_T4) which supports all 3 busses 2.0 and FD. CANFD pins are available on the underside pads of the teensy 4, CAN1 and CAN2 are available as pins on T4, they support 2.0...
  5. The TX normally sits high unless theres another...

    The TX normally sits high unless theres another node transmitting on the bus. Not everyone is familiar with the hardware, i myself am more into the software part of it
  6. Replies
    61
    Views
    2,234

    1) Library has been updated officially to support...

    1) Library has been updated officially to support T3.x.
    2) The FD mailbox offsets have been further optimized.
    3) As per request of skpang, EDL and BRS reception flags have been added to the...
  7. Replies
    7
    Views
    104

    Its basically like a container that has multiple...

    Its basically like a container that has multiple variables.

    As an example above, these work:

    msg.id;
    msg.buf[0];
    msg.flags.extended,
  8. Replies
    7
    Views
    104

    Receive message, its just a struct with the id,...

    Receive message, its just a struct with the id, data, etc
  9. Replies
    61
    Views
    2,234

    After the last update I worked on adding Teensy...

    After the last update I worked on adding Teensy 3.x support. Here it is for testing!
    Currently This compiles on both Teensy 3.5 and Teensy 4.0 on my test bench, and looks to be working. I've...
  10. Replies
    61
    Views
    2,234

    Hello all, I just updated CAN2.0 on github. It...

    Hello all,

    I just updated CAN2.0 on github. It has distributions and enhancements (smart filtering) working.
    Any potential bugs let me know ;P

    CAN2.0 and CANFD have both been running in...
  11. Replies
    7
    Views
    153

    Check out the examples from IFCT Library for...

    Check out the examples from IFCT Library for teensy, should get you up and running. As for the truck you seem to be getting frames however, on some vehicles OBD is accessed over CAN as extended...
  12. Replies
    167
    Views
    62,033

    Yes listen only SHOULD be set AFTER begin because...

    Yes listen only SHOULD be set AFTER begin because the baudrate when set by default sets up the register with the LOM bit cleared
  13. Replies
    167
    Views
    62,033

    FlexCAN::setListenOnly Looked at that...

    FlexCAN::setListenOnly

    Looked at that function, that looks correct it should be in listen only mode once set. ACKs and transmit wont work but receptions will
  14. Replies
    24
    Views
    927

    You can put the hardware into listen only mode, i...

    You can put the hardware into listen only mode, i dont know if it can be done with the library though, by calling read() you are basically polling, whereas an interrupt would fire the callback when a...
  15. Replies
    24
    Views
    927

    This is just polling, nothing object oriented or...

    This is just polling, nothing object oriented or interrupt, although you shouldnt read the inMsg frame unless .read() returns 1. Tobbera posted some code that should work, my recommendation is don't...
  16. Replies
    61
    Views
    2,234

    Thanks, I will upload an updated version tonight...

    Thanks, I will upload an updated version tonight to github which has the CAN2.0 transmitting issue ressolved posted above, filtering support works however smart filtering and distribution not added...
  17. Replies
    61
    Views
    2,234

    I'm not home to check but can you initialize CAN...

    I'm not home to check but can you initialize CAN before SPI and see if SPI works?
  18. Replies
    61
    Views
    2,234

    Since CANFD is running I started working on...

    Since CANFD is running I started working on CAN2.0 side today.
    The function has been corrected with updated code. On a side note, CANFD and CAN2.0 are both running in parallel on my test bench, have...
  19. It depends on your use case. Is it always...

    It depends on your use case. Is it always identified as Port1,2,3?
    How would you tell them apart?
    How would you decide which object uses which functor?
  20. Replies
    4,338
    Views
    460,583

    According to nxp threads i glimpsed over, they...

    According to nxp threads i glimpsed over, they claim the dev boards are tied via hardware via trigger pin to reset pin , t4 version was made from the 1050 sdk
  21. Replies
    4,338
    Views
    460,583

    17773 Wonder if this is relevant Btw, wdt...

    17773

    Wonder if this is relevant
    Btw, wdt doesnt work in low power modes or deep sleep
    In any case it is suggested the best wtd reset is via an external pin controlled by the wdt (tied to...
  22. Replies
    4,338
    Views
    460,583

    True, I will look into it this week since CANFD...

    True, I will look into it this week since CANFD is pretty much in public testing phase now to find any bugs that may exist. This will give me time to work on watchdog before going back to work on...
  23. Replies
    4,338
    Views
    460,583

    https://github.com/tonton81/Watchdog_t4/blob/maste...

    https://github.com/tonton81/Watchdog_t4/blob/master/Watchdog_t4.cpp

    You posted on another thread that it doesn't work for you, and on a different thread you posted it's code is relevant to only...
  24. Replies
    61
    Views
    2,234

    Optimizations/Bug fixes updates for FD: 1)...

    Optimizations/Bug fixes updates for FD:

    1) Extended framing in poll mode (non interrupt) does not register bit in iflag (so reception only worked in ISR and not polling), standard ids do. If...
  25. Replies
    61
    Views
    2,234

    Yeah they will be redesigned based off the...

    Yeah they will be redesigned based off the progress on the FD system.
    It's been very efficient and easier to work with, progress upon
  26. Replies
    61
    Views
    2,234

    There are still bugs in the library due to it...

    There are still bugs in the library due to it being in development, currently CANFD portion is being progressed until it is stable before I go work out the bugs in the CAN2.0 area. There doesn't seem...
  27. Replies
    61
    Views
    2,234

    FD update!!

    FD is up for testing! Big update!

    Sorry guys I have been busy for months but I never give up on this :)
    I spent time on doing text-like graphs for the new baudrate generator in FlexCAN_T4FD.
    ...
  28. Replies
    19
    Views
    278

    I know this is tedious but i usually toggle pins...

    I know this is tedious but i usually toggle pins and read the ports to see which one it’s attached to. (the bit in the port will toggle)(this also assumes that the output of the pin has the SION bit...
  29. Replies
    3
    Views
    226

    yes the controller is built into teensy hardware...

    yes the controller is built into teensy hardware you just need the transceiver and you are set :)
    All nodes can talk at same time
  30. Replies
    4
    Views
    219

    you tried resolution change? ...

    you tried resolution change?

    https://forum.pjrc.com/threads/41911-Teensy-3-6-ADC-resolution?p=132525&viewfull=1#post132525
  31. Replies
    4
    Views
    77

    I don’t see any pullups on I2C. You absolutely...

    I don’t see any pullups on I2C. You absolutely need them
  32. I would also declare them as weak in case the...

    I would also declare them as weak in case the real ones get added later on :) (or duplicates)
  33. yes buffer is the data field output, 8 bytes, you...

    yes buffer is the data field output, 8 bytes, you can access the bytes from the canSniff function

    16 bits is 2 data bytes

    (uint16_t)(msg.data[0] << 8) | msg.data[1];
    should join 2 bytes to get...
  34. your sketch looks alright, check the baudrate is...

    your sketch looks alright, check the baudrate is correct and dont cross the canh/canl lines, must be canh to canh, canl to canl, and common ground, either from teensy or the ground pin of the shield
  35. Also tell the library to use the alt pins for...

    Also tell the library to use the alt pins for Can0, which is normally 3 and 4 for default, you need to change them
  36. there are 3 pins per chip side on teensy, 2 are...

    there are 3 pins per chip side on teensy, 2 are for can lines, the other 1 is the transceiver enable pin. enable the pin and digitalwrite it ground
  37. Replies
    61
    Views
    2,234

    the T4 flexcan library is in development stages...

    the T4 flexcan library is in development stages so it’s been being rewritten off it’s older IFCT counterpart to be working with the T4 hardware, FD is currently being worked on CAN2.0 will be...
  38. Replies
    6
    Views
    128

    enable the touch library AFTER you set the pins,...

    enable the touch library AFTER you set the pins, this will reconfigure the old pins as touch. If you init touch before the audio then modify pins, the touch is still overridden by the audio before...
  39. uint32_t var = 0b110; var &= ~(3UL

    uint32_t var = 0b110;
    var &= ~(3UL << 1);
    var |= (3UL << 1);
    var |= 0b1101001; // comment EN, FRAME, TEST, CRC, etc (comment on sequential bits)
    var == 0b1101111; <——answer

    if you don’t...
  40. Replies
    6
    Views
    128

    they are not changed at runtime once its...

    they are not changed at runtime once its configured (the library), so changing it after initializing library is fine, and its per sketch so your other sketch is unaffected, i am not familiar with...
  41. Manually doing the bits not only makes you learn...

    Manually doing the bits not only makes you learn how it works (it’s how I learned), allows you to handle not only single bits but multiple bits as well. bitSet, bitClear would be an eyesore for...
  42. You can then take the inverse of the flip...

    You can then take the inverse of the flip afterwards !digitalRead

    keep a little //comment there if you do this so you understand why later on when working on your project :)
  43. Replies
    6
    Views
    128

    why not set them in the sketch after you...

    why not set them in the sketch after you initialized the controller? the pin configs can be changed at any time

    have each project run a diff pin config in setup after the audio shield is...
  44. Replies
    13
    Views
    785

    you could use the flexcan memory region while...

    you could use the flexcan memory region while it’s in freeze mode to access the RAM in that area for temporary data (wiped on reset). They are at offsets 0x080 to 0x47F. Since theres 3 controllers,...
  45. Replies
    180
    Views
    14,697

    yes thats read only you could copy it to...

    yes thats read only

    you could copy it to modify it

    CAN_message_t copyFrame = frame;
    copyFrame.seq = 1;

    modify everything in copyFrame.
  46. Replies
    6
    Views
    135

    its dual fifo on 3.6, each have fifo. just...

    its dual fifo on 3.6, each have fifo. just disable the RX mailboxes and call it a day. The problem with mailboxes are if you dont read then by the time the next frame pops in the timestamps also...
  47. Replies
    6
    Views
    135

    if you are looking for ordering good luck. FIFO...

    if you are looking for ordering good luck. FIFO is your friend with mailboxes set to disabled or TX.
    FIFO will always have them ordered as they are accepted by hardware filters, no timestamp...
  48. Replies
    61
    Views
    2,234

    skpang the bitrate is hardcoded to match what the...

    skpang the bitrate is hardcoded to match what the sdk is using by default. There is no baudrate calculation yet for flexcan_t4, still work to do, setbaudrate is unused currently until then
  49. Replies
    13
    Views
    785

    1062, 1052 will not be used anymore

    1062, 1052 will not be used anymore
  50. Replies
    61
    Views
    2,234

    they were always tpp, its a templated library...

    they were always tpp, its a templated library with compile time objects :)
    This way you can choose custom buffers and load only resources for the controller(s) you use and omit wasting it on other...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4