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

Search:

Type: Posts; User: toto_brico

Search: Search took 0.00 seconds.

  1. Replies
    670
    Views
    61,583

    Ok understood, to made something generic for...

    Ok understood, to made something generic for reading all CanX.readMB(msg) and after I check msg.bus.
    But what's happens for the init of MBs, can we do something generic/recursive? to avoid code...
  2. Replies
    670
    Views
    61,583

    To sum-up, it means, if we use CAN2.0, there are...

    To sum-up, it means, if we use CAN2.0, there are theoretically 192 (64*3) Mail Boxes ? one CAN controler per channel CAN? not sure to well undestund...
  3. Replies
    670
    Views
    61,583

    Thanks alot for your fast reply ... I have to...

    Thanks alot for your fast reply
    ... I have to really switch on my brain, cause I'm still lost.

    Juste a some question : Is there 64MailBox per CAN or for 64 in total for the 3 can bus?

    I made...
  4. Replies
    670
    Views
    61,583

    Dear tonton81, dear all, I thought been enough...

    Dear tonton81, dear all,

    I thought been enough fluent with c++, but I realized that not, in tryng to deeply used the FlexCAN_T4 library.
    So, I want to made a function with parameters : can_bus...
  5. Thank a lot for your replies and your help. It...

    Thank a lot for your replies and your help.
    It seems that many of my issues was due to the fact I forgot that OctoWs8211 is an blocking library...

    Also did you know there is a way to use I2C in...
  6. I need a loop executed between 10 and 100...

    I need a loop executed between 10 and 100 times/sec (I need make tests).

    The main loop manage the LEDs animations and take into account informations received by I2C to change strip's colors.
    How...
  7. Teensy 3.2 - How to use timer with OctoWS2811 lib

    Hi all,

    I need to execute my program with a precis timing, and for that I used to use "IntervalTimer" functionality and librarie.
    But it doesn't work if I use OctoWS2811 to drive RGB leds. This...
  8. Well, now I can detected and managed the SCL...

    Well, now I can detected and managed the SCL staying low with the registers I2C0_SLTH and I2C0_SLTL registers it seems that the I2C reset freeze the Teensy or have no effets.
    In this fact, I decied...
  9. Shame on me... :eek: Even if it didn't solve my...

    Shame on me... :eek:
    Even if it didn't solve my problem, here is the correct setup of registers I2C0_SLTH and I2C0_SLTL

    l_TempTimeout = F_BUS / 64;
    l_TempTimeout = 1000000000 /...
  10. @defragster : thank again for our discussion,...

    @defragster : thank again for our discussion, even if my issue isn't solve, it make me feel not alone :)

    Well, I did test as described below :

    uncomment ligne #define I2C_AUTO_RETRY
    put...
  11. I will uncomment this line and made test, and...

    I will uncomment this line and made test, and also use the Build-in Led to check.

    But for me there is something strange with that way of reset.
    Because, for me, in a slave mode an I2C device...
  12. @defragster : thanks for your time, and ideas ...

    @defragster : thanks for your time, and ideas

    My I2C network runs at 100kHz

    Wire.begin(I2C_SLAVE, adresse_I2C_TEENSY, I2C_PINS_18_19, I2C_PULLUP_EXT, 100000); // Setup for Slave mode,...
  13. Also, after the finding of this issue, I begining...

    Also, after the finding of this issue, I begining to investigate in detail and made many test.
    First of all I read the K20 microcontroller's datasheet.
    And especially chapter 46 - Inter-Integrated...
  14. Teensy 3.2 in I2C slave mode - Some times SCL stay low

    Dear all

    Since few days (and weeks) I try to managed by myself with an I2C issue, but I now freezed.
    I made an 5V I2C network with one master and many slaves : some PCF8574 devices and one Teensy...
  15. Slave received: '' ; char[0] : ' 1' ; char[1] :...

    Slave received: '' ; char[0] : ' 1' ; char[1] : ' 0' , received : 2, index : 75
    No I2C message, statut : 'C' , index : 76
    Slave received: '' ; char[0] : ' 1' ; char[1] : ' 0' , received : 2,...
  16. @Theremingenieur thanks for time and idea. I...

    @Theremingenieur thanks for time and idea.

    I made the change, there are know 2.2k pull-up resistors beetwen level shifter and the Teensy.

    It's the same issue.... it's seem to be worth, issue...
  17. I2C issues in slave mode, sometime stay in I2C_SLAVE_RX state

    Hello all,

    I'm need your help.
    I use to write softwares on an MEGA2560 which talk with an I2C bus to other devices base on PCF8574 (write and read) but this is my first time I connect an Teensy....
Results 1 to 17 of 18