Flashing ST-LINK on Debugger - Size limitation
I tried to flash the STLinkV2.J28.M18.bin on the mini debugger. However, my CubeProgrammer says that the binary exceeds FLASH limits of the MCU. The schematics shows that the MCU is a STM32F102CB, which has 128kB FLASH. The .bin file has 207kB. Is there a ST-LINK binary that fits this MCU?
You might want to double check the file downloaded as the STLinkV2.J28.M18.bin file is 128kb (size is 0x20000). I was able to flash this to the mini debugger (APM32F103CBT6) using a different DAP-Link to change the firmware from DAP-Link to the ST-Link .
For me it was easier to convert this from a bin to hex and offset the output by 0x08000000 (start program memory) since I had to use a different program to flash it (as STM32CubeProgrammer does not recognize a DAP-Link)