Search found 3 matches

by Chris_01234
Sun Feb 14, 2021 10:04 pm
Forum: General discussion
Topic: Compile Error: multiple definition of `Serial1'
Replies: 6
Views: 6050

Re: Compile Error: multiple definition of `Serial1'

Hi fpiSTM, Great, thanks for explaining this, now I understand how it works! For others, this is the final solution: //HardwareSerial Serial1(PB7, PB6); //Not required and won't compile as Serial1 already instantiated in the variant, as detailed by fpiSTM void setup() { Serial1.setRx(PB7); //Redefin...
by Chris_01234
Sun Feb 14, 2021 12:02 pm
Forum: General discussion
Topic: Compile Error: multiple definition of `Serial1'
Replies: 6
Views: 6050

Re: Compile Error: multiple definition of `Serial1'

Hi fpiSTM, appreciate your help with this!

The syntax I used is straight from the Wiki: https://github.com/stm32duino/wiki/wiki ... wareserial

If the Wiki is incorrect, do you know the correct syntax?

Thank you
by Chris_01234
Sun Feb 14, 2021 7:33 am
Forum: General discussion
Topic: Compile Error: multiple definition of `Serial1'
Replies: 6
Views: 6050

Compile Error: multiple definition of `Serial1'

Hi all, I'm using STM32 core V1.9.0 and am getting the following error when compiling: Arduino: 1.8.13 (Windows 10), Board: "Generic STM32F0 series, STM32F030C8, STM32CubeProgrammer (SWD), Enabled (generic 'Serial'), Smallest (-Os default), Newlib Nano (default)" c:/users/chris/appdata/loc...

Go to advanced search