Skip to main content
Visitor II
August 13, 2019
Solved

Verify Failed when programming stm32f103c8 blue pill

  • August 13, 2019
  • 2 replies
  • 1332 views

Trying to program stm32f103c8 blue pill using st link v2 adapter on ac6 eclipse platform.

but showing following error.embedded:startup.tcl:476: Error: ** Verify Failed **

    This topic has been closed for replies.
    Best answer by Peter BENSCH

    This thread relates to a so-called Blue Pill, which uses illegally cloned STM32F103. ST resources are only dedicated to supporting genuine ST products. We are not committed to ensuring that clones/fakes products work properly with the firmware we provide.

    We recommend to purchase genuine products from STMicroelectronics and purchase them from known and trusted distributors.

    This thread will now be locked. However, if you face difficulties while using genuine ST products, we’re here to assist you. Please feel free to start a new thread, and our team, along with community members, will be ready to help you with any issues/questions you encounter.

    Thank you for your understanding.

    Regards
    /Peter

    2 replies

    Super User
    August 13, 2019

    You seem to have omitted to show the error?

    SsawaAuthor
    Visitor II
    August 13, 2019

    Info : Target voltage: 3.237393

    Info : Stlink adapter speed set to 4000 kHz

    Info : STM32F103C8Tx.cpu: hardware has 6 breakpoints, 4 watchpoints

    Info : Listening on port 3333 for gdb connections

    target halted due to debug-request, current mode: Thread 

    xPSR: 0x01000000 pc: 0xfffffffe msp: 0xfffffffc

    Info : Stlink adapter speed set to 4000 kHz

    adapter speed: 4000 kHz

    ** Programming Started **

    auto erase enabled

    Info : device id = 0x20036410

    Info : flash size = 64kbytes

    Warn : no flash bank found for address 0

    wrote 0 bytes from file Release/RFID_test.elf in 0.006000s (0.000 KiB/s)

    ** Programming Finished **

    ** Verify Started **

    Error: checksum mismatch - attempting binary compare

    diff 0 address 0x00000000. Was 0xff instead of 0xf8

    diff 1 address 0x00000001. Was 0xff instead of 0xb5

    diff 2 address 0x00000002. Was 0xff instead of 0x00

    diff 3 address 0x00000003. Was 0xff instead of 0xbf

    diff 4 address 0x00000004. Was 0xff instead of 0xf8

    diff 5 address 0x00000005. Was 0xff instead of 0xb5

    diff 6 address 0x00000006. Was 0xff instead of 0x00

    diff 7 address 0x00000007. Was 0xff instead of 0xbf

    No more differences found.

    embedded:startup.tcl:476: Error: ** Verify Failed **

    in procedure 'program' 

    in procedure 'program_error' called at file "embedded:startup.tcl", line 521

    at file "embedded:startup.tcl", line 476

    Super User
    August 13, 2019

    Well, the problem is clearly here:

    Warn : no flash bank found for address 0

    wrote 0 bytes from file Release/RFID_test.elf in 0.006000s (0.000 KiB/s)

    It's telling you that it wrote nothing - so clearly the verification is going to fail!

    I don't have AC6, so can't help with that.

    Have you asked on their forum?

    Have you ever had it working before?

    Can you program using the ST-Link Utility?

    Technical Moderator
    April 25, 2025

    This thread relates to a so-called Blue Pill, which uses illegally cloned STM32F103. ST resources are only dedicated to supporting genuine ST products. We are not committed to ensuring that clones/fakes products work properly with the firmware we provide.

    We recommend to purchase genuine products from STMicroelectronics and purchase them from known and trusted distributors.

    This thread will now be locked. However, if you face difficulties while using genuine ST products, we’re here to assist you. Please feel free to start a new thread, and our team, along with community members, will be ready to help you with any issues/questions you encounter.

    Thank you for your understanding.

    Regards
    /Peter