Error compiling for board Generic STM32F1 series
Posted: Fri Jul 28, 2023 3:10 pm
I've getting the error below while compiling using arduino IDE into STMF103C8T6 (Blackpill).
the whole error
https://we.tl/t-njh73HMVRB
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
Code: Select all
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.
https://we.tl/t-njh73HMVRB
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