Modified for medium density chip -- STM32F10XC8T6