I use the Arduino IDE 1.8.10 on OpenSuse Leap 15.0 64 Bit and the Maple Mini,
and this package
Code: Select all
https://github.com/stm32duino/BoardManagerFiles/raw/master/STM32/package_stm_index.json
Code: Select all
int8_t led = 0;
void setup() {
SerialUSB.begin(57600); //this isn't needed, it is pre-initialised , otherwise you could uncomment it to test
pinMode(LED_BUILTIN, OUTPUT);
}
void loop() {
if(SerialUSB.available()) {
char c = Serial.read();
SerialUSB.print("hello ");
SerialUSB.print(c);
SerialUSB.println();
}
led = ~ led & 1;
digitalWrite(LED_BUILTIN, led);
delay(100);
}
Code: Select all
ls -l /dev/serial/by-id
insgesamt 0
lrwxrwxrwx 1 root root 13 11. Jan 20:08 usb-STMicroelectronics_MAPLEMINI_F103CB_CDC_in_FS_Mode_8D7452895051-if00 -> ../../ttyACM0
Code: Select all
ls -l /dev/serial/by-id
ls: Zugriff auf '/dev/serial/by-id' nicht möglich: Datei oder Verzeichnis nicht gefunden