Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: bvernham

Page 1 of 3 1 2 3

Search: Search took 0.00 seconds.

  1. Replies
    804
    Views
    82,709

    Winner winner chicken dinner! Moving the MaxMB...

    Winner winner chicken dinner!

    Moving the MaxMB to after begin did it!!

    0.002171 2 0x18FF1000 8 0x00 0x00 0x01 0x32 0x00 0x00 0x00 0x00...
  2. Replies
    804
    Views
    82,709

    Nope, I was wrong. I was mistaken by the...

    Nope, I was wrong. I was mistaken by the re-flash vs power cycle.

    I flashed with "accept_all" and confirmed all received frames were being accepted in MB 4. I power cycled the the controller and...
  3. Replies
    804
    Views
    82,709

    I see the following new functions (notepad ++...

    I see the following new functions (notepad ++ compare):

    bool error(CAN_error_t &error, bool printDetails);
    Circular_Buffer<uint32_t, 16> busESR1;
    Circular_Buffer<uint16_t, 16> busECR;
    ...
  4. Replies
    804
    Views
    82,709

    For get the previous post. Doesn't matter as...

    For get the previous post. Doesn't matter as soon as I power cycle the controller I do not get a interrupt call back from CAN3....really weird.
  5. Replies
    804
    Views
    82,709

    #define CAN_Clock CLK_60MHz //Enumeration for...

    #define CAN_Clock CLK_60MHz //Enumeration for CAN clock speed.

    How his this done?

    I used "accept_all" to determine is was something with the filter because if I accept all messages are...
  6. Replies
    804
    Views
    82,709

    OK, I have a new one. I have some intermittent...

    OK, I have a new one.

    I have some intermittent glitch in which CAN3 will not receive. I have all 3 CAN controllers receiving the same messages (on the same bus).

    The scenario is that am...
  7. Replies
    13
    Views
    557

    teensy41.menu.usb.mtp=MTP Disk (Experimental)...

    teensy41.menu.usb.mtp=MTP Disk (Experimental)
    teensy41.menu.usb.mtpserial.build.usbtype=USB_MTPDISK_SERIAL
    teensy41.menu.usb.mtp.fake_serial=teensy_gateway

    I added the above based on the below...
  8. collect2.exe: error: ld returned 1 exit status

    Never mind....fixed my one problem.

    Thanks


    Bruce
  9. Replies
    6
    Views
    180

    For your reference. Brue

    For your reference.

    Brue
  10. Replies
    6
    Views
    180

    Serial works great! I am talking about writing...

    Serial works great!

    I am talking about writing log files to an SD card.

    Thanks for the help anyways.

    Bruce
  11. Replies
    6
    Views
    180

    #include #include I...

    #include <SdFat.h>
    #include <sdios.h>

    I always include sdio.h.

    Do I need to do both?

    Like I said with the DUE, did the above and work as expected.

    Thanks
  12. Replies
    13
    Views
    557

    Got it, thanks!

    Got it, thanks!
  13. Replies
    6
    Views
    180

    Does ofstream in SDFat work with Fat32

    I have used SDFat with Fat and ofstream with never a hick up.

    Try to copy the same code to the Teesnsy 4.1 and nothing.

    I can open, read/write flawlessly with File32 (for some reason when I...
  14. Replies
    13
    Views
    557

    Thanks for the clarification. What version of...

    Thanks for the clarification.

    What version of Arduino IDE and Teensyduino are you using?

    Thanks
  15. Replies
    13
    Views
    557

    Unfortunately I am one of those heathen Windows...

    Unfortunately I am one of those heathen Windows people so I need to modify the cores as in the GitHub Page?

    When I flash the code to I select MTP in the Serial drop down?

    Thanks for the help.
    ...
  16. Replies
    13
    Views
    557

    PS I am running Arduino IDE 1.8.15 and...

    PS I am running Arduino IDE 1.8.15 and Teensyduino 1.5.4 Beta 9 so I am interested to understand what Teensy4,1 core changes are necessary.

    I did find the github page but I am not sure what is...
  17. Replies
    13
    Views
    557

    Can you share a sample sketch? When I flashed my...

    Can you share a sample sketch? When I flashed my serial as MTP I could not connect to the serial monitor. Any guidance on using mtp? I looked online but there is very little mentioned except it is...
  18. Replies
    13
    Views
    557

    So I still want to use the USB for debug/status...

    So I still want to use the USB for debug/status via USB when the system is receiving CAN data and be able to monitor basic system activity.

    MTP disk precludes serial communications.

    Same issue...
  19. Replies
    13
    Views
    557

    Serial File Transfer

    I am looking for a way to transfer files to and from a Teensy4.1 and basic file management. I will do this "offline" when the Teensy is not being bombarded with lots of CAN data X3. I have seen...
  20. Replies
    1
    Views
    128

    getTeensy3Time

    Well, when you are still recovering from food poisoning it is not so easy to concentrate.

    It is a function....got it.

    Thanks

    Bruce
  21. Replies
    1
    Views
    128

    Teensy 4.1 Time

    Helps if you use the right example. What I ran the TimeTeensy3....bingo



    Thanks

    Bruce
  22. Replies
    804
    Views
    82,709

    distribute() seems to fix the issue. With...

    distribute() seems to fix the issue.

    With distribute and enhanced filter does it matter what ID I assign (via filter) to what MB?

    Should I put the higher priority ID's (lower numerical value)...
  23. Replies
    804
    Views
    82,709

    Got it, it is not matching on the correct MB; ...

    Got it, it is not matching on the correct MB;



    It is supposed to match on MB9:

    RX MB 8 EXT ID: 8:18FF5000,18FF5000/9:18FF4F00,18FF4F00
    RX MB 9 EXT ID:...
  24. Replies
    804
    Views
    82,709

    Well, the table is already volatile volatile...

    Well, the table is already volatile

    volatile uint32_t mb_filter_table[64][6];.

    Will move public and see if I can get it to list out.


    OK so after I finish assigning all the MB filters, I am...
  25. Replies
    804
    Views
    82,709

    Going deeper on "mb_filter_table[mb_num][i+1]"

    So just to make sure I was not messing something up I did this:

    FCTP_FUNC bool FCTP_OPT::setMBFilter(FLEXCAN_MAILBOX mb_num, uint32_t id1, uint32_t id2) {
    ...
  26. Replies
    804
    Views
    82,709

    See my next post...there are no duplicate ID's. ...

    See my next post...there are no duplicate ID's.

    The point is I am receiving some messages but not others when enhanced filter is on.

    Don't enable enhanced filter, it is received as expected.
    ...
  27. Replies
    804
    Views
    82,709

    I put a few Serial print statement in your code...

    I put a few Serial print statement in your code to see what was going on in the
    filter_match(FLEXCAN_MAILBOX mb_num, uint32_t id).

    Something is getting garbled in
    mb_filter_table[mb_num][i+1] ...
  28. Replies
    804
    Views
    82,709

    As I said, I am not using userfilter . I am...

    As I said, I am not using userfilter .

    I am uisng

    myCAN[channel]->setMBFilter((FLEXCAN_MAILBOX)i, id1, id2);
    myCAN[channel]->setMBFilter((FLEXCAN_MAILBOX)i, id1)
  29. Replies
    804
    Views
    82,709

    Having enhancedfilter problems on random extended ID's only.

    So first question is does enhanced filtering make since for a MB filter with one ID? I think the answer is it does not matter because it should not bleed through,

    But for MB filter with multiple...
  30. Replies
    86
    Views
    8,532

    Actually the included SDFat library seem to be 1...

    Actually the included SDFat library seem to be 1 step behind the github release.

    The issue is that all of a sudden "File" is not recognized but "File32" is so it sees the library but why is it...
  31. Replies
    86
    Views
    8,532

    SDFat issue

    So I have a sketch that compiles in fine in Arduino 1.8.13/Teensyduino 1.53. So I just downloaded a clean copy of Arduino 1.8.15Teensyduino 1.54 beta #9 and I get compile errors.

    One was the...
  32. Replies
    3
    Views
    285

    I am using Arduino 1.8.13 and the latest Teensy...

    I am using Arduino 1.8.13 and the latest Teensy duino.

    Cout is not the issue at I replaced a println with cout in the setup and had no impact on the memory usage:



    Anyways just looking for...
  33. Replies
    3
    Views
    285

    Teensy 4.1 Dynamic Memory Usage

    Is there a way to find out where the RAM is going.

    I have a bunch of defines set up for diagnosing stuff.

    Instead of doing a giant debug I am going piece by peace.

    So each debug is just a...
  34. Replies
    804
    Views
    82,709

    SA is source address. Sometimes when just...

    SA is source address. Sometimes when just monitoring J1939 you do not care about the source of the message just the PGN of the message.



    Thanks

    Bruce
  35. Replies
    804
    Views
    82,709

    29 bit mask

    So the 29 bit mask looks like

    3C0FF
    3E315
    3FEFC
    3FAF4
    3FEFF
    3FFFF
    3FFFF
    3FFFF
  36. Replies
    804
    Views
    82,709

    Right now I do not plan on masking 11 bit ID only...

    Right now I do not plan on masking 11 bit ID only 29 bit/J1939 ID's so that is where I will starts.

    Thanks for the patience.

    Bruce
  37. Replies
    804
    Views
    82,709

    Of all the things that could be messed up, you...

    Of all the things that could be messed up, you can not cast the baud rate calc as an uint16_t.

    That certainly is a "smack your forehead against a brick wall moment.

    So this is what the captured...
  38. Replies
    804
    Views
    82,709

    No callback

    That is the problem.

    I am setting up the MB correctly because it shows up in MBStatus.

    I am accepting all frames but I get no call back...makes no sense.

    I thought events() was for FIFO? ...
  39. Replies
    804
    Views
    82,709

    Well I replaced the user filter for the...

    Well I replaced the user filter for the setmbfilter for the standard frames.

    Nothing.

    So then I bypassed all the filter setting and put setmbfilter accept all and still nothing. I can't...
  40. Replies
    804
    Views
    82,709

    For J1939 the don't care would be the SA and the...

    For J1939 the don't care would be the SA and the rest would need to go the the necessary MB.

    For setMBUserFilter, if I only set one ID then should the mask just be all F's? because I only want to...
  41. Replies
    804
    Views
    82,709

    As in the modified example code above I set 4 I'd...

    As in the modified example code above I set 4 I'd of a dozen or so on the bus with setmbuserfilter and used 07ff as the mask. Only mb0 was receiving. I switched to setmbfilter and then only 4 IDs...
  42. Replies
    804
    Views
    82,709

    Thanks...Bruce

    Thanks...Bruce
  43. Replies
    804
    Views
    82,709

    So what happens when I use it with...

    So what happens when I use it with setmbuserfilter? I can't use a mask to ignore J1939 SA and use enhancefilter?

    That still does not explain why I can't use a 7ff mask with the setmbuser filter...
  44. Replies
    804
    Views
    82,709

    For the std frame I was using 0x7ff as the mask...

    For the std frame I was using 0x7ff as the mask in the example. In my code I did both 0x7ff and 0...neither worked. Could it have something to do with "enhance filter". As you can see above in the...
  45. Replies
    804
    Views
    82,709

    Yes

    I used one of the FIFO examples to confirm my CAN bus hardware is good.

    I am using SavvyCAN and GRVET hardware. Thanks Collin. He has help me with Due CAN also.

    Anyways so then I went for it....
  46. Replies
    804
    Views
    82,709

    I am using setMBUserFilter so I can use the mask...

    I am using setMBUserFilter so I can use the mask so I can eventually do J1939 ID filtering (not implemented yet). This is why I am trying to grab the protocol type from the DBC file.

    As you can...
  47. Replies
    804
    Views
    82,709

    OK...I am stumped.

    By set up and CAN sourced are confirmed with the examples so I do not think that is the issue.

    Read in the DBC file and set the filters. There are only 45 ID's so 1 ID per filter.

    Set the...
  48. Replies
    804
    Views
    82,709

    freeze

    So the whole system (other than just the CAN) can be set up before filling up all the MB with message which will call an interrupt to clear it.
  49. Replies
    804
    Views
    82,709

    I am just wondering if FLEXCAN_EnterFreezeMode...

    I am just wondering if FLEXCAN_EnterFreezeMode would help avoid having MB fill up on one controller while another controller or some other device is set up? I envision set up a controller, freezing...
  50. Replies
    804
    Views
    82,709

    Can you explain the following functions: ...

    Can you explain the following functions:

    FLEXCAN_EnterFreezeMode

    and

    enableDMA

    Thanks
Results 1 to 50 of 118
Page 1 of 3 1 2 3