Skip to main content
Visitor II
June 6, 2022
Solved

How to generate .bin file from STVD

  • June 6, 2022
  • 3 replies
  • 2025 views

Hi STM8 Team,

I can see STVD generates .s19 , .sm8 files. I want to generate .bin file.

I had tried it by adding the following line in Post-Build section:

chex -o $(OutputPath)$(TargetSName).bin

But this did not work. Could you please guide me on how to generate .bin in STVD?

Thanks,

Hrithik

    This topic has been closed for replies.
    Best answer by Artur IWANICKI

    Hello,

    You are right. Within chex converter description there is no binary files, only hex and s19. This last one is default output file format.

    In fact chex is a tool provided by Cosmic toolchain.

    I do not see any built in hex2bin converter within STVD neither.

    3 replies

    ST Employee
    June 9, 2022

    Hello,

    There is no indication to the input file (.sm8) which needs to be converted into .bin.

    Could you please try instead:

    chex -o $(OutputPath)$(TargetSName).bin $(OutputPath)$(TargetSName).sm8

    H_H_11Author
    Visitor II
    June 10, 2022

    Hi @Artur IWANICKI​ ,

    Thanks for the response.

    I tried your suggestion and .bin file is getting created, but the content of .bin file is exactly similar to .s19.

    Does STVD support .bin format?

    Thanks.

    ST Employee
    June 10, 2022

    Hello,

    You are right. Within chex converter description there is no binary files, only hex and s19. This last one is default output file format.

    In fact chex is a tool provided by Cosmic toolchain.

    I do not see any built in hex2bin converter within STVD neither.

    H_H_11Author
    Visitor II
    July 7, 2022

    Thanks for the response.

    Will check another way to do this.