2024-10-04 12:42 AM - last edited on 2024-10-04 02:08 AM by SofLit
I am using stm32f103c8t6 microcontroller for uploading the bootloader and application. After uploading the bootloader binary code using UART communication (boot1=0 and boot0=1) to the controller, the reset pin is not working for further functionality i.e it is not erasing the current program and the uploaded code is working after pressing the reset button. Please guide me regarding that problem.
2024-10-04 02:38 AM
Yes, and from that time i am unable to upload the codes using uart and the reset pin is not functioning as before.
2024-10-04 02:41 AM
What board are you using?
And if you upload your application using ST-LINK and STM32CUbeProgrammer, are you able to connect and program the MCU?
2024-10-04 02:59 AM
Yes, by using the ST - LINK i am uploading the code but cannot reset the program.
2024-10-04 03:03 AM
So, check reset pin level when you press the button.
You need to have:
- High level when the button is unpressed
- Low level when it is pressed.
Still you didn't mention what board you are using!
2024-10-04 03:08 AM
I have mentioned the board from beggining i.e STM32F103C8T6.
2024-10-04 03:12 AM
@Shaktimayee wrote:
I have mentioned the board from beggining i.e STM32F103C8T6.
This is not a board, this is a microcontroller.
For example NUCLEO-F103RB is a board having a STM32F103RB microcontroller on it.
So please tell us about the board you are using.
2024-10-04 03:18 AM
I am not using any board. For uploading through ST-LINK i am using a ST-LINK V2 clone.
2024-10-04 03:22 AM - edited 2024-10-04 03:22 AM
@Shaktimayee wrote:
I am not using any board. For uploading through ST-LINK i am using a ST-LINK V2 clone.
Your MCU STM32F103RB is soldered on which PCB then? Could you please share a photo of your setup?
Are you using blue pill board?
2024-10-04 03:30 AM
The above picture is my setup.
2024-10-04 03:38 AM
Ok,
I had a doubt you are using Blue pill board: https://stm32-base.org/boards/STM32F103C8T6-Blue-Pill.html
and you confirmed it.
At this stage, I can only suggest you (as I mentioned previously) to check reset pin level according to the user button state. If it doesn't present issue, so I suspect you are facing a fake MCU. So I recommend you to purchase a genuine product such as NUCLEO-F103RB board.
See for example this thread.