STM32F103CB not entering the bootloader...
Hi,
I am making a custom PCB. I am able to reliably flash it with a ST-Link and a Segger programmer. I also have a custom program that I use to flash the MCU using the UART. It has worked for years with other ST chips and partially worked with the above mentioned chip in these situations:
1 - MCU is already flashed and the firmware executes a software reset command, after the external PC raises BOOT0. Works perfectly every time @115200
2 - MCU is already flashed and external PC raises BOOT0 and prompts user to press RESET button on PCB. Works perfectly every time @115200
3 - MCU is erased and external PC raises BOOT0 and prompts user to press RESET button on PCB. I tried it about 100 times with different baud rates and the bootloader only responded once...
I spent 2 days debugging this and I eventually figured out that this particular chip is very sensitive to the NRST rise time. My original PCB design had a 0.1uF cap and a 10K pullup. I removed the 10K pullup per the example given in your documentation and it still did not work. I eventually got the bootloader to start by using a 1uF cap and a 10K pullup. IMHO the NRST was rising too quickly (It was not a soldering problem or a bad cap because I checked the reset line with a digital oscilloscope).
I was able to correct the problem, but I am wondering where is the NRST rise time spec documented?
Thanks,
Phil
