IC:\\Users\\User\\Documents\\ArduinoData\\packages\\STMicroelectronics\\hardware\\stm32\\2.5.0\\cores\\arduino/avr" "-IC:\\Users\\User\\Documents\\ArduinoData\\packages\\STMicroelectronics\\hardware\\stm32\\2.5.0\\cores\\arduino/stm32" "-IC:\\Users\\User\\Documents\\ArduinoData\\packages\\STMicroelectronics\\hardware\\stm32\\2.5.0\\cores\\arduino/stm32/LL" "-IC:\\Users\\User\\Documents\\ArduinoData\\packages\\STMicroelectronics\\hardware\\stm32\\2.5.0\\cores\\arduino/stm32/usb" "-IC:\\Users\\User\\Documents\\ArduinoData\\packages\\STMicroelectronics\\hardware\\stm32\\2.5.0\\cores\\arduino/stm32/OpenAMP" "-IC:\\Users\\User\\Documents\\ArduinoData\\packages\\STMicroelectronics\\hardware\\stm32\\2.5.0\\cores\\arduino/stm32/usb/hid" "-IC:\\Users\\User\\Documents\\ArduinoData\\packages\\STMicroelectronics\\hardware\\stm32\\2.5.0\\cores\\arduino/stm32/usb/cdc" "-IC:\\Users\\User\\Documents\\ArduinoData\\packages\\STMicroelectronics\\hardware\\stm32\\2.5.0\\system/Drivers/STM32F4xx_HAL_Driver/Inc" "-IC:\\Users\\User\\Documents\\ArduinoData\\packages\\STMicroelectronics\\hardware\\stm32\\2.5.0\\system/Drivers/STM32F4xx_HAL_Driver/Src" "-IC:\\Users\\User\\Documents\\ArduinoData\\packages\\STMicroelectronics\\hardware\\stm32\\2.5.0\\system/STM32F4xx" "-IC:\\Users\\User\\Documents\\ArduinoData\\packages\\STMicroelectronics\\hardware\\stm32\\2.5.0\\system/Middlewares/ST/STM32_USB_Device_Library/Core/Inc" "-IC:\\Users\\User\\Documents\\ArduinoData\\packages\\STMicroelectronics\\hardware\\stm32\\2.5.0\\system/Middlewares/ST/STM32_USB_Device_Library/Core/Src" "-IC:\\Users\\User\\Documents\\ArduinoData\\packages\\STMicroelectronics\\hardware\\stm32\\2.5.0\\system/Middlewares/OpenAMP" "-IC:\\Users\\User\\Documents\\ArduinoData\\packages\\STMicroelectronics\\hardware\\stm32\\2.5.0\\system/Middlewares/OpenAMP/open-amp/lib/include" "-IC:\\Users\\User\\Documents\\ArduinoData\\packages\\STMicroelectronics\\hardware\\stm32\\2.5.0\\system/Middlewares/OpenAMP/libmetal/lib/include" "-IC:\\Users\\User\\Documents\\ArduinoData\\packages\\STMicroelectronics\\hardware\\stm32\\2.5.0\\system/Middlewares/OpenAMP/virtual_driver" -DSTM32F4xx -DARDUINO=10819 -DARDUINO_BLACKPILL_F401CE -DARDUINO_ARCH_STM32 "-DBOARD_NAME=\"BLACKPILL_F401CE\"" "-DVARIANT_H=\"variant_BLACKPILL_F401Cx.h\"" -DSTM32F401xE -DHAL_UART_MODULE_ENABLED "-IC:\\Users\\User\\Documents\\ArduinoData\\packages\\STMicroelectronics\\tools\\CMSIS\\5.7.0/CMSIS/Core/Include/" "-IC:\\Users\\User\\Documents\\ArduinoData\\packages\\STMicroelectronics\\hardware\\stm32\\2.5.0\\system/Drivers/CMSIS/Device/ST/STM32F4xx/Include/" "-IC:\\Users\\User\\Documents\\ArduinoData\\packages\\STMicroelectronics\\hardware\\stm32\\2.5.0\\system/Drivers/CMSIS/Device/ST/STM32F4xx/Source/Templates/gcc/" "-IC:\\Users\\User\\Documents\\ArduinoData\\packages\\STMicroelectronics\\tools\\CMSIS\\5.7.0/CMSIS/DSP/Include" "-IC:\\Users\\User\\Documents\\ArduinoData\\packages\\STMicroelectronics\\tools\\CMSIS\\5.7.0/CMSIS/DSP/PrivateInclude" "-IC:\\Users\\User\\Documents\\ArduinoData\\packages\\STMicroelectronics\\hardware\\stm32\\2.5.0\\cores\\arduino" "-IC:\\Users\\User\\Documents\\ArduinoData\\packages\\STMicroelectronics\\hardware\\stm32\\2.5.0\\variants\\STM32F4xx\\F401CC(F-U-Y)_F401C(B-D-E)(U-Y)" "-IC:\\Users\\User\\Documents\\ArduinoData\\packages\\STMicroelectronics\\hardware\\stm32\\2.5.0\\libraries\\SrcWrapper\\src" "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_332111\\sketch\\SrcWrapper.cpp" -o "C:\\Users\\User\\AppData\\Local\\Temp\\arduino_build_332111\\sketch\\SrcWrapper.cpp.o"
In file included from C:\Users\User\Documents\ArduinoData\packages\STMicroelectronics\hardware\stm32\2.5.0\cores\arduino/wiring.h:48,
from C:\Users\User\Documents\ArduinoData\packages\STMicroelectronics\hardware\stm32\2.5.0\cores\arduino/Arduino.h:36,
from C:\Users\User\AppData\Local\Temp\arduino_build_332111\sketch\Faraz_Droop.ino.cpp:1:
C:\Users\User\Documents\ArduinoData\packages\STMicroelectronics\hardware\stm32\2.5.0\cores\arduino/WSerial.h:58:24: error: 'Serial1' does not name a type; did you mean 'Serial'?
58 | #define Serial Serial1
| ^~~~~~~
C:\Users\User\Desktop\Faraz_Droop\Faraz_Droop.ino:242:1: note: in expansion of macro 'Serial'
242 | Serial.print(n);
| ^~~~~~
C:\Users\User\Documents\ArduinoData\packages\STMicroelectronics\hardware\stm32\2.5.0\cores\arduino/WSerial.h:58:24: error: 'Serial1' does not name a type; did you mean 'Serial'?
58 | #define Serial Serial1
| ^~~~~~~
C:\Users\User\Desktop\Faraz_Droop\Faraz_Droop.ino:243:1: note: in expansion of macro 'Serial'
243 | Serial.print("Ia_1 =");
| ^~~~~~
C:\Users\User\Documents\ArduinoData\packages\STMicroelectronics\hardware\stm32\2.5.0\cores\arduino/WSerial.h:58:24: error: 'Serial1' does not name a type; did you mean 'Serial'?
58 | #define Serial Serial1
| ^~~~~~~
C:\Users\User\Desktop\Faraz_Droop\Faraz_Droop.ino:244:1: note: in expansion of macro 'Serial'
244 | Serial.print(ia_1[n]);
| ^~~~~~
C:\Users\User\Documents\ArduinoData\packages\STMicroelectronics\hardware\stm32\2.5.0\cores\arduino/WSerial.h:58:24: error: 'Serial1' does not name a type; did you mean 'Serial'?
58 | #define Serial Serial1
| ^~~~~~~
C:\Users\User\Desktop\Faraz_Droop\Faraz_Droop.ino:245:1: note: in expansion of macro 'Serial'
245 | Serial.print("Ib =");
| ^~~~~~
C:\Users\User\Documents\ArduinoData\packages\STMicroelectronics\hardware\stm32\2.5.0\cores\arduino/WSerial.h:58:24: error: 'Serial1' does not name a type; did you mean 'Serial'?
58 | #define Serial Serial1
| ^~~~~~~
C:\Users\User\Desktop\Faraz_Droop\Faraz_Droop.ino:246:1: note: in expansion of macro 'Serial'
246 | Serial.print(ib_1[n]);
| ^~~~~~
C:\Users\User\Documents\ArduinoData\packages\STMicroelectronics\hardware\stm32\2.5.0\cores\arduino/WSerial.h:58:24: error: 'Serial1' does not name a type; did you mean 'Serial'?
58 | #define Serial Serial1
| ^~~~~~~
C:\Users\User\Desktop\Faraz_Droop\Faraz_Droop.ino:247:1: note: in expansion of macro 'Serial'
247 | Serial.print("Ic =");
| ^~~~~~
C:\Users\User\Documents\ArduinoData\packages\STMicroelectronics\hardware\stm32\2.5.0\cores\arduino/WSerial.h:58:24: error: 'Serial1' does not name a type; did you mean 'Serial'?
58 | #define Serial Serial1
| ^~~~~~~
C:\Users\User\Desktop\Faraz_Droop\Faraz_Droop.ino:248:1: note: in expansion of macro 'Serial'
248 | Serial.println(ic_1[n]);
| ^~~~~~
Using library SrcWrapper at version 1.0.1 in folder: C:\Users\User\Documents\ArduinoData\packages\STMicroelectronics\hardware\stm32\2.5.0\libraries\SrcWrapper
exit status 1
Error compiling for board Generic STM32F1 series.
On the other hand the other code is uploading fine for the same setting.
setting: https://we.tl/t-x9fHXV4hGW
The code I'm working on is basically i just converted it from MATLAB to arduino IDE, I don't what type of error I did Arduino Code: https://we.tl/t-qMCMguMeTa
and when i use serial1.print it shows '.' token some type of error.
Any type of help will be appreciated.
Thanks in Advance
@fpiSTM
I use blackpill STMF103C8T6 with ST-LINK and FDTI, and it works fine when select the shared setting above means the code is successfully uploaded but when I use the shared code to compile into this it gives me the error "ERROR COMPILING FOR BOARD GENERIES STM32F1 SERIES".
I used arduino IDE to compile and upload the code in the STM but unfortunately it gives me that error. I also tried with Serial1.print but there's nothing happened.
Well it builds fine by default so something is wrong wi5h your sketch or config... so as stated you don't provide enough information. Sketch, options, ...