Alternative chip solution

This year ST's MCU has reached an unbearable level, not to mention expensive, it is difficult to buy. We also had to find alternatives. The priority is to directly look for chips without modifying the hardware and software. After all, it is something that has been mass-produced, and I do not want to make too many changes.

First of all, the most commonly used STM32F103C8T6, searched online, there are many domestic solutions that can be directly replaced, there are cases of successful replacement, and there are also pitfalls, whoever uses it knows. Here is my replacement process.

1. APM32F103C8T6 (Zhuhai Jihai Semiconductor Co., Ltd.). Use it directly as STM32F103C8T6, download the program directly with IAR, and the download is successful. There is no abnormality in the operation; the program is directly downloaded through the J-LINK SWD interface and there is no abnormality in the operation. Hardware high and low temperature test passed.

2. HK32F103C8T6 (Shenzhen Hangshun Chip Technology R&D Co., Ltd.). Use it directly as STM32F103C8T6, download the program directly with IAR, and the download is successful. There is no abnormality in the operation; the program is directly downloaded through the J-LINK SWD interface and there is no abnormality in the operation. The hardware high and low temperature test failed, and the crystal oscillator was abnormal. After communicating with technical support, modify the crystal driver: *(uint32_t*)0x40021028 |= 0x00060000; // Increase the HSE drive capability to 0x6; and then pass the high and low temperature test.

3. GD32F103C8T6 (Beijing Zhaoyi Innovation Technology Co., Ltd.). Use it directly as STM32F103C8T6, download the program directly with IAR, and the download is successful. Abnormal operation, keep restarting. After debugging, it is the watchdog timeout restart...