cancel
Showing results for 
Search instead for 
Did you mean: 

Issues in Serial communication

RNema.1
Associate

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..

1 REPLY 1

0693W000008xsqBQAQ.png