New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wire library and Serail1 conflict on Teensy 4.0 #565
Comments
I see a program which uses Serial1.begin() to communicate with the hardware serial port, but then uses Serial.print() which transmits to the USB virtual serial, not the hardware serial port. Wire definitely does work on Teensy 4.0. Many thousands of people have used it successfully. You really need to post a question on the forum to ask for help. This is not the place. I'm closing this issue now. |
Hum about the Serial.print, I used Serial1.print function, I just make a mistake when I was writing this ticket (I didn't copy/paste).
This is working.
Is it better now?
Great, thousands of people are actually experimenting issues on your amazing Teensy board, on various topics. If you think there is nothing special to see, well it is your choice. Thanks for nothing |
Wire absolutely does work. I personally use it. Many other people use it too. |
Again, if you want help, you need to ask on the forum (not here) and you need to show a complete program which I or anyone else can copy into Arduino and run on a Teensy 4.0 to reproduce the problem. Please, make sure you copy the exact program. If you show a wrong program, as above on this issue, it only adds confusion and makes helping you much harder. I do not know why Wire is not working for you. I can't see any complete program to reproduce the problem. But I do know Wire does work, so this issue is closed. The forum is where we help with projects and how to use libraries. This issue tracker is only for software defects - and since Wire works when I use it, and it works when so many other people do too, until you can demonstrate a reproducible problem with a complete program on the forum, I'm considering this case closed. I do still want to help you get Wire working ... just not here. Tech help / support is done on the forum. |
Looks like I need to appologize here. I dismissed this issue too quickly due to the incorrect sample code and wording in the title & description. Wire does work. Serial1 also works. But they are not working when used together. |
Retesting this today. It appears to be fixed by recent startup bug fix. |
An installer is now available with this bug fix. https://forum.pjrc.com/threads/67516-Teensyduino-1-54-Beta-10 |
@deadeert - Any chance you could give 1.54-beta10 a try? Does the startup bug fix fully resolve this problem? I tested with the simple code above, and several permutations of it which fail to boot on 1.54-beta9 and 1.53. All seem to work fine now. |
Hey, |
Expect some delays because I’m currently out of the office, but will give a try most probably begin of July. |
no worries, whenever is fine |
Work is happening right now on better fault handling and crash reporting. So if you wait a while, we may have 1.54-beta11 with that work included. |
Great news, give you feedback on my project integration as soon as I can. |
Teensyduino 1.54 was released earlier this week. It has the startup fix. |
Great, will have a try this week and I let you know. |
Sorry for the delay, the following MWE is now working (this time I copy / paste)
I will make additional testing right now, but it seems that this issue is solved. Well done ! and thanks for the support. |
I confirm it is now totally working and compatible with my sketches taken from the 3.2. |
Hello,
I scratched my head while moving my code from Teensy 3.2 to Teensy 4.
I used library U8G2 for a SSD1306 screen, on a new hardware designed for the Teensy 4.
Unit tests ended up to show that Wire library is in fact not working at all.
I test PIN 18 and 19 with a logical analyzer using following code, and everything goes right :
I tested teensy4_i2c example " https://github.com/Richard-Gemmell/teensy4_i2c/blob/master/examples/raw/raw_find_slaves/raw_find_slaves.ino", using a logical analyzer and it also worked well.
So I finished by writing the following MWE example inspired from (https://www.pjrc.com/teensy/td_libs_Wire.html).
I don't get any output from the serial line. Removing
Wire.begin()
, I got the right output of the Teensy.Investigating the compilation logs, it seems that the proper resolution occurred for Wire library :
Have you any idea of what can goes wrong ?
Thanks
The text was updated successfully, but these errors were encountered: