-
-
Notifications
You must be signed in to change notification settings - Fork 15
Wire and Wire1 are Swapped #1
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
Comments
@KurtE were digging some more into the way Zephyr works (see the referenced thread) and it appears that only one Wire port may be defined even though I don't see defined in the variants for the giga. |
Downloaded the current updates in the repository and Wire now seems to defined correctly to use the correct pins. However when I use the I2CScanner sketch and change to Wire1 I get an error message:
So kind of confirms only one Wire object is defined |
Just a quick update. Got it working by adding this to the giga m7 overlay file
and
Then running a modified Scanner (PJRC) was able to see wire and wire1
@KurtE mentioned you might want to update your scanner for more than 1 wire object. Also might be convenient to define WIRE_INTERFACES_COUNT in Wire after the MACRO is called in Wire.h Heres the sketch I am using for reference: A big caveat. To get it to re-compile for the Giga Zephyr I had to put it into boot mode then it works otherwise still get a wire1 not defined |
Hi @mjs513 , |
Morning @facchinm PR just completed: Uodate Giga Overlay for I2c #3. You might want to check the forum on the stuff that @KurtE and I have been commenting on with SPI with zephyr. and https://forum.arduino.cc/t/mbed-zephyr-status-beta-by-end-of-year/1329083/10 |
Yup, SPI checking is in my todo list for today, last time I tried with an sdcard shield everything was working but there might be issues between SPI/SPI1 (as in Wire) |
Yep we added a couple things the overlay for SPI based on @KurtE stuff:
and
think the diff is we specified spi5 instead of just saying ok. EDIT: |
I'll check the SDFat lib, let's move to another issue so we can properly keep track there |
Describe the bug
Looks like Wire and Wire1 are swapped, please check this thread for more details:
https://forum.arduino.cc/t/i2c-experiments-with-zephyr-on-giga/1326321
this post in particular: https://forum.arduino.cc/t/i2c-experiments-with-zephyr-on-giga/1326321/6
Target board + cli verbose compilation output
Arduino GigaR1
Full verbose compilation output, ideally with
arduino-cli
invocation or from IDE 2.3.3+Output.txt
Output of Serial Monitor
"Error initializing communication with IMU"
Output of readelf
You can find the loaction of the elf file by compiling in Verbose mode and looking near the end of the compilation output (after
Linking everything together..
)Paste (or attach) the output of
arm-none-eabi-readelf -a $your_sketch_elf_file
Optional: attach the elf file
LIS3DML_icm20649_bolderflight_libs.ino.zip
Optional: attach the sketch
Additional context
Runs under Giga1 Mbed no issues.
The text was updated successfully, but these errors were encountered: