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

Search:

Type: Posts; User: CollinK

Search: Search took 0.00 seconds.

  1. Replies
    151
    Views
    59,355

    Can0.available will only be satisfied if you...

    Can0.available will only be satisfied if you actually receive some messages. If you get no messages it'll never be true (well, it returns the number of waiting frames so 0 which is false if no...
  2. That's unfortunately a very well known issue with...

    That's unfortunately a very well known issue with SD Card writing - for all devices. It isn't some sort of Teensy 3.6 issue. Anything that writes to an SDCard will experience this. There are a couple...
  3. Replies
    1
    Views
    807

    5V SPI With Teensy 3.5?

    Let's say I have a set of devices that talk over SPI and they use 5V SPI. The Teensy 3.5 says it is 5V tolerant on all digital pins. I am assuming this means that feeding 5V to MISO on the Teensy 3.5...
  4. Replies
    151
    Views
    59,355

    Yeah, bitwise functionality almost certainly...

    Yeah, bitwise functionality almost certainly doesn't belong in a CAN library but I could write some simple routines and make a header or something that people could download separately. But, you're...
  5. Replies
    151
    Views
    59,355

    What sort of functions are you looking for...

    What sort of functions are you looking for specifically? Would it be helpful to have a function that takes a byte and bit and returns that bit? Or, a byte and a bit range and returns the value...
  6. Replies
    151
    Views
    59,355

    Well, it could be a complex question. My repo at...

    Well, it could be a complex question. My repo at https://github.com/collin80/FlexCAN_Library is up to date with all the latest changes and the API hasn't changed since last you knew so it should be...
  7. Replies
    4
    Views
    1,500

    Here is where I asked and got some answers: ...

    Here is where I asked and got some answers:

    https://forum.pjrc.com/threads/28173-Teensy-3-x-NATIVE-USB-HOST-PREVIEW-AVAILABLE/page4

    Briefly, yes, they're working on it but host mode is going to...
  8. Replies
    4
    Views
    1,500

    I had asked this question before as well. I also...

    I had asked this question before as well. I also want to see 480mb USB. It appears that it is on Paul's list of things to do but not right up there in the "immediately work on this" category. So, for...
  9. Replies
    151
    Views
    59,355

    This same thing happened to TurboStreetCar. The...

    This same thing happened to TurboStreetCar. The most likely explanation is that you have only two devices on the CAN bus, one sending, one receiving. The issue is that the receiving side is not...
  10. Replies
    151
    Views
    59,355

    OK, I think I'm up to date with all of the...

    OK, I think I'm up to date with all of the changes now. I've snagged all the new pictures, updated the code to support the alternate pins on the 3.5 Teensy, added the RTR code just for the heck of it...
  11. Replies
    151
    Views
    59,355

    Thanks, yeah, I did see the changes as I've...

    Thanks, yeah, I did see the changes as I've subscribed to both your and Teachop's repo so I get a notification every time a new commit happens. I'm going to try to get all of the various bits merged...
  12. Replies
    151
    Views
    59,355

    Yes, the example sketches were pretty basic. I...

    Yes, the example sketches were pretty basic. I also have a special sketch for CAN capture and it does set multiple mailboxes. If you get up to really fast reception rates then I could see how a...
  13. Replies
    48
    Views
    11,288

    Yes, the ESP32 has a hardware multiplexer that...

    Yes, the ESP32 has a hardware multiplexer that can move functionality around to the various pins where you need it. But, this does yield a slight delay (2 or 3 cycles I think) and I don't remember if...
  14. Replies
    48
    Views
    11,288

    I have a few Teensy 3.6 units and I have a few...

    I have a few Teensy 3.6 units and I have a few ESP32 WROOM32 boards. The documentation surrounding the Teensy platform is about 1000x better than the documentation for the ESP32. The ESP32 libraries...
  15. Replies
    151
    Views
    59,355

    Yeah, I don't think that the problem is really...

    Yeah, I don't think that the problem is really the HVD230. Such a transceiver should work fine. It just appears that some people have gotten broken chips from some shady place or something. Those...
  16. Replies
    151
    Views
    59,355

    I usually use the HVD232 which is still in the...

    I usually use the HVD232 which is still in the same class, it just doesn't have the listen only functionality. Usually I get my parts from DigiKey or Mouser. I kind of randomly pick one over the...
  17. Replies
    151
    Views
    59,355

    If it won't transmit at all then therein lies the...

    If it won't transmit at all then therein lies the trouble. Setting ACK is a form of transmission so if you can't send you can't ACK and then you'll get the message infinite times. I haven't used the...
  18. Replies
    151
    Views
    59,355

    It is handled by the hardware within the MCU on...

    It is handled by the hardware within the MCU on the Teensy. ACK works like this:

    1. The sender produces a frame and leaves the ACK bit recessive.
    2. The sending node actually listens to the...
  19. Replies
    118
    Views
    58,634

    So, it appears the library author resurfaced but...

    So, it appears the library author resurfaced but everyone forgot about my question above. Briefly, what is the likelihood that this library would support high speed USB client mode connection to a...
  20. Replies
    151
    Views
    59,355

    I just committed a new version of the library....

    I just committed a new version of the library. There are two new things.

    Now listen only mode is supported if you want to use it. But, it's not something I'd recommend you use unless you know...
  21. Replies
    151
    Views
    59,355

    [QUOTE=TurboStreetCar;127935]Well i believe the...

    That's consistent with a bus where frames are not being acknowledged. Quite quickly any sending node is going to run out of buffers.



    There is almost always a way to set the hardware to attempt...
  22. Replies
    151
    Views
    59,355

    The read function is supposed to clear the...

    The read function is supposed to clear the buffer. If it had stopped when you pulled CANH and/or CANL then I would have guessed that you were in listen only mode somehow. On a CAN bus a frame gets...
  23. Replies
    151
    Views
    59,355

    It generally is not advisable to attempt to use...

    It generally is not advisable to attempt to use the CAN hardware without a transceiver. Technically it could possibly work in some circumstances but really the CAN Rx/Tx lines were never meant to be...
  24. Replies
    11
    Views
    2,284

    The pawelsky version is pretty much drop-in...

    The pawelsky version is pretty much drop-in compatible with the FlexCAN library that comes with the TeensyDuino installation (as far as I know the one that comes with the installation is the teachop...
  25. Replies
    151
    Views
    59,355

    It doesn't really matter what the directory is...

    It doesn't really matter what the directory is called. The IDE finds the files just the same. The only reason to care about the folder name is so that you know what it is if/when you look at the...
  26. Replies
    151
    Views
    59,355

    Well, there is a copy of the FlexCAN library that...

    Well, there is a copy of the FlexCAN library that gets installed with the Teensyduino files. You can override it by placing my version in your libraries folder contained within your user folder. For...
  27. Replies
    8
    Views
    2,012

    Thank you for the very thorough analysis. It...

    Thank you for the very thorough analysis. It appears I was getting 3.75Mhz then which is fine with me. The comm was actually working so I wasn't so concerned I just couldn't understand why the clock...
  28. Replies
    8
    Views
    2,012

    Hmm, interesting, yes that might explain a few...

    Hmm, interesting, yes that might explain a few things. From the sound of it I might be better off with 3MHz for the bus speed since that does divide cleanly into 30MHz. I wonder if it used a divider...
  29. Replies
    8
    Views
    2,012

    SPI clock not uniform?

    8926

    The above is a picture from Saleae Logic of an SPI transaction that happened on a Teensy 3.6 with an Adafruit Bluefruit LE SPI module. Hopefully it shows up how odd the clock signal looks....
  30. Replies
    151
    Views
    59,355

    Are you sure you're using my version of the...

    Are you sure you're using my version of the FlexCAN library? The sketch you posted seems to be meant for the other two versions of the library. If you really are using my version then look at the...
  31. Replies
    13
    Views
    3,564

    The processor in the Teensy supports nested...

    The processor in the Teensy supports nested interrupts. You can literally interrupt an interrupt. So, I don't see why it shouldn't be possible for the CAN code to interrupt the sdcard code so long as...
  32. Replies
    13
    Views
    3,564

    I'm actually porting the GVRET code over to...

    I'm actually porting the GVRET code over to Teensy so that I can use the new FlexCAN interrupt driven code along with the on-board sdCard slot to do logging to sdCard with dual CAN. My goal is to use...
  33. Replies
    118
    Views
    58,634

    I want to be able to use the high speed USB pins...

    I want to be able to use the high speed USB pins on the Teensy 3.6. It *seems* like the UHS30 library is the closest thing to such a library. But, it also seems to be geared toward creating a USB...
  34. Replies
    151
    Views
    59,355

    Yes, I should have tried to compile for 3.2 even...

    Yes, I should have tried to compile for 3.2 even though I don't have one in front of me. I'll put the proper defines around all of the second canbus stuff so that it actually does compile on the...
  35. Replies
    13
    Views
    3,298

    Yeah, I don't mind it not automatically...

    Yeah, I don't mind it not automatically installing. I just found it odd that the rules file is not even included in the installation. I had to go online and look for it along with the instructions...
  36. Replies
    151
    Views
    59,355

    That's not a bad idea. The two examples I...

    That's not a bad idea. The two examples I included both do send. They're both for the Teensy 3.6 and use one CAN bus to send to the other. That way you can see both sending and receiving. But, both...
  37. Replies
    151
    Views
    59,355

    Another fork of FlexCAN

    I was saying to myself "What the world needs is yet another fork of the FlexCAN library" so, I did that.

    https://github.com/collin80/FlexCAN_Library

    This is a fork of a fork (I forked...
  38. Replies
    13
    Views
    3,298

    Yeah, I had thought that maybe I should be trying...

    Yeah, I had thought that maybe I should be trying to flash the LED but then I told myself it wouldn't matter. The lies we tell ourselves... And, I knew better than to run the IDE as root but I've...
  39. Replies
    13
    Views
    3,298

    Indeed, 49-teensy.rules fixed the problem. I...

    Indeed, 49-teensy.rules fixed the problem. I don't know why it locks up on me if I'm running the Arduino IDE sudo but it sure does. Applying the proper udev rules file and running as my normal user...
  40. Replies
    13
    Views
    3,298

    Thanks for the suggestions. I'm finding all of...

    Thanks for the suggestions. I'm finding all of this weird because I compile Arduino Due sketches constantly and I've never had this trouble... Well, new results:

    In Windows 10 (I can dual boot) it...
  41. Replies
    13
    Views
    3,298

    All sketches lock up on Teensy 3.6 for me

    Yes, every sketch. Any sketch. It is always after a seemingly determinate amount of time: something like 1.4 seconds.

    Here's a test sketch that still locks up on me:


    void setup() {
    ...
Results 1 to 41 of 41