I am using Portenta C33 it act as I2C slave using Arduino wire library. But when we connect I2C Master and sending data to Portenta but it seems SCL pin always high not getting clock on logic analyzer. But when I disconnected or remove SCL pin from Portenta then I2C clock available.
Can any one please confirm is Arduino wire library will work if configured as slave? Any use it with Portenta C33?
Try this piece of code, it may tell you. Run it at the end of setup().`Use code tags to format code for the forum.
/************************[ Show the predefined pins ]**************************
* *
* Many pins are defined by the pre_Compiler, this displays some pertent *
* to this program. They are determined at compile time. *
* 198 bytes *
*******************************************************************************/
void show_pre_def_pins()
{
Serial.print(F("\n\tSS: ")); // This shows they the value of the predefined pins
Serial.print(SS); Serial.print(F(", ")); // Not needed for program
Serial.print(F(" MOSI: ")); // Print the pin being displayed
Serial.print(MOSI); Serial.print(F(", ")); // But handy for debuging
Serial.print(F("MISO: ")); // Print the pin being displayed
Serial.print(MISO); // Info from compiler
Serial.print(F(", SCK: ")); // Print the pin being displayed
Serial.print(SCK); // Info from compiler
Serial.print(F("\n\tSCL: ")); // Print the pin being displayed
Serial.print(SCL); // Info from compiler
Serial.print(F(", SDA: ")); // Print the pin being displayed
Serial.print(SDA); // End of predefined pin list.
Serial.print(F(", Led Pin: ")); // Print the pin being displayed
Serial.print(LED_BUILTIN); // Info from compiler
} // End of show_pre_def_pins
I use this as part of my setup when doing a new systgem.
Thanks for prompt response..
I checked this piece of code but it work for board selected Portenta C33, but anyway I found default pins for Arduino library
I know by using I2C object I can try with Wire2 or Wire3 but I want to get working with I2C0 port only because our another hardware PCB is connected to this pins only.
Can anyone confirm is I2C0 port with Wire0 library use on Portenta C33?
Hi, I checked SCL pin D12 define as output in Arduino and making HIGH and LOW every 1second. but this pin not gong low it always HIGH. Is this any hardware issue on Portenta C33? You can see waveform Portenta C33 I2C Slave simple Code Not working - #5 by vsborle92
Hi, I checked SCL pin with another Portenta this working now. But still weird behavior as below sequence when I test:
This new Portenta C33 acts as slave and it working with ESP32 board Master even vice versa also work.
Portenta C33 acts as slave and it working with our another Master module.
We have working Master board with different slaves tested and want to communicate with portenta C33 also, But when we connect with Portenta C33 as slave configured using I2C port 0 it not work. I also checked signal on Logic Analyzer but no single. I confused why this happening, Can please anyone suggest what should I do to debug this issue?
We used another Portenta C33 board and this board pins become active.
As I see schematic of Portenta C33 there is no external pull resistor available on board.
I used 2.2K external pullup but it not work, so What will be the resistor value recommendation for SDA and SCL line pullup?