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

  1. Alternate pins are possible but not yet...

    Alternate pins are possible but not yet implemented in the library, it will be added soon though
  2. Replies
    143
    Views
    7,577

    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...
  3. Replies
    143
    Views
    7,577

    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...
  4. Replies
    201
    Views
    16,617

    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,...
  5. Replies
    143
    Views
    7,577

    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...
  6. Replies
    10
    Views
    235

    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...
  7. Replies
    201
    Views
    16,617

    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...
  8. Replies
    13
    Views
    153

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

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

    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
  10. Replies
    122
    Views
    8,373

    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...
  11. Replies
    143
    Views
    7,577

    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...
  12. Replies
    143
    Views
    7,577

    Ok, ill check that out after the DMA code

    Ok, ill check that out after the DMA code
  13. Replies
    143
    Views
    7,577

    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...
  14. Replies
    10
    Views
    170

    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...
  15. Replies
    10
    Views
    170

    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...
  16. Replies
    201
    Views
    16,617

    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,...
  17. Replies
    201
    Views
    16,617

    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...
  18. Replies
    201
    Views
    16,617

    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...
  19. Replies
    201
    Views
    16,617

    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...
  20. 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...
  21. Replies
    176
    Views
    13,313

    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,...
  22. Replies
    176
    Views
    13,313

    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...
  23. Replies
    176
    Views
    13,313

    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...
  24. Replies
    176
    Views
    13,313

    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?
  25. 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
  26. Replies
    176
    Views
    13,313

    Ok try the patch ...

    Ok try the patch

    https://github.com/tonton81/Circular_Buffer

    Test example:



    #include "circular_buffer.h"
  27. Replies
    176
    Views
    13,313

    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.
  28. Replies
    176
    Views
    13,313

    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
    ...
  29. Replies
    176
    Views
    13,313

    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...
  30. Replies
    176
    Views
    13,313

    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...
  31. Replies
    176
    Views
    13,313

    Have you checked .size() for number of elements?...

    Have you checked .size() for number of elements? Perhaps your calculation is wrong, try size() to confirm

    back() and front(), by the way show the byte in either head or tail of the queue

    In...
  32. Replies
    176
    Views
    13,313

    Dont worry, theres more features there than you...

    Dont worry, theres more features there than you realize, which makes data entry and data lookups one of the excellent features of circular arrays. :)
  33. Yes when i made the function in previous...

    Yes when i made the function in previous libraries in past i made them weak, in case some other user code or library implemented their own.
  34. Replies
    176
    Views
    13,313

    1 is correct, but back is a READ pointer as well....

    1 is correct, but back is a READ pointer as well. Thats how you pull LIFO.
    size and available are the same, due to common usages between programmers, spme may prefer one over the other. Capacity is...
  35. That is true, but in the case of a T3.2 there is...

    That is true, but in the case of a T3.2 there is only one bus instantiated.
    On a T3.6, you can instantiate 2 CAN controllers, except this time unlike last libraries, choosing one won't duplicate...
  36. Replies
    176
    Views
    13,313

    I could add print(ln) to circular arrays, it just...

    I could add print(ln) to circular arrays, it just wasnt added because it was just implemented in the buffer instead. If i do add it, though, since text has an arbitrary size, you will need the...
  37. Templates are awesome, objects are created during...

    Templates are awesome, objects are created during compile time, very different than run time objects. FlexCAN_T4 demonstrates how compile time objects can be linked to run time objects, in order to...
  38. Replies
    176
    Views
    13,313

    print_test is a multidinensional array. The print...

    print_test is a multidinensional array. The print functions are for the circular buffers not circular arrays, it stays at 0 because the function aborts. This is expected
  39. Replies
    176
    Views
    13,313

    When you do a read it pulls the item out of...

    When you do a read it pulls the item out of queue, by the time you check the size it'll be empty
  40. Replies
    143
    Views
    7,577

    Mailboxes are there even though you use FIFO or...

    Mailboxes are there even though you use FIFO or not, depends how advanced the configuration is set by the user. FIFO technically can't tell you how many are in queue (1-6), only yes or no, typically...
  41. Replies
    143
    Views
    7,577

    It will return 0 of there are no more messages...

    It will return 0 of there are no more messages filling one or more mailboxes. 1 is returned when at least one mailbox was read of an available message. There is no other way of counting especially if...
  42. Replies
    143
    Views
    7,577

    What do you mean? ((Can0.events() & 0xFFF000) >>...

    What do you mean? ((Can0.events() & 0xFFF000) >> 3) will show if there are frames in queue (in interrupt mode). Is that what you meant or you mean polling mode? None exists at the moment for poll...
  43. Replies
    10
    Views
    222

    Don't forget when changing the SPI mode to do a...

    Don't forget when changing the SPI mode to do a dummy read before asserting the line to communicate, this will put the clock to a known high or low state for next transfer and probably wouldnt have...
  44. Replies
    143
    Views
    7,577

    Do you have proper termination on the lines?...

    Do you have proper termination on the lines? Verify the transceiver is not crosswired to the CAN network as well, the code looks ok so far, and your printing to serial monitor what your sending as...
  45. Replies
    387
    Views
    12,778

    Yes, USB3 supports ~1500mA on the port itself...

    Yes, USB3 supports ~1500mA on the port itself while USB2 supports 500mA, thats why USB2 drives require a 2nd USB port for power (1A combined) while USB3 can just use a single port

    All USB3 drives...
  46. Replies
    143
    Views
    7,577

    You can't modify msg in callback because its read...

    You can't modify msg in callback because its read only, you can copy it then modify the copy

    CAN_message_t theCopy = msg; // copy it
    theCopy.seq = 1;

    The data 0xFF looks good, just make sure...
  47. Replies
    143
    Views
    7,577

    You can send both onReceive to same callback if...

    You can send both onReceive to same callback if you wish to handle it in one function, each frame has a msg.bus (1,2,3 is returned for CAN1,CAN2, amd CAN3.

    To send frames ordered sequentially, you...
  48. Yes printing too fast can actually lag the java...

    Yes printing too fast can actually lag the java window enough that the IDE freezes to a halt
    Same thing happens with full page refreshing in canbus debugger im working on, 1ms can lock up the IDE...
  49. Replies
    143
    Views
    7,577

    Yup that looks good, will add it today or...

    Yup that looks good, will add it today or tomorrow as a 2.0 example, the FD beta example needs to be updated as well.
  50. Replies
    143
    Views
    7,577

    Try using Can0.setClock(CLK_60MHz) then do...

    Try using Can0.setClock(CLK_60MHz) then do setBaudRate after that, check if you have timing issues with that after. I am using skpang's breakout board in my car with a retail Teensy 4, it has triple...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4