Stm32F401CCU6(Black pill): Unable to use I2c scanner #2499
-
Greetings of the day, I am working on STM32F401CCU6(Black pill) and using the i2c scanner example code for testing here is the code `// -------------------------------------- /* Example pinmap for Bluepill I2Cs (by Testato) I2C-1 standard pins: PB7(sda) PB6(scl) I2C-1 alternative pins: PB9(sda) PB8(scl) I2C-2: PB11(sda) PB10(scl) If you want to use the two I2Cs simultaneously, create a new instance for the second I2C */ #include <Wire.h> void setup() { Serial.begin(9600); void loop() { Serial.println("Scanning..."); nDevices = 0;
} delay(5000); // wait 5 seconds for next scan Error: arm-none-eabi-gcc: fatal error: cannot execute /....../AppData/Local/Arduino15/packages/STMicroelectronics/tools/xpack-arm-none-eabi-gcc/13.2.1-1.1/bin/../libexec/gcc/arm-none-eabi/13.2.1/collect2.exe': CreateProcess: No such file or directory and if I disable the USB Support port, then COM port does not show. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @nikitanagar62 |
Beta Was this translation helpful? Give feedback.
-
yes, we have to reinstall the toolchain. |
Beta Was this translation helpful? Give feedback.
yes, we have to reinstall the toolchain.