Hello dear friend, i apologize if this is wrong place to put it here.
How can we use this nice library with the STM32 32bit devices ?
I try to compile a working project from arduino but choose it as STM32 and i got error:
'Building file: C:/Users/TasosStr/Arduino/libraries/ICSC/ICSC.cpp'
'Starting C++ compile'
"C:\sloeber/arduinoPlugin/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++" -c -g -Os -Wall -Wextra -DDEBUG_LEVEL=DEBUG_ALL -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -DBOARD_generic_stm32f103c -DVECT_TAB_ADDR=0x8002000 -DERROR_LED_PORT=GPIOB -DERROR_LED_PIN=1 -mcpu=cortex-m3 -DF_CPU=72000000L -DARDUINO=10609 -DARDUINO_GENERIC_STM32F103C -DARDUINO_ARCH_STM32F1 -DSERIAL_USB -DGENERIC_BOOTLOADER -DMCU_STM32F103CB -mthumb -march=armv7-m -D__STM32F1__ -DMCU_STM32F103CB -mthumb -march=armv7-m -D__STM32F1__ "-IC:/Users/TasosStr/Arduino/hardware/Arduino_STM32/STM32F1/system/libmaple" "-IC:/Users/TasosStr/Arduino/hardware/Arduino_STM32/STM32F1/system/libmaple/include" "-IC:/Users/TasosStr/Arduino/hardware/Arduino_STM32/STM32F1/system/libmaple/stm32f1/include" "-IC:/Users/TasosStr/Arduino/hardware/Arduino_STM32/STM32F1/system/libmaple/usb/stm32f1" "-IC:/Users/TasosStr/Arduino/hardware/Arduino_STM32/STM32F1/system/libmaple/usb/usb_lib" -I"C:\Users\TasosStr\Arduino\hardware\Arduino_STM32\STM32F1\cores\maple" -I"C:\Users\TasosStr\Arduino\hardware\Arduino_STM32\STM32F1\variants\generic_stm32f103c" -I"C:\Users\TasosStr\Arduino\libraries\Bounce2" -I"C:\Users\TasosStr\Arduino\hardware\Arduino_STM32\STM32F1\libraries\EEPROM" -I"C:\Users\TasosStr\Arduino\libraries\ICSC" -I"C:\Users\TasosStr\Arduino\libraries\Streaming" -MMD -MP -MF"libraries/ICSC/ICSC.cpp.d" -MT"libraries/ICSC/ICSC.cpp.o" -D__IN_ECLIPSE__=1 -x c++ "C:/Users/TasosStr/Arduino/libraries/ICSC/ICSC.cpp" -o "libraries/ICSC/ICSC.cpp.o"
C:/Users/TasosStr/Arduino/libraries/ICSC/ICSC.cpp: In member function 'void _ICSC::begin(unsigned char, long unsigned int)':
C:/Users/TasosStr/Arduino/libraries/ICSC/ICSC.cpp:61:37: error: no matching function for call to '_ICSC::begin(unsigned char&, long unsigned int&, USBSerial*, int)'
begin(station, baud, &Serial, -1);
^
C:/Users/TasosStr/Arduino/libraries/ICSC/ICSC.cpp:61:37: note: candidates are:
C:/Users/TasosStr/Arduino/libraries/ICSC/ICSC.cpp:59:6: note: void _ICSC::begin(unsigned char, long unsigned int)
void _ICSC::begin(unsigned char station, unsigned long baud)
^
C:/Users/TasosStr/Arduino/libraries/ICSC/ICSC.cpp:59:6: note: candidate expects 2 arguments, 4 provided
In file included from C:/Users/TasosStr/Arduino/libraries/ICSC/ICSC.cpp:36:0:
C:\Users\TasosStr\Arduino\libraries\ICSC/ICSC.h:191:14: note: void _ICSC::begin(unsigned char, long unsigned int, int)
void begin(unsigned char station, unsigned long baud, int dePin);
^
C:\Users\TasosStr\Arduino\libraries\ICSC/ICSC.h:191:14: note: candidate expects 3 arguments, 4 provided
C:\Users\TasosStr\Arduino\libraries\ICSC/ICSC.h:196:14: note: void _ICSC::begin(unsigned char, long unsigned int, HardwareSerial*)
void begin(unsigned char station, unsigned long baud, HardwareSerial sdev);
^
C:\Users\TasosStr\Arduino\libraries\ICSC/ICSC.h:196:14: note: candidate expects 3 arguments, 4 provided
C:\Users\TasosStr\Arduino\libraries\ICSC/ICSC.h:197:14: note: void _ICSC::begin(unsigned char, long unsigned int, HardwareSerial, int)
void begin(unsigned char station, unsigned long baud, HardwareSerial sdev, int dePin);
^
C:\Users\TasosStr\Arduino\libraries\ICSC/ICSC.h:197:14: note: no known conversion for argument 3 from 'USBSerial' to 'HardwareSerial*'
C:/Users/TasosStr/Arduino/libraries/ICSC/ICSC.cpp: In member function 'void _ICSC::begin(unsigned char, long unsigned int, int)':
C:/Users/TasosStr/Arduino/libraries/ICSC/ICSC.cpp:66:40: error: no matching function for call to '_ICSC::begin(unsigned char&, long unsigned int&, USBSerial*, int&)'
begin(station, baud, &Serial, dePin);
^
C:/Users/TasosStr/Arduino/libraries/ICSC/ICSC.cpp:66:40: note: candidates are:
C:/Users/TasosStr/Arduino/libraries/ICSC/ICSC.cpp:59:6: note: void _ICSC::begin(unsigned char, long unsigned int)
void _ICSC::begin(unsigned char station, unsigned long baud)
^
C:/Users/TasosStr/Arduino/libraries/ICSC/ICSC.cpp:59:6: note: candidate expects 2 arguments, 4 provided
C:/Users/TasosStr/Arduino/libraries/ICSC/ICSC.cpp:64:6: note: void _ICSC::begin(unsigned char, long unsigned int, int)
void _ICSC::begin(unsigned char station, unsigned long baud, int dePin)
^
C:/Users/TasosStr/Arduino/libraries/ICSC/ICSC.cpp:64:6: note: candidate expects 3 arguments, 4 provided
In file included from C:/Users/TasosStr/Arduino/libraries/ICSC/ICSC.cpp:36:0:
C:\Users\TasosStr\Arduino\libraries\ICSC/ICSC.h:196:14: note: void _ICSC::begin(unsigned char, long unsigned int, HardwareSerial*)
void begin(unsigned char station, unsigned long baud, HardwareSerial sdev);
^
C:\Users\TasosStr\Arduino\libraries\ICSC/ICSC.h:196:14: note: candidate expects 3 arguments, 4 provided
C:\Users\TasosStr\Arduino\libraries\ICSC/ICSC.h:197:14: note: void _ICSC::begin(unsigned char, long unsigned int, HardwareSerial, int)
void begin(unsigned char station, unsigned long baud, HardwareSerial sdev, int dePin);
^
C:\Users\TasosStr\Arduino\libraries\ICSC/ICSC.h:197:14: note: no known conversion for argument 3 from 'USBSerial' to 'HardwareSerial*'
C:/Users/TasosStr/Arduino/libraries/ICSC/ICSC.cpp: In member function 'boolean _ICSC::send(unsigned char, unsigned char, char, unsigned char, char*)':
C:/Users/TasosStr/Arduino/libraries/ICSC/ICSC.cpp:199:19: warning: unused variable 'del' [-Wunused-variable]
unsigned char del;
^
C:/Users/TasosStr/Arduino/libraries/ICSC/ICSC.cpp: At global scope:
C:/Users/TasosStr/Arduino/libraries/ICSC/ICSC.cpp:624:6: warning: unused parameter 'command' [-Wunused-parameter]
void _ICSC::respondToPing(unsigned char station, char command, unsigned char len, char *data)
^
C:/Users/TasosStr/Arduino/libraries/ICSC/ICSC.cpp: In member function 'int _ICSC::serialRead()':
C:/Users/TasosStr/Arduino/libraries/ICSC/ICSC.cpp:170:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
C:/Users/TasosStr/Arduino/libraries/ICSC/ICSC.cpp: In member function 'int _ICSC::serialAvailable()':
C:/Users/TasosStr/Arduino/libraries/ICSC/ICSC.cpp:183:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
libraries\ICSC/subdir.mk:18: recipe for target 'libraries/ICSC/ICSC.cpp.o' failed
make: *** [libraries/ICSC/ICSC.cpp.o] Error 1
04:15:42 Build Finished (took 2s.571ms)
Can you please help me ?
Thank you.
Best Regards,
Tasos