6 years, 12 months ago.  This question has been closed. Reason: Too broad - no single answer

Exporting to SW4STM32 - issue with RawSerial.h and Serial.h

I've installed SW4STM32 i.e. C/C++ for Eclipse..

Once I've build project online - seen it work on a Nucleo - I'd also like to build it offline with SW4STM32. However after opening the exported project, I get two compiling error for RawSerial.h and Serial.h.. Does anyone have an idea on this matter..??

------- Compiling status --------------

22:25:30 Build of configuration Debug for project Frank_Com_MEMS make all Building file: ../X_NUCLEO_IKS01A1/Components/lsm6ds3/lsm6ds3_class.cpp Invoking: MCU G++ Compiler

" Removed text - Compiling status okay so far "

/Frank_Com_MEMS_sw4stm32_nucleo_l476rg(1)/Frank_Com_MEMS/" -O0 -g3 -Wall -fmessage-length=0 -ffunction-sections -c -fno-exceptions -fno-rtti -MMD -MP -MF"X_NUCLEO_IKS01A1/Components/lsm6ds3/lsm6ds3_class.d" -MT"X_NUCLEO_IKS01A1/Components/lsm6ds3/lsm6ds3_class.o" -o "X_NUCLEO_IKS01A1/Components/lsm6ds3/lsm6ds3_class.o" "../X_NUCLEO_IKS01A1/Components/lsm6ds3/lsm6ds3_class.cpp" In file included from c:\users\frank\downloads\frank_com_mems_sw4stm32_nucleo_l476rg(1)\frank_com_mems\mbed\mbed.h:80:0, from ../X_NUCLEO_IKS01A1/Components/lsm6ds3/lsm6ds3_class.h:42, from ../X_NUCLEO_IKS01A1/Components/lsm6ds3/lsm6ds3_class.cpp:39: c:\users\frank\downloads\frank_com_mems_sw4stm32_nucleo_l476rg(1)\frank_com_mems\mbed\drivers/Serial.h:70:70: error: 'MBED_CONF_PLATFORM_DEFAULT_SERIAL_BAUD_RATE' was not declared in this scope Serial(PinName tx, PinName rx, const char *name=NULL, int baud = MBED_CONF_PLATFORM_DEFAULT_SERIAL_BAUD_RATE); ^ In file included from c:\users\frank\downloads\frank_com_mems_sw4stm32_nucleo_l476rg(1)\frank_com_mems\mbed\mbed.h:87:0, from ../X_NUCLEO_IKS01A1/Components/lsm6ds3/lsm6ds3_class.h:42, from ../X_NUCLEO_IKS01A1/Components/lsm6ds3/lsm6ds3_class.cpp:39: c:\users\frank\downloads\frank_com_mems_sw4stm32_nucleo_l476rg(1)\frank_com_mems\mbed\drivers/RawSerial.h:64:50: error: 'MBED_CONF_PLATFORM_DEFAULT_SERIAL_BAUD_RATE' was not declared in this scope RawSerial(PinName tx, PinName rx, int baud = MBED_CONF_PLATFORM_DEFAULT_SERIAL_BAUD_RATE); ^ make: * [X_NUCLEO_IKS01A1/Components/lsm6ds3/lsm6ds3_class.o] Error 1

22:25:31 Build Finished (took 904ms)

------- Compiling status --------------

Thx, Frank