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
    59
    Views
    1,887

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

    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...
  3. Replies
    166
    Views
    61,728

    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
  4. Replies
    166
    Views
    61,728

    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
  5. Replies
    24
    Views
    903

    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...
  6. Replies
    24
    Views
    903

    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...
  7. Replies
    59
    Views
    1,887

    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...
  8. Replies
    59
    Views
    1,887

    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?
  9. Replies
    59
    Views
    1,887

    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...
  10. 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?
  11. Replies
    4,307
    Views
    456,282

    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
  12. Replies
    4,307
    Views
    456,282

    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...
  13. Replies
    4,307
    Views
    456,282

    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...
  14. Replies
    4,307
    Views
    456,282

    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...
  15. Replies
    59
    Views
    1,887

    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...
  16. Replies
    59
    Views
    1,887

    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
  17. Replies
    59
    Views
    1,887

    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...
  18. Replies
    59
    Views
    1,887

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

    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...
  20. Replies
    3
    Views
    206

    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
  21. Replies
    4
    Views
    196

    you tried resolution change? ...

    you tried resolution change?

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

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

    I don’t see any pullups on I2C. You absolutely need them
  23. 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)
  24. 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...
  25. 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
  26. 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
  27. 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
  28. Replies
    59
    Views
    1,887

    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...
  29. Replies
    6
    Views
    123

    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...
  30. 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...
  31. Replies
    6
    Views
    123

    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...
  32. 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...
  33. 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 :)
  34. Replies
    6
    Views
    123

    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...
  35. Replies
    13
    Views
    698

    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,...
  36. Replies
    180
    Views
    14,458

    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.
  37. Replies
    6
    Views
    126

    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...
  38. Replies
    6
    Views
    126

    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...
  39. Replies
    59
    Views
    1,887

    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
  40. Replies
    13
    Views
    698

    1062, 1052 will not be used anymore

    1062, 1052 will not be used anymore
  41. Replies
    59
    Views
    1,887

    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...
  42. Replies
    59
    Views
    1,887

    setRegions(x) has been added and included in the...

    setRegions(x) has been added and included in the beta demo on github
    x can be 8,16,32,64 and the amount of total mailboxes are returned.
    If you attempt to put 24, 32 will be selected, process of...
  43. Replies
    59
    Views
    1,887

    yes skpang, i might need help with the bittiming...

    yes skpang, i might need help with the bittiming as thats beyond my current expertise, currently i matched the ones against the SDK, but i will be needing help with the calculations, so if your...
  44. Replies
    59
    Views
    1,887

    Good news guys, finally have FD working on teensy...

    Good news guys, finally have FD working on teensy 4.0. It’s so fast I had to slow it down, kept crashing the other node running the SDK. :) But running stable so far on its own.

    Both memory...
  45. Replies
    59
    Views
    1,887

    It’s okay, the library is still in development,...

    It’s okay, the library is still in development, base functionality is the goal and once it’s setup I will add features like I did in IFCT. Aside from the baudrate it’s setup to use the oscillator...
  46. Replies
    59
    Views
    1,887

    common ground? i get why you dont want us to see...

    common ground? i get why you dont want us to see a ball of wires but sometimes if we see a little we might spot something :)
  47. Replies
    59
    Views
    1,887

    Can you try that test on 1.47beta5 teensyduino? ...

    Can you try that test on 1.47beta5 teensyduino?

    msg.ext is a macro in t3.6, you should be able to use msg.flags.extended in both t3/4

    do you have resistor 120 ohm on the line?
  48. Replies
    1
    Views
    130

    IFCT can he used to read specific mailboxes in...

    IFCT can he used to read specific mailboxes in either hardware mode or software mode, the masking in hardware mode is fully automated by ID input, so the user doesn’t need to worry about How...
  49. Replies
    418
    Views
    84,191

    mutexes are only used if you plan to use one...

    mutexes are only used if you plan to use one serial object in 2 or more threads. If you are using the serial object ONLY in one thread, no mutex is needed
  50. Replies
    180
    Views
    14,458

    it’s just an array of 8 bytes, by default it will...

    it’s just an array of 8 bytes, by default it will pickup all IDs however you can filter it in callback via software or hardware via filtering.

    your second code is software filtering but yeah...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4