STM32 Serial Communication issues

Post here first, or if you can't find a relevant section!
Post Reply
rad69
Posts: 1
Joined: Fri Jun 17, 2022 5:53 am

STM32 Serial Communication issues

Post by rad69 »

Hello, I am new to the community and to the project I am working on.. I am using a STM32 blue pill board and programming it with a simple code of serial communication :
void setup() {
Serial1.begin(9600);
pinMode(PC13,OUTPUT);
}


void loop() {

Serial1.println("Working\n");
delay(1000);
digitalWrite(PC13,LOW);
for(int i=0;i<2;i++){
Serial1.println(i++);
delay(100);
}
digitalWrite(PC13,HIGH);
}
I am using stm32103c8t6 blue pill board
with generic Stm32f1 series
my doubts :
1. I previously uploaded a code with memory size >64 kb on the blue pill and it worked and after 10-15 cycles of uploading, the physical board was not working even after i upload the code correctly even with less size.
2. Now i am using a different stm32blue pill board , but it is having this issue : when I increase the value of i in my code to 2 and after, serial.print suddenly stops working..not even the "working" string is getting printed.
3. I tried erasing the memory of both boards using stmcube programmer, tried changing board variant to generic stm32f1x, nothing productive has happened yet.
can someone please direct me on this ? its very crucial for my project..
Post Reply

Return to “General discussion”