Closed svelmurugan92 closed 5 years ago
Hi @svelmurugan92, well looking at the log you have the answer:
pms_7003_test.ino.cpp:(.text.setup+0x56): undefined reference to 'HardwareSerial::begin(unsigned long, unsigned char)'
https://github.com/mcci-catena/Arduino_Core_STM32/blob/9864576a4cc77b25efe446da907acd7ba5c5e793/cores/arduino/HardwareSerial.h#L112-L114
pms_7003_test.ino.cpp:(.text.startup._GLOBAL__sub_I_Serial1+0x8): undefined reference to 'HardwareSerial::HardwareSerial(unsigned long, unsigned long)'
You don't have this prototype, so simply check your sketch and how you define your Serial1 instance. Type have to be the same or simply cast them.
Hello All,
Here is our BSP for STM32 https://github.com/mcci-catena/Arduino_Core_STM32
We add USB Serial or Generic serial or No serial options. For reference our variant file UART definitions. https://github.com/mcci-catena/Arduino_Core_STM32/blob/9864576a4cc77b25efe446da907acd7ba5c5e793/variants/CATENA_461x/variant.h#L124
Would like to use both SerialUSB and Serial1 and Serial2 at same time. While select the USB serial in the Arduino IDE drop down and declare the hardware serial in the sketch returns below error
Please share your views. Give some ideas to handle it.
Thank you in advance