problems in uploading code to stm32 bluepill

I don't have a system in front of me, but from your ST-Link log "Device flash Size: 32 Kbytes" doesn't seem right. The Bluepill STM32f103c8t6 is supposed to be a 64 kByte flash device.

What are the markings on the MCU chip?