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
    134

    The overrun is a per mailbox flag that is set per...

    The overrun is a per mailbox flag that is set per message. It is very rarely seen sent unless the traffic is overloading the mailboxes (not necessarily the bus). But because the ISR queues and frees...
  2. Replies
    5
    Views
    99

    Why not fire the ISR directly via a one-shot...

    Why not fire the ISR directly via a one-shot timer rather than set off the port?
  3. Replies
    7
    Views
    134

    Yes, Teensy 3.2,3.5,3.6,4.0

    Yes, Teensy 3.2,3.5,3.6,4.0
  4. Replies
    164
    Views
    9,740

    Updated FlexCAN_T4 CAN2.0 interface to support...

    Updated FlexCAN_T4 CAN2.0 interface to support listen-only mode.
    Also posted a simple FIFO demo with interrupts - not relevant to your code, just for general use.

    domRG, this should work now:
    ...
  5. Replies
    7
    Views
    134

    There is on the forum thread, just got my PC...

    There is on the forum thread, just got my PC fixed so I'm going to upload one soon today after a github update

    EDIT, I added a FIFO Interrupt demo, you can view it on the github site
  6. Replies
    164
    Views
    9,740

    It seems I have only implemented it in the CANFD...

    It seems I have only implemented it in the CANFD end, I will have to add it to the legacy CAN2.0 side
  7. Replies
    7
    Views
    134

    FlexCAN_T4:...

    FlexCAN_T4: https://github.com/tonton81/FlexCAN_T4

    It works on all T3 and T4.0 boards :)
  8. Replies
    164
    Views
    9,740

    setBaudRate(500000, LISTEN_ONLY); The library...

    setBaudRate(500000, LISTEN_ONLY);

    The library doesnt handle the crc frame, the hardware does
  9. Replies
    164
    Views
    9,740

    I am not sure the tolerance on T4, T3 ran off a...

    I am not sure the tolerance on T4, T3 ran off a CAN clock of 16MHz and T4 can run up to 60MHz, so the timings might be possible, I don't have the tools to test the theory though.
  10. Replies
    164
    Views
    9,740

    No, this is a driver made for the internal...

    No, this is a driver made for the internal controller, which is much faster than the MCP2515 and without the SPI overhead, is there a reason why you want to use a 2515 when you have a much better...
  11. Clearing the watchdog register also causes a...

    Clearing the watchdog register also causes a reset, but the clock gate obviously must be enabled for the watchdog, even if your not using the watchdog, just another way to cause a reset.
  12. Replies
    10
    Views
    428

    I can confirm we had -30 temps here in winter...

    I can confirm we had -30 temps here in winter recently and teensy 4.0 is running constantly in the car, on remote starts it enables the heated seats via canbus (because its always off on every start)...
  13. Replies
    164
    Views
    9,740

    You can just cast it to an int ...

    You can just cast it to an int

    (int8_t)can_MsgRx.buf[4]
  14. Replies
    164
    Views
    9,740

    The ISR's only job is to queue it.into.the.buffer...

    The ISR's only job is to queue it.into.the.buffer and exit, if enough frames can fill the queue before you finish pulling them the oldest, excess frames in the queue will be discarded. The background...
  15. Replies
    164
    Views
    9,740

    Thank you, after an observation with your code I...

    Thank you, after an observation with your code I caught a bug when configuring the TX mailboxes, the imask bit setting crashed the controller because it wasn't handled in ISR, so ISR never exited,...
  16. Replies
    164
    Views
    9,740

    Do you have a sketch i can load to run your...

    Do you have a sketch i can load to run your example? Or one how i can see is how it is setup?
  17. Replies
    205
    Views
    17,212

    The receive buffer is only used when using...

    The receive buffer is only used when using interrupts, not when polling.
    The ISR only drops the frames in the queue, the callback fires when events() in the loop is ran and queues exist. So you...
  18. Replies
    205
    Views
    17,212

    Please make sure you update the repo, it was a...

    Please make sure you update the repo, it was a month or so ago that was added
  19. Replies
    3
    Views
    128

    External Watchdog Monitor support has been added,...

    External Watchdog Monitor support has been added, with window mode support. The counters are 8 bits so your timeout can be anywhere between 7ms to 2 seconds. Window support is also supported to fire...
  20. Replies
    3
    Views
    128

    WDT_T4 - Watchdog Library for Teensy 4

    Since Paul found a patch for the reset I started working back on the watchdog interface. The previous version was only for watchdog1 (WDOG1). This redesigned model is templated, and works on ALL 3...
  21. Alternate pins are possible but not yet...

    Alternate pins are possible but not yet implemented in the library, it will be added soon though
  22. Replies
    164
    Views
    9,740

    It will read from all mailboxes, but if you dont...

    It will read from all mailboxes, but if you dont write fast enough only MB0 will be populated, in terms of efficientcy, unless your blasting frames they wont roll over to the next mailbox unless the...
  23. Replies
    164
    Views
    9,740

    Please use msg.flags.extended = 1; This flag...

    Please use msg.flags.extended = 1;
    This flag notified the transmit mailbox that it's an extended frame, otherwise it will be truncated as a standard ID by default. I tested just now to confirm...
  24. Replies
    205
    Views
    17,212

    The RX and TX queue are sized from constructor,...

    The RX and TX queue are sized from constructor, as a power of 2.

    The write is complete (but not yet transmitted) when a TX mailbox is available and your data is written to it. It is non blocking,...
  25. Replies
    164
    Views
    9,740

    Yes i know, the buffer data of RTR requests are...

    Yes i know, the buffer data of RTR requests are unused, even if the buffer is populated (they are filled) the hardware doesnt actually transfer them, the length is to be used when the RTR response is...
  26. Replies
    10
    Views
    324

    You should remove this:...

    You should remove this:
    /Users/sellensr/Documents/Arduino/libraries/SD
    It shouldnt be in your libraries folder unless you specifically put it there purposely for some testing or usage

    The...
  27. Replies
    205
    Views
    17,212

    holynoise, I was just thinking, with enhancements...

    holynoise, I was just thinking, with enhancements off and in multi ID mode, your original ID may probably work

    Can.setMBFilter(MB1, 0x14060050, 0x1406FF50); /* 2 ID multi-ID mode, non-range based...
  28. Replies
    13
    Views
    220

    Did you upload the wrong file? This compiles fine...

    Did you upload the wrong file? This compiles fine and shows no errors?
  29. Replies
    2
    Views
    74

    If you provide the hex file on your website, you...

    If you provide the hex file on your website, you can make a batch file with the teensy command line uploader, that way a user just has to double click the batch file and it will upload
  30. Replies
    135
    Views
    10,143

    Usually start at the top most error to solve...

    Usually start at the top most error to solve problems, the remaining ones usually follow the initial cause. A full report should be posted of compiler as well as a test sketch so people can check it...
  31. Replies
    164
    Views
    9,740

    DMA support is now added as well as remote frame...

    DMA support is now added as well as remote frame transmit support. Reception of remote frames works fine as is from what I see, they goto your callback where you handle the data needed to send the...
  32. Replies
    164
    Views
    9,740

    Ok, ill check that out after the DMA code

    Ok, ill check that out after the DMA code
  33. Replies
    164
    Views
    9,740

    Sending RTR frames is on my todo list. Receptions...

    Sending RTR frames is on my todo list. Receptions should be fine though. I am currently working on the legacy DMA FIFO (only available on CAN3) and will circle back to RTR afterwards. Just to...
  34. Replies
    10
    Views
    284

    Yes,ironically the watchdog which is burnt in the...

    Yes,ironically the watchdog which is burnt in the headunit which forces a reboot during a warp snapshot due to it not toggling the watchdog, causes the snapshot to.be corrupt, thus only way to...
  35. Replies
    10
    Views
    284

    A little off topic, but the NEX pioneer series...

    A little off topic, but the NEX pioneer series uses a similar mcu as teensy 4, when doing a warp snapshot a hardware modification is needed, simply a pullup on the timeout line just to prevent the...
  36. Replies
    205
    Views
    17,212

    You have "X" amount of mailboxes in TX mode, if...

    You have "X" amount of mailboxes in TX mode, if you constantly write faster than they deplete they wont be able to output and a return of 0 will occur until at least one is available to write. Next,...
  37. Replies
    205
    Views
    17,212

    If you have more than one mailbox accepting the...

    If you have more than one mailbox accepting the same frames, then they can be in any order. Thats why people have 2 options.
    Ordered by FIFO, or run single mailbox mode (reject the rest or switch...
  38. Replies
    205
    Views
    17,212

    All bits (0x14) must be set to checked so no you...

    All bits (0x14) must be set to checked so no you cannot omit it, the hardware will simply toss it out as bad match, everything else is ok.
    Your filters are done in hardware for best performance, so...
  39. Replies
    205
    Views
    17,212

    Are you looking to only save 2 IDs? Mailboxes can...

    Are you looking to only save 2 IDs? Mailboxes can be completely custom configured. If you plan to use filtering it is highly recommended to put your priority ID filters in the leading mailboxes and...
  40. This may be slightly off topic but i am using...

    This may be slightly off topic but i am using skpang's board and able to use both external and usb at same time, i havnt checked the datasheet or if the trace was cut as i ordered them together to be...
  41. Replies
    176
    Views
    13,720

    Some features are specific to arrays, some to...

    Some features are specific to arrays, some to buffers, most work on both. It wouldn't be ideal to have seaparate names when there are alot of features to be handled would increase the function list,...
  42. Replies
    176
    Views
    13,720

    Cb.remove is a unique feature implemented...

    Cb.remove is a unique feature implemented specifically for circular arrays, not circular buffers. The function only processes on circular arrays, and exits on buffers. It's used to drop an entire...
  43. Replies
    176
    Views
    13,720

    Ok, I corrected the offset needed of memmove on...

    Ok, I corrected the offset needed of memmove on peekBytes, and readded it to readBytes, both function correctly. It's been updated on github, let me know if you still have issues :)

    My last...
  44. Replies
    176
    Views
    13,720

    Thank you, I will check into that and fix it when...

    Thank you, I will check into that and fix it when I get back home
    readBytes is good now?
  45. Have you tried a different compiler optimization?...

    Have you tried a different compiler optimization? Smallest is default for LC, what happens when you try Fastest? Compilers sometimes may optimize things out, if there are code issues
  46. Replies
    176
    Views
    13,720

    Ok try the patch ...

    Ok try the patch

    https://github.com/tonton81/Circular_Buffer

    Test example:



    #include "circular_buffer.h"
  47. Replies
    176
    Views
    13,720

    can you post a full sketch i can load it to a...

    can you post a full sketch i can load it to a standalone teensy to test? Last post is a snippet

    EDIT, nevermind, I see the issue with readBytes. That will need to be fixed.
  48. Replies
    176
    Views
    13,720

    Serial.printf("%lu: cb_trans contains = %d...

    Serial.printf("%lu: cb_trans contains = %d elements\n", millis(), cb_trans.back()- frontptr);


    Have you tried using the now pointed to array as references? &frontptr &xxxx.back() etc
    ...
  49. Replies
    176
    Views
    13,720

    Front and back are just a pointer in CBA....

    Front and back are just a pointer in CBA. Example:

    cb_trans.front()[2];

    This basically gives you the data stored in indice 2 of the front of the queue. Same goes for back(). This is just a...
  50. Replies
    176
    Views
    13,720

    The type for the buffer, is guarenteed to be the...

    The type for the buffer, is guarenteed to be the type you used in the template constructor. uint8_t, it is impossible for the compiler to generate a different type than the one you specified to the...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4