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

Search:

Type: Posts; User: jblaze

Search: Search took 0.00 seconds.

  1. I try to setup filter for can bus. This does not...

    I try to setup filter for can bus. This does not work:



    #include <FlexCAN.h>

    void setup() {

    CAN_filter_t defaultFilter;
  2. Replies
    359
    Views
    203,857

    Remove the explanation mark here: ...

    Remove the explanation mark here:


    if(!CANbus.available()); {
  3. Replies
    359
    Views
    203,857

    Played around a bit and the solution is right...

    Played around a bit and the solution is right here:



    #include <FlexCAN.h>

    unsigned long time=0;
    byte stopper=0;

    class ExampleClass : public CANListener
  4. Replies
    359
    Views
    203,857

    Is it possible to stop/restart the CAN listener...

    Is it possible to stop/restart the CAN listener somehow?

    this snippet for the listener does not work:


    //start:
    Can0.attachObj(&exampleClass);
    exampleClass.attachGeneralHandler();

    //end:
  5. Replies
    359
    Views
    203,857

    That is just a lable issue. Not a probleme here,...

    That is just a lable issue. Not a probleme here, sir. Switch H and L, that's it.



    I figured out it's an issue when I'm sending AND receiving at the same time with the same RX/TX on the teensy....
  6. Replies
    359
    Views
    203,857

    I have two devices (with Teensy 3.2) and both...

    I have two devices (with Teensy 3.2) and both receive frames correctly from a proven sender (ECU).

    Connecting both devices (With Teensy 3.2) to each other I get the described problem.
  7. Replies
    359
    Views
    203,857

    I did a temporary connection from RS to GND - no...

    I did a temporary connection from RS to GND - no change.
  8. Replies
    359
    Views
    203,857

    There is a 55M on the transceiver.

    There is a 55M on the transceiver.
  9. Replies
    359
    Views
    203,857

    There is a JUmper at "CAN TERM", which is...

    There is a JUmper at "CAN TERM", which is currently set. The "C-GRID" is the plug to the Can Bus from the other device. So actually the resistor connects H and L.

    I just measured between H and L...
  10. Replies
    359
    Views
    203,857

    It's a custom board and works fine with sending...

    It's a custom board and works fine with sending frames. I use two of them. One for sending and one for receive.

    9860 9861
  11. Replies
    359
    Views
    203,857

    Yes on both ends. (edited post no 335!)

    Yes on both ends.

    (edited post no 335!)
  12. Replies
    359
    Views
    203,857

    Well, I do. And sometimes it transmits the data...

    Well, I do. And sometimes it transmits the data without any problems and sometimes it just stops. Do I need to clear the mailboxes or anything?

    I changed the library a bit:


    I send 3 messages...
  13. Replies
    359
    Views
    203,857

    Problem with sending

    I try to send CAN Bus data with the FlexCan library and this code:




    #include <FlexCAN.h>

    static CAN_message_t msg;

    // -------------------------------------------------------------
  14. Any chance to test it with a teensy 3.2 as well?

    Any chance to test it with a teensy 3.2 as well?
  15. That'd be great!

    That'd be great!
  16. Replies
    20
    Views
    5,282

    Thank you, I will have a look.

    Thank you, I will have a look.
  17. Replies
    20
    Views
    5,282

    I was able to compile it. Installed MingW and ran...

    I was able to compile it. Installed MingW and ran this command: mingw32-gcc.exe -O2 -Wall -s -DUSE_WIN32 -o teensy_loader_cli.exe teensy_loader_cli.c -lhid -lsetupapi

    Unfortunatly Teens 3.2 is not...
  18. Replies
    20
    Views
    5,282

    With teensiduino everything runs fine. Thank you...

    With teensiduino everything runs fine. Thank you guys.

    But now I need to have a look at the cli.
  19. Replies
    20
    Views
    5,282

    Oh I see. Dammit. I will have look. Thanks!

    Oh I see. Dammit. I will have look. Thanks!
  20. Replies
    20
    Views
    5,282

    On my mac everything works. I'm now on windows...

    On my mac everything works. I'm now on windows and use the make file that's included with the windows option uncommented together with winavr.
  21. Replies
    20
    Views
    5,282

    For a specific use I need to use the cli. ...

    For a specific use I need to use the cli.

    Anyone who can help me compiling it? I'm stuck at the mentioned point.
  22. Replies
    20
    Views
    5,282

    Can you tell me how to compile the...

    Can you tell me how to compile the teensy_loader_cli with Arduino IDE? If not I think I'll need to go on with winavr.

    Anyone else who can help?
  23. Replies
    20
    Views
    5,282

    It works with smaller files but when I try a...

    It works with smaller files but when I try a large file I get:

    "Warning, HEX parse error line 8193"

    Any hints?

    I tried to compile the loader on my own. Here is the output from my "make"

    ...
  24. Replies
    8
    Views
    2,948

    The hint from HWGuy did it. I replaced...

    The hint from HWGuy did it.

    I replaced
    #include "pins_arduino.h"

    with
    #if !defined(__MK20DX128__) && !defined(__MK20DX256__) && !defined(__MK64FX512__) && !defined(__MK66FX1M0__)
    #include...
  25. Replies
    8
    Views
    2,948

    Kurt, I have uploaded the versions I'm using. ...

    Kurt, I have uploaded the versions I'm using.

    8655

    8656
  26. Replies
    8
    Views
    2,948

    This library worked with 1.6.5 with some minor...

    This library worked with 1.6.5 with some minor optimization. I added the teensy 3.5 options but only little success.

    Does this have something to do with the KINETIK variable? Because there is the...
  27. Replies
    8
    Views
    2,948

    Compiling Teesy 3.5 and Adafruit_TFTLCD

    I recently did an update from Arduino IDE 1.6.5 and Teensyduino 1.25-beta2 to Arduino IDE 1.6.11 and Teensyduino 1.30

    Now I get some errors during compiling. Does anyone have got a hint?

    ...
  28. Replies
    20
    Views
    5,282

    OK got it. Thanks!

    OK got it. Thanks!
  29. Replies
    20
    Views
    5,282

    I would like to but a simple compile of the...

    I would like to but a simple compile of the original source fails (MAC OSX)


    gcc -o teensyload teensy_loader_cli.c
    Undefined symbols for architecture x86_64:
    "_hard_reboot", referenced from:...
  30. Replies
    20
    Views
    5,282

    Individual Teensy loader

    Hello guys,

    if it finally comes to a commercial product and I want my customers to update the teensy on there own, it would be great to personalize the teensy loader application with an own...
  31. Replies
    5
    Views
    2,744

    Thanks for your detailed answer. So for me it...

    Thanks for your detailed answer.

    So for me it is now up to this point.


    I thought I do this already with this piece of code, don't I?


    interrupts();
    NVIC_ENABLE_IRQ(IRQ_CAN_MESSAGE);
  32. Replies
    5
    Views
    2,744

    Well I just start in "setup()) with ...

    Well I just start in "setup()) with
    CANbus.begin(); (without any masks).

    Within the ISR I will later isert something like this:


    if(killCAN==true){this->pause();}
    if ( CANbus.available() )...
  33. Replies
    5
    Views
    2,744

    Teensy CAN Bus IRQ

    Hello folks,

    i try to attach an interrupt to the can bus of a teensy 3.2

    during setup:


    interrupts();
    NVIC_ENABLE_IRQ(IRQ_CAN_MESSAGE);
    attachInterruptVector(IRQ_CAN_MESSAGE,tester);
  34. Replies
    359
    Views
    203,857

    I would also be interested. Anyone have a clue on...

    I would also be interested. Anyone have a clue on how to implement interrupts on RX?
  35. Replies
    359
    Views
    203,857

    Is it possible to run two transceivers on ONE...

    Is it possible to run two transceivers on ONE single teensy?

    I want to filter out certain messages between a device and the "core CAN bus", so I need one transceiver to connect to the device and...
  36. Update: I was able to break this down to...

    Update: I was able to break this down to "pins_arduino.h". It does neither detect "#if defined(KINETISK)" nor "#elif defined(KINETISL)"

    Which one should I go for?
  37. I got same messages trying to compile the example...

    I got same messages trying to compile the example "breakouttouchpaint" from "Adafruit_HX8357_Library-master"


    Build options changed, rebuilding all
    Using library Adafruit GFX Library in folder:...
Results 1 to 37 of 38