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

Search:

Type: Posts; User: nox771

Page 1 of 9 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    624
    Views
    319,943

    Back when I first started the lib the code was...

    Back when I first started the lib the code was based on whatever Wire was in Teensyduino at the time, which was listed as LGPL, that is why it uses LGPL (IIRC Arduino Wire has a LGPL header). ...
  2. Replies
    7
    Views
    337

    The problem is likely that you are using the...

    The problem is likely that you are using the Adafruit_MCP23017 library, which since it uses I2C, you will need to make sure inside that library to change Wire.h to i2c_t3.h also. If the Adafruit...
  3. Replies
    624
    Views
    319,943

    Ah, I have an idea of what it might be. Change...

    Ah, I have an idea of what it might be. Change your downloaded dir name from "i2c_t3-master" to "i2c_t3". Teensyduino ships with i2c_t3 by default, so it will pick that one first unless you have...
  4. Replies
    624
    Views
    319,943

    There seems to be some conversions between signed...

    There seems to be some conversions between signed and unsigned types going on. Try first working exclusively with unsigned types, and avoid int if possible. The original Arduino Wire lib annoyingly...
  5. Replies
    624
    Views
    319,943

    Increasing the buffer sizes should work. 258...

    Increasing the buffer sizes should work. 258 bytes sounds correct for the default buffer size, as 1st byte is used for slave address. Are you using size_t as your index? If you use uint8_t as a...
  6. Replies
    624
    Views
    319,943

    The library error tracking functions do not log...

    The library error tracking functions do not log addresses (it is more of an error "counting" system instead of an error "logging" system). This is really the only way to do it since a true error log...
  7. Replies
    624
    Views
    319,943

    All, I uploaded a v10.1 release on GitHub and the...

    All, I uploaded a v10.1 release on GitHub and the top-post.

    This has a fix for a subtle priority escalation bug involving nested Wire calls inside callbacks (refer to:...
  8. Replies
    624
    Views
    319,943

    Yes each bus has its own callback functions. ...

    Yes each bus has its own callback functions.

    There is a subtle priority escalation bug if you try doing Wire calls inside the callback, as described here:...
  9. Replies
    624
    Views
    319,943

    You can provide handling or not for unneeded...

    You can provide handling or not for unneeded addresses. Usually it is not a problem (since nothing talks to those addresses anyway). But something like that should work for emulating multiple...
  10. Replies
    624
    Views
    319,943

    You can make a Slave respond to a range of...

    You can make a Slave respond to a range of addresses, and then determine which one was addressed using the Wire.getRxAddr() function. If you look at the basic_slave_range example it shows something...
  11. Replies
    624
    Views
    319,943

    You don't use those functions to determine if the...

    You don't use those functions to determine if the buffer is empty, instead use Wire.available(). Those functions exist because at a hardware level the I2C moves data in bytes, so it is natural to...
  12. Replies
    11
    Views
    6,253

    Hello, for the next TD release please pull i2c_t3...

    Hello, for the next TD release please pull i2c_t3 off GitHub again. It had a big update which is described here:...
  13. Replies
    624
    Views
    319,943

    GC is one of several things that are lacking, but...

    GC is one of several things that are lacking, but unfortunately at the moment I'm out of time, and it might be a while before I can look into it. I can add this as a future to-do.
  14. Replies
    12
    Views
    3,246

    If the regulators are worth a damn at all they...

    If the regulators are worth a damn at all they should block a Broadcom / Qualcomm deal. Putting those two together (with all of their sub-acquisitions) consolidates a large amount of wireless chip...
  15. Replies
    34
    Views
    4,156

    Things to try: 1) Try putting a delay on the...

    Things to try:
    1) Try putting a delay on the startup code prior to the Wire commands. If RTC holds SDA/SCL low during powerup it could hang the Wire commands (I'm not sure how default Wire lib...
  16. Replies
    30
    Views
    4,653

    What it looks like is the 64LQFP package is out...

    What it looks like is the 64LQFP package is out everywhere (Mouser has 8500 on order at end of Feb - otherwise lead time is now showing 39 weeks).

    However there is some stock on bigger QFPs and...
  17. A couple FYI's - 1) I ran into a similar bug...

    A couple FYI's -

    1) I ran into a similar bug on earlier i2c_t3 code, which is now fixed. This is caused by the STOP interrupt code, which probably needs fixing on Wire. IIRC, the interrupt...
  18. Replies
    624
    Views
    319,943

    All, I've uploaded a new v10.0 library to the top...

    All, I've uploaded a new v10.0 library to the top post and GitHub. Documentation has been updated.

    This has passed all my testing but it is a pretty involved change in some parts, so post here if...
  19. Just FYI - I'm going to be working on a...

    Just FYI - I'm going to be working on a significant update soon, and I'll try to add this in (but it will probably be a more generic error logging as discussed a long time ago - when it gets closer I...
  20. Replies
    624
    Views
    319,943

    sendRequest() will background a transfer, but it...

    sendRequest() will background a transfer, but it is correct you will need to poll or periodically check done() or finish() to know when the transfer is complete. The expectation was this is...
  21. Replies
    17
    Views
    3,988

    Paul, please pull a new i2c_t3 off GitHub again...

    Paul, please pull a new i2c_t3 off GitHub again for next TD version. There were some more fixes on the LC/3.5/3.6, details:...
  22. Replies
    624
    Views
    319,943

    All - I've uploaded a v9.4 release to the top...

    All - I've uploaded a v9.4 release to the top post and GitHub. A couple other bugs showed up involving RepSTART into Slave ISR on LC/3.5/3.6. Changes are:


    Fixed Slave ISR for LC/3.5/3.6 not...
  23. Possibly because you are doing pass by value...

    Possibly because you are doing pass by value instead of pass by reference. Try changing the function arguments to references:

    void IntOn(IntervalTimer& actTimer) {
  24. Replies
    624
    Views
    319,943

    This looks like a problem in the build system,...

    This looks like a problem in the build system, not in the source code. It seems to be trying to link in default Wire lib (WireKinetis.cpp.o) at the same time as i2c_t3, which won't work because they...
  25. Replies
    30
    Views
    4,653

    There are a few out there, mostly places I've...

    There are a few out there, mostly places I've never dealt with (click "show all"):
    https://octopart.com/search?q=MK20DX256VLH7+
  26. Replies
    18
    Views
    6,529

    I merged this. GitHub and forum download are...

    I merged this. GitHub and forum download are updated.
  27. Replies
    18
    Views
    6,529

    Just FYI, please pull a new i2c_t3 release to...

    Just FYI, please pull a new i2c_t3 release to include for your next TD version. There have been a few bug fixes since the version included in TD 1.39. Here is the link:...
  28. Replies
    624
    Views
    319,943

    Just FYI - I've uploaded a v9.3 release to the...

    Just FYI - I've uploaded a v9.3 release to the top post and GitHub. It fixes a Slave-mode bug in the ISR for LC/3.5/3.6 devices (STOP bit not properly triggering callback). Try the update if you...
  29. Replies
    30
    Views
    4,085

    Just a thought, but if you had a RPi3 with WiFi,...

    Just a thought, but if you had a RPi3 with WiFi, and you had a NFS disk (from other Linux machine, or NAS server) you could build on the remote disk and prevent burning out the SD card.
  30. Replies
    3
    Views
    799

    I got one of these DE0-Nano boards a long time...

    I got one of these DE0-Nano boards a long time ago. I never got a chance to get into it, but I liked the form factor (0.1" headers) and it seemed to be reasonably capable. Not too expensive either....
  31. Replies
    13
    Views
    2,660

    I've always wondered what kind of fun would...

    I've always wondered what kind of fun would happen if you tried bringing a case like this through the airport:
    http://www.bit-tech.net/reviews/modding/wmd_part2_g-gnome_case_mod/1/

    It's so...
  32. Replies
    624
    Views
    319,943

    Internally the library maintains its state...

    Internally the library maintains its state through several variables in the i2cStruct (refer to i2c_t3.h file, and look for i2cStruct, then "Current" variables). There are functions to access some...
  33. Replies
    624
    Views
    319,943

    No it cannot do this right now. When you do a...

    No it cannot do this right now. When you do a beginTransmission(addr) it will clear the Tx buffer, so your 2nd slave data will clear out the 1st slave data. You would have to create some wrapper...
  34. Replies
    624
    Views
    319,943

    You'll have to clarify what error you are...

    You'll have to clarify what error you are getting. I've not tried in combination with the audio lib. Note that there is a way to make it behave very similar to stock Wire lib by setting immediate...
  35. Replies
    624
    Views
    319,943

    tonton81 is right, you should try converting the...

    tonton81 is right, you should try converting the "i2c_t3::" method calls into "Wire.", such as "Wire.begin()" and see if that works for you.

    The way the library is structured is that in addition...
  36. Replies
    624
    Views
    319,943

    Your problem is this line in both sets of code...

    Your problem is this line in both sets of code (in the initialization section):

    while (!Serial); // wait for Leonardo enumeration, others continue immediately

    This halts the program until the...
  37. Replies
    624
    Views
    319,943

    Yes on a T3.2 you could specify internal pullups...

    Yes on a T3.2 you could specify internal pullups on the Master device, and for communicating just between two T3.2 devices that can work (note, this is generally not the case on other teensy...
  38. Replies
    624
    Views
    319,943

    w/pullups just means to make sure there are...

    w/pullups just means to make sure there are external pullups. To be clear, on T3.2 pins 29/30 means "arduino" pins 29/30 which are backside SMT pads, are you actually connecting to those pads? ...
  39. Replies
    624
    Views
    319,943

    I'll take a closer look tomorrow. However with...

    I'll take a closer look tomorrow. However with just a cursory look, one thing is a little odd. Presumably you are using your library that needs Wire on the Master device only, is that right? If...
  40. Replies
    624
    Views
    319,943

    To share the bus with a library you need to...

    To share the bus with a library you need to coordinate the transfers so they do not interfere with each other. That is purely application level code, i2c_t3 only manages single buffer transfers at a...
  41. Replies
    624
    Views
    319,943

    Is there supposed to be more context here? The...

    Is there supposed to be more context here? The library does not define auto retry by default in current version.
  42. Replies
    624
    Views
    319,943

    Nice of you to say, but the challenge I can't...

    Nice of you to say, but the challenge I can't ever get around is time. Like many here, my project stack is already much higher than available time (and unfortunately building a new AVR lib isn't...
  43. Replies
    624
    Views
    319,943

    Sorry but no. The original purpose of the...

    Sorry but no. The original purpose of the library was to support the advanced features and speed of the Teensy 3.x I2C hardware. Much of that simply doesn't exist on the AVR hardware. I would...
  44. Replies
    624
    Views
    319,943

    I would think controlling the STOP behavior via...

    I would think controlling the STOP behavior via some option setting is probably best, as it can be set depending on application.
  45. Replies
    624
    Views
    319,943

    The main purpose of not sending a STOP is to keep...

    The main purpose of not sending a STOP is to keep the bus locked. A secondary purpose is to accelerate a long chain of commands. So if your application has reason to keep the bus locked to a single...
  46. Replies
    624
    Views
    319,943

    I'm not sure what you are referring to. The...

    I'm not sure what you are referring to. The i2c_t3 library itself handles RepSTARTs as given by the i2c spec.

    If you are designing a master-side device, the most common thing is to send...
  47. Replies
    624
    Views
    319,943

    Multiple repeated starts can occur if there was a...

    Multiple repeated starts can occur if there was a chain of commands.

    Typical case for RepSTART might be some device with memory, whereby to read an address you first send the memory address then...
  48. Replies
    624
    Views
    319,943

    Yes keeping SCL low will drain power through the...

    Yes keeping SCL low will drain power through the pullup resistor, on the order of ~mA for typical component values. Recommended operation is to pair every START/repSTART with a STOP (eg. complete...
  49. Replies
    624
    Views
    319,943

    Yes the typical Wire commands should work if you...

    Yes the typical Wire commands should work if you swap Wire.h to i2c_t3.h. The library is designed specifically for that to work. It will also support having both Wire and Wire1 (as well as Wire2...
  50. Replies
    624
    Views
    319,943

    In a single master setup it has no practical...

    In a single master setup it has no practical effect if you don't send a stop. The effect of not sending a stop is that the bus is still "busy" (SCL remains low), but there is no problem leaving it...
Results 1 to 50 of 411
Page 1 of 9 1 2 3 4