As the title implies, if I combine all the codes to run the six uart/s and USB Serial(CDC) the program hangs up and stop sending the debug message.
Please suggest any thing that I can do with the code or is it something to be changed in the core?
No error encountered during compilation.
Im Using:
OS: Windows 10
IDE : Arduino IDE 1.8.10
Core : StevStrong core (https://github.com/stevstrong/Arduino_STM32)
Board settings: Generic STM32f407V series
USB Configuration: USB Serial (CDC)
Upload method : ST link (im using jlink to upload the bin file)
Here is my sample code:
Code: Select all
void setup() {
Serial.begin(115200);
Serial1.begin(152000);
Serial2.begin(152000);
Serial3.begin(152000);
Serial4.begin(152000);
Serial5.begin(152000);
Serial6.begin(152000);
delay(1000);
Serial.println("Start");
}
void loop() {
// put your main code here, to run repeatedly:
if (Serial.available() > 0) {
Serial.write(Serial.read());
}
delay(1000);
Serial.println("USB Serial Test tx");
// delay(10);
Serial1.println("Serial1 Test tx");
Serial2.println("Serial2 Test tx");
Serial3.println("Serial3 Test tx");
Serial4.println("Serial4 Test tx");
Serial5.println("Serial5 Test tx");
Serial6.println("Serial6 Test tx");
}