Skip to main content
Explorer
April 18, 2024
Solved

How to check the checksum via STVP_Cmdline

  • April 18, 2024
  • 3 replies
  • 2212 views

I download firmware in s19 format via STVP program.
I would like to know how to check the checksum of firmware via STVP_Cmdline.
How can I check it through the command?

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

    In my previous answer, I assumed that you wanted to use STVD in conjunction with an STM32. However, as the name suggests, the STM32CubeProgrammer is only suitable for STM32; the STM8s already on NRND cannot be programmed with it. I am therefore extremely sorry to have to summarise that I cannot suggest a solution to your problem.

    Regards
    /Peter

    3 replies

    Technical Moderator
    April 18, 2024

    Welcome @ShawnHong, to the community!

    For which MCU do you want to use STVP?

    Do you realise that STVP has been on NRND (Not Recommended for New Design) for many years and should be replaced by STM32CubeProgrammer?

    In addition, STVP cannot handle checksums, whereas STM32_Programmer_CLI (part of STM32CubeProgrammer) can.

    Regards
    /Peter

    ShawnHongAuthor
    Explorer
    April 19, 2024

    Hi Peter,

    Thanks for your information.

    We are using STM8S003F3P6 and uploading the firmware via STVP.

    Our goal is to develop a method to automatically upload FW by sending commands to prevent incorrect FW selection in production line.

    For this I'd like to know how to verify the checksum via command.

     

    If we are using STM32_Programmer_CLI, can you provide a command for this?

    Thanks a lot.

    Technical Moderator
    April 19, 2024

    In my previous answer, I assumed that you wanted to use STVD in conjunction with an STM32. However, as the name suggests, the STM32CubeProgrammer is only suitable for STM32; the STM8s already on NRND cannot be programmed with it. I am therefore extremely sorry to have to summarise that I cannot suggest a solution to your problem.

    Regards
    /Peter

    Visitor II
    May 6, 2024

    Well, STM8S (and STM8L) is back to "active", no longer NRND!

    However, as FOSS tends to be less problematic wrt. hardware vendors dropping support: have you considered using stm8flash instead of STVP? However, stm8flash is not a full STVP replacement: it supports the STM8 only, so there is no STM32 and ST7 support. It is for flashing only (not on-target debugging - the FOSS solution for on-target debugging on STM8 uses OpenOCD and GDB).