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
    628
    Views
    54,652

    if you don't use events(), message reception is...

    if you don't use events(), message reception is fired directly to callbacks. I too use CAN button counting for OEM keyfob to control windows and sunroof, obviously you need to count them not in the...
  2. Replies
    14
    Views
    174

    i use a RaspPi 8xmcp23s17 breakout board on...

    i use a RaspPi 8xmcp23s17 breakout board on Teensy4, I only needed to run 6 wires between teensy and the breakoutboard to get 128gpio support at 10mhz
  3. Replies
    628
    Views
    54,652

    mailbox holds one frame only, FIFO holds 6

    mailbox holds one frame only, FIFO holds 6
  4. Replies
    628
    Views
    54,652

    also if a mailbox gets a similar frame in other...

    also if a mailbox gets a similar frame in other than it's own in filter mode, an overrun would occur and the frame would be overwritten. example without filters is, if all the mailboxes fill up...
  5. Replies
    1
    Views
    45

    so you want the CAN on 29 and 30 or 3 & 4? to set...

    so you want the CAN on 29 and 30 or 3 & 4? to set pins as input you must set them as input

    pinMode(pin, INPUT)
  6. Replies
    628
    Views
    54,652

    mailboxes are like a drop box queue, each one can...

    mailboxes are like a drop box queue, each one can hold one receive (or transmit) message, the others wait in line to grab the next one. FIFO (rx only) is 6 messages deep, in reception order....
  7. Replies
    628
    Views
    54,652

    oh good you got it working

    oh good you got it working
  8. Ouch, Strings....... Did you try to comment out...

    Ouch, Strings....... Did you try to comment out all Serial2* calls and see if it freezes? that will rule out serial....
  9. Replies
    628
    Views
    54,652

    voltage seems about right, are the pins maybe...

    voltage seems about right, are the pins maybe reversed?
  10. Replies
    628
    Views
    54,652

    check mailboxStatus(), if all of your TX...

    check mailboxStatus(), if all of your TX mailboxes fill up, you have a bad physical connection, miswire, termination issue, worse case scenario, bad transceiver
  11. that or have the 5v drive a transistor or mosfet...

    that or have the 5v drive a transistor or mosfet to ground the teensy pin
  12. Replies
    7
    Views
    270

    that would be good to have when checking someone...

    that would be good to have when checking someone for fever at entrances and their temperatures are high
  13. Replies
    628
    Views
    54,652

    make sure you have the chip set to normal mode,...

    make sure you have the chip set to normal mode, theres pins that have pullups and pulldowns on that IC and if it's not in normal mode it won't work, @msadie has the same chip as you and claims it...
  14. Replies
    16
    Views
    279

    rule out a PC issue, try another PC

    rule out a PC issue, try another PC
  15. Replies
    335
    Views
    4,751

    With SPI on T4, you can swap MISO and MOSI pins...

    With SPI on T4, you can swap MISO and MOSI pins around via the CR register
  16. you should feed it in your regular code loop and...

    you should feed it in your regular code loop and not a timer, the watchdog has it's own callback should your software freeze up, the callback will be fired so you can do whatever you want there...
  17. longer SPI transactions, like continuous data...

    longer SPI transactions, like continuous data flow? I don't know much about the DMA but I think it's not good for continuous transfers?
  18. Replies
    335
    Views
    4,751

    there could maybe be more micromods in different...

    there could maybe be more micromods in different teensies in future? who knows, but make it specific for the 4.x?



    #if defined(ARDUINO_TEENSY_MICROMOD) && defined(__IMXRT1062__)
  19. Replies
    4
    Views
    183

    pretty good for bench testing too

    pretty good for bench testing too
  20. Replies
    628
    Views
    54,652

    have you tried different clocks? 500k shouldnt...

    have you tried different clocks? 500k shouldnt have issues unless the bus has very specific timings, changing the clock will calculate a different timing even though speeds are same. On the FD end...
  21. Replies
    10
    Views
    346

    The alarm one is working as well! I set the alarm...

    The alarm one is working as well! I set the alarm for 10 seconds:


    #include <Watchdog_t4.h>
    #include <Snooze.h>

    WDT_T4<WDT1> wdt;

    SnoozeUSBSerial usb;
    SnoozeTimer timer;
  22. Replies
    628
    Views
    54,652

    I *think* you wan't to pass an object, but in...

    I *think* you wan't to pass an object, but in templates the objects are not easily passable to functions. However, thats why a base class exists so FlexCAN_T4 can also do it's tasks in background...
  23. Replies
    10
    Views
    346

    Ok, I had to rush out to work today which is why...

    Ok, I had to rush out to work today which is why I said I'll be on this later. I reverted the changes and fixed the library, watchdog is firing at 1second timeout resets if i dont feed it now so...
  24. Replies
    10
    Views
    346

    I think the alarm is resetting the T4.0, I am...

    I think the alarm is resetting the T4.0, I am using the timer and it is working correctly with the latest commit to WDT_T4:
    https://github.com/tonton81/WDT_T4


    Teensy 4.0/4.1 is same processor,...
  25. Replies
    10
    Views
    346

    the suspend function enables it on watchdog...

    the suspend function enables it on watchdog register but i think the deepsleep has to stop the clock it uses as well. I am not sure what clocks deepsleep turns off, or if the wdt one is still active...
  26. windows 7 has a known USB driver bug, posted...

    windows 7 has a known USB driver bug, posted somewhere on the forum several times

    https://www.pjrc.com/teensy/troubleshoot.html
  27. Replies
    15
    Views
    288

    String(zahl) ? why are you using strings? use...

    String(zahl) ? why are you using strings? use character arrays, uses less resources without the heap destructions
  28. Replies
    1
    Views
    95

    write(buffer, size)

    write(buffer, size)
  29. Replies
    12
    Views
    379

    Program mode? you mean reflashing teensy? You can...

    Program mode? you mean reflashing teensy? You can always use an external pin to "feed" the watchdog, or even trigger the reset() call
  30. Replies
    12
    Views
    379

    you can use a watchdog to reset on faults and...

    you can use a watchdog to reset on faults and also you can reset the teensy as well with watchdog.reset()
  31. Replies
    15
    Views
    2,221

    I believe you should goto a system register, paul...

    I believe you should goto a system register, paul posted it somewhere, im not at home. it shows whether it was a POR (full repower or after programming), temperature, or wdt reset. i believe the WDT...
  32. Replies
    7
    Views
    215

    the array for the message struct is 8 bytes,...

    the array for the message struct is 8 bytes, writing past it causes undefined behaviour. this probably wouldn't have happened if you used CANFD as it's buffer is 64 bytes :)

    msg.flags.overrun is...
  33. Replies
    10
    Views
    346

    try setting config.lp_suspend = 1; (it's...

    try setting
    config.lp_suspend = 1; (it's already implemented in the library)
  34. Replies
    7
    Views
    215

    yeah it could be a non standard bitrate (since...

    yeah it could be a non standard bitrate (since you said 500000 worked?)

    on the other thread someone else had issue with 95000 not working. when i told him to try 95238, his network functioned...
  35. constant (if your using only one device on that...

    constant (if your using only one device on that port, unless you switch between devices i guess) is possible. SPI_MST as example constantly pulses the clock by sending data for 2-way communication...
  36. Replies
    7
    Views
    215

    does the loop completely halt? i noticed you're...

    does the loop completely halt? i noticed you're running a non standard baudrate (100000), keep notes that, like on another post someone had issue with 95000 not working, changing the rate a bit...
  37. Replies
    628
    Views
    54,652

    by design if no acknowledgement the hardware...

    by design if no acknowledgement the hardware itself tries to resend, this is what makes canbus reliable for delivery. check for proper termination on the network
  38. Replies
    3
    Views
    115

    pullup resistors on the i2c lines

    pullup resistors on the i2c lines
  39. Replies
    628
    Views
    54,652

    what does it show when you ask for...

    what does it show when you ask for can2.mailboxStatus()?

    If the transmit mailboxes are full, it means your transceiver or bus is not wired or terminated properly.
    second, you are using CAN3 for...
  40. Replies
    6
    Views
    242

    the array is not stored in flash, so how does it...

    the array is not stored in flash, so how does it persist if 4.1 is rebooted?
  41. Replies
    6
    Views
    242

    won't the data be lost when the 4.1 resets?...

    won't the data be lost when the 4.1 resets? shouldn't persistance be part of eeprom emulation as well? perhaps have the data stored in intervals to flash or SD
  42. Replies
    28
    Views
    1,337

    windows 1.0 boot off and ran off of one floppy...

    windows 1.0 boot off and ran off of one floppy disk :)
  43. Replies
    628
    Views
    54,652

    for FD you need to use setClock(CLK_60MHz ) (or...

    for FD you need to use setClock(CLK_60MHz ) (or other clock) if needed to adjust the controller clock as the timings are different for many of it's bitrates. FD mode supports compatible CAN2.0B mode,...
  44. Replies
    19
    Views
    951

    not sure if it helps, but shouldn't begin() be...

    not sure if it helps, but shouldn't begin() be called?
  45. Replies
    628
    Views
    54,652

    yes you can wake up devices on the bus. you need...

    yes you can wake up devices on the bus. you need to let it goto sleep usually and start logging when you wake it up, you'll see the first frame needed that bursts onto the bus. Thats how I wake up...
  46. Replies
    8
    Views
    288

    read the blue 23985 The TJA1051T/3 and...

    read the blue
    23985

    The TJA1051T/3 and TJA1051TK/3 allow for direct interfacing to microcontrollers with supply voltages down to 3 V

    7.2.2 Internal biasing of TXD, S and EN input pins...
  47. Replies
    464
    Views
    111,343

    just make sure the thread exits the scope, return...

    just make sure the thread exits the scope, return or not.
    you know the thread needs a while loop to remain always running, the moment that while loop exits, the thread exits, and the thread stops as...
  48. each usb has it's own registey entry in windows....

    each usb has it's own registey entry in windows. just because 1.... maybe 100 work, and 1 doesn't may or may not be hardware, but it could be a corrupted registry entry for that specific device in...
  49. what about driving some gpios as GND output...

    what about driving some gpios as GND output between those pins?
  50. Replies
    10
    Views
    501

    button chatter, debounce needed. anyways, better...

    button chatter, debounce needed. anyways, better to set state to the gpio result (HIGH (1) or LOW(0)) then set digitalwrite the state, that should solve that problem

    state =...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4