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..
STM32 Serial Communication issues
Post here first, or if you can't find a relevant section!
Return to “General discussion”
Jump to
- Announcements
- New users start here
- ↳ Forum rules, FAQs and HowTo's
- ↳ Let us know a bit about you and your projects
- Arduino for STM32
- ↳ General discussion
- ↳ Ideas & suggestions
- ↳ Cores
- ↳ STM32 Core
- ↳ Builds and Announcements
- ↳ Code snippets
- ↳ Ideas & suggestions
- ↳ General discussion
- ↳ Installation and OS related
- ↳ Libraries & Hardware
- ↳ PR's bugs and enhancements
- ↳ LibMaple
- ↳ Builds and Announcements
- ↳ Code snippets
- ↳ General discussion
- ↳ Ideas & suggestions
- ↳ Installation and OS related
- ↳ Libraries & Hardware
- ↳ PR's bugs and enhancements
- ↳ Steve's LibMaple core
- ↳ General discussion
- ↳ PR's bugs and enhancements
- ↳ Projects
- ↳ IDE's
- ↳ Off topic
- Arduino for STM8
- ↳ General discussion
- ↳ Cores
- ↳ STM8 Core
- ↳ Other
- Boards
- ↳ Custom design boards
- ↳ Maple & Maple mini etc
- ↳ STM boards (Discovery, Eval, Nucleo, ...)
- ↳ All other boards
- ↳ STM32F0 based boards
- ↳ STM32F1 based boards
- ↳ STM32F2 based boards
- ↳ STM32F3 based boards
- ↳ STM32F4 based boards
- ↳ STM32F7 based boards
- ↳ STM32G0 based boards
- ↳ STM32G4 based boards
- ↳ STM32H7 based boards
- ↳ STM32L0 based boards
- ↳ STM32L1 based boards
- ↳ STM32L4 based boards
- ↳ STM32L5 based boards
- ↳ STM32MP1 based boards
- ↳ STM32WB based boards
- Bootloaders
- ↳ STM32 HID bootloader
- ↳ USB bootloader
- ↳ STM32 SD-Bootloader
- ↳ STM32 USB CDC bootloader
- Uploaders and debuggers
- ↳ STLink
- ↳ USB to Serial adaptors
- ↳ Black Magic Probe & other
- Dead Thread Graveyard
- ↳ Dead Thread Graveyard