cancel
Showing results for 
Search instead for 
Did you mean: 

How to generate .bin file from STVD

H_H_11
Associate II

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

1 ACCEPTED SOLUTION

Accepted Solutions
Artur IWANICKI
ST Employee

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.

View solution in original post

4 REPLIES 4
Artur IWANICKI
ST Employee

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_11
Associate II

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.

Artur IWANICKI
ST Employee

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.

Thanks for the response.

Will check another way to do this.