First of all if you want to avoid making me upset don't post anything if you try to support me in writing a lot of steps how to fiddle around with it to make it work.
With this question I am exclusively, solely, only interested in
- install STM-core
- Serial1, Serial2, Serial3, works WITHOUT any modifications
Recently I tried to compile a small code for STM-microcontrollers that tries to assign IO-pins to from me chosen IO-pins to the serial1 interface.
//#define Serial SerialUSB
// RX TX
HardwareSerial Serial2(PA10, PA9);
void setup() {
pinMode(PA5,OUTPUT);
Serial1.begin(115200);
}
void loop() {
digitalWrite(PA5, HIGH);
Serial1.println("turn on the LED");
delay(1000);
digitalWrite(PA5, LOW);
Serial1.println("turn off the LED");
delay(1000);
}
The title is meant in this way:
Does there exist a STM-core that works this way:
- install the core with the board-manager
- create sketch
- compile sketch compiling is successfull
- upload is successful
I tried this with by installing these two board-packages
But the code below did not compile
don't post advice like this:
I don't want advice like this
1a. install the core with the board-manager
1b. modify ......
1c. modify .....
1d.
....
1z.
2. create sketch
3. compile sketch compiling is successfull
4. upload is successful
my question is
does there exist a board-package that works with
serial1
and
serial2
and
serial3
straight out of the box
this way
- install the core with the board-manager
- create sketch
- compile sketch that uses serial1, serial2, serial3 compiling is successfull
- upload is successful
I am serios:
This is a closed question. So answer with "Yes" or "No"
Just in case you can answer with "Yes". Add the link to Github where this core can be downloaded.
If you can't resist to write the 1a., 1b, 1c, .... 1z. manual
Open a textfile write it there and store it on your harddisk - done
But do not post it in this thread!
If storing it in a personal textfile is not satisfying for you write an introductional tutorial but
But do not post it in this thread!
best regards Stefan