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
    46
    Views
    2,261

    Sticky: 1) 64 bytes, the hardware has FIFO, thats not...

    1) 64 bytes, the hardware has FIFO, thats not included in the standard 64bytes of the driver
    2) inclusive
    3) always use a mutex, should be fine
  2. Replies
    801
    Views
    81,978

    yeah it's still open on github's issue tracker, a...

    yeah it's still open on github's issue tracker, a user requested it so i added it in



    CAN_error_t error; /* create a message struct to store the queue details, for data accesses */
    ...
  3. Replies
    801
    Views
    81,978

    Okay, so you can reproduce it. Basically a...

    Okay, so you can reproduce it. Basically a restart doesn't work but a reflash does, which is weird still.

    I always reinitialize the registers whenever enableFIFO or begin() is called, so they are...
  4. Replies
    801
    Views
    81,978

    So just to confirm, for CAN3, it only shows this...

    So just to confirm, for CAN3, it only shows this symptom only when using filtering, and works perfect otherwise?

    I double checked the register locations and they are inlined same as other 2...
  5. Replies
    801
    Views
    81,978

    That is clearly odd, the hardware layout and code...

    That is clearly odd, the hardware layout and code is identical on all 3 busses, perhaps you can try other things?

    adjusting the can clock to max speed 60MHz,
    try changing NVIC priority for CAN3?...
  6. yeah so it is sketch based, i guess for a demo...

    yeah so it is sketch based, i guess for a demo that could be one :)
  7. yeah i can see something like that in the...

    yeah i can see something like that in the callback itself in the sketch, where a user can write or read, or....

    we could add a method as well to auto store and retrieve the data, but how do we...
  8. I have never used DMA so I wouldn't know, but I...

    I have never used DMA so I wouldn't know, but I don't see why not
    probably only needs to be put in the callback itself, or if theres any housework involved before user code it can be put as part of...
  9. if you want to go a buffer route, Circular_Buffer...

    if you want to go a buffer route, Circular_Buffer supports median(), average(), variance(), and deviation()
  10. the software doesn't handle transfers on the bus,...

    the software doesn't handle transfers on the bus, it's all hardware, software only loads the data, then the hardware takes over, you'll need to try it out
  11. FlexCAN Library doesn't have wake capability, use...

    FlexCAN Library doesn't have wake capability, use FlexCAN_T4 for 3.x/4.x, wakeup support was added awhile ago
  12. I guess your not using WDT_T4, it's enabled there

    I guess your not using WDT_T4, it's enabled there
  13. include 1 library at a time until it starts to...

    include 1 library at a time until it starts to fail, also make sure you call the exact same functors used by it, because not using certain functions they will be compiled out, then using the function...
  14. the watchdog interrupt is an interrupt, shouldn't...

    the watchdog interrupt is an interrupt, shouldn't the variable be volatile?
  15. that error usually means that you have a functor...

    that error usually means that you have a functor declaration in a class but the actual functor is missing (in the cpp), perhaps it was compiled out during that specific optimisation
  16. yeah WDT3 doesn't care even if your callback...

    yeah WDT3 doesn't care even if your callback ain't finished it'll reboot :)

    the other ones WDT1/2 you can set the time before reset, like 1 second or so if wanted

    Use the best of both worlds?...
  17. why not write to eeprom, the watchdog allows a...

    why not write to eeprom, the watchdog allows a watchdog callback before the reset occurs, and you can program the time between the watchdog callback and the reset to allow you to complete tasks...
  18. Thread: 3 Wire SPI

    by tonton81
    Replies
    6
    Views
    185

    The hardware should support it, according to the...

    The hardware should support it, according to the RM, but no it's not in library support that I know of.
  19. Thread: 3 Wire SPI

    by tonton81
    Replies
    6
    Views
    185

    you mean just writing to slave without receiving?...

    you mean just writing to slave without receiving? yes then just dont use the input pin
  20. your RPM should be broadcasted on the bus, but if...

    your RPM should be broadcasted on the bus, but if latency is an issue you can request the PID for it to receive it within 2-5Hz rates, the bus one should be broadcasted live without the requests, I...
  21. connect teensy to CAN of bike, and read the RPM...

    connect teensy to CAN of bike, and read the RPM over the network?
  22. Replies
    4
    Views
    249

    you can go for feet without hastle, so long as a...

    you can go for feet without hastle, so long as a pullup is near the teensy pin, the internal pullup should be fine too, don't try this for stuff like SPI or I2C, buttons are fine
  23. Replies
    26
    Views
    20,024

    Use 83333, according to my ESP32 driver...

    Use 83333, according to my ESP32 driver calculation, that is closer to the rate you want when I inputted 83300

    another user has a problem using 95000, when I used the driver calculation return...
  24. Replies
    26
    Views
    20,024

    should be TX to TX and RX to RX for CAN, i guess...

    should be TX to TX and RX to RX for CAN, i guess it's a custom baudrate you are running? or it's the specs of the device you're connecting to?
  25. think you're referring to memcpy

    think you're referring to memcpy
  26. i would memmove the struct as a byte array then...

    i would memmove the struct as a byte array then write that to file, then when reading back the bytes to an array, memmove the array back into the struct. I did this in FlexCAN_T4 for CAN frames (well...
  27. get ethernet working, then connect it to an...

    get ethernet working, then connect it to an access point, configure the access point to connect to your wifi
  28. Replies
    801
    Views
    81,978

    the lowest mailbox (granted they are free to...

    the lowest mailbox (granted they are free to receive) receives first, the last mailbox (if all full) always gets overridden if overflow occurs. If a message is destinated for one mailbox only, and no...
  29. Replies
    801
    Views
    81,978

    not sure I havn't faced this issue before or...

    not sure I havn't faced this issue before or looked at it yet, ok, you dont need a base class if you use the template object directly to print the table, just make it public and use...
  30. Replies
    801
    Views
    81,978

    hmm that is indeed weird, yes if you want to try...

    hmm that is indeed weird, yes if you want to try modifying the table move it from private to public, maybe after you set all the IDs and filters you can print out the table list so you can cross...
  31. Replies
    801
    Views
    81,978

    so unneeded id's are bleeding through? and did...

    so unneeded id's are bleeding through? and did you make sure all other mailboxes are setup, or refusing messages with exception ids, if a couple of message boxes have the same id & filter, other...
  32. Replies
    801
    Views
    81,978

    enhancedfilter was not meant for custom user...

    enhancedfilter was not meant for custom user filters, only the automatic filtering as it's ID based masking based off ANDing the calculated mask, a custom mask on the other hand, ANDing the mask with...
  33. Replies
    26
    Views
    20,024

    no you need a transceiver, you can use 3.3v...

    no you need a transceiver, you can use 3.3v transceivers, or "some" 5v transceivers *that communicate* at 3.3v logic levels
  34. Replies
    28
    Views
    595

    See here for yield() which runs after every loop,...

    See here for yield() which runs after every loop, can be overridden if you supply a blank function so it doesn't do unnecessary background processing, or put a while loop within the loop and make...
  35. Replies
    801
    Views
    81,978

    FIFO is RX only, the mailboxes can be used for...

    FIFO is RX only, the mailboxes can be used for either transmit or receive. FIFO has ordered frames while mailboxes can receive in any order. If you are looking for consistancy, use FIFO. The FIFO...
  36. you can also cut the red wire on the USB cable...

    you can also cut the red wire on the USB cable instead of cutting the trace. this way you can use the USB as a data only cable without power. It is not a good idea to source power from 2 places as...
  37. Replies
    7
    Views
    304

    you'll have to hook it up to find out, primarily...

    you'll have to hook it up to find out, primarily you need to know:

    1) if it truely is a CAN bus on the AC
    2) you need to know the baudrate in order to talk to it
    3) you'll have to start...
  38. Replies
    801
    Views
    81,978

    most people will pick FIFO for simplicity and...

    most people will pick FIFO for simplicity and ordered receptions, the FIFO example with interrupts is a good base to start with. MB is fine if you don't cared about ordered frames on the bus, mostly...
  39. Thread: help buy

    by tonton81
    Replies
    7
    Views
    817

    vietnamese/chinese couch imports to Canada gets a...

    vietnamese/chinese couch imports to Canada gets a 295% (yes, you read that right) tarriff. I believe the broker fee at DHL (at least in Canada) is about 15$ CDN, the tariff is duties paid to customs...
  40. Replies
    22
    Views
    710

    can you print out the Serial.println(esr) value...

    can you print out the Serial.println(esr) value in the ISR right before it's cleared and post me the value you see?

    make sure LISTEN_ONLY is set in setBaudRate,

    1) value when node A is passive...
  41. Replies
    22
    Views
    710

    yes but with the code in the ISR it should remove...

    yes but with the code in the ISR it should remove LOM if the bus is active no?
  42. Replies
    22
    Views
    710

    Okay well the infinite retries when Node A is...

    Okay well the infinite retries when Node A is passive when teensy boots is probably because the interrupt never fires unless network activity actually fires the ISR (which the code handling we added...
  43. Replies
    22
    Views
    710

    Can you try this one? ...

    Can you try this one?



    //FLEXCANb_ESR1(_bus) |= FLEXCANb_ESR1(_bus);
    uint32_t esr = FLEXCANb_ESR1(_bus);

    if ( esr & FLEXCAN_ESR_ACK_ERR ) {
    FLEXCAN_EnterFreezeMode();
    ...
  44. Replies
    22
    Views
    710

    but it clears the TX mailboxes, are you sure it's...

    but it clears the TX mailboxes, are you sure it's not constantly sending in the loop ? or are they timed? when the loop sends a message then ACK_ERR happens and then the TX is stopped, but if the...
  45. Replies
    36
    Views
    3,537

    yes all the CS to one pin, make sure you have all...

    yes all the CS to one pin, make sure you have all 8 chips with different addresses
  46. Replies
    801
    Views
    81,978

    try 0xFF for filter?

    try 0xFF for filter?
  47. Replies
    22
    Views
    710

    Can you do me a favor and check this, search the...

    Can you do me a favor and check this, search the tpp for:

    FLEXCANb_ESR1(_bus) |= FLEXCANb_ESR1(_bus);
    it's at the end of the ISR

    I need you to comment it out and add this:


    ...
  48. Replies
    22
    Views
    710

    Seems this is known behaviour of flexcan: ...

    Seems this is known behaviour of flexcan:





    Endless sending is a feature haha.......... anyways let's work on it :)
  49. Replies
    22
    Views
    710

    there are also cases where there may be several...

    there are also cases where there may be several teensy nodes on a network that require isotp communication as well before they respond (i talk to an esp32 using isotp over a 3 node bus), introducing...
  50. Replies
    22
    Views
    710

    the software end doesn't do the retransmits, it's...

    the software end doesn't do the retransmits, it's the hardware on it's own, so we need to tackle that issue like you said by throttling or not sending on idle bus, but at the same time, not affect...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4