Author Topic: Cosmic Compiler for STM8, generating Hex  (Read 2295 times)

0 Members and 1 Guest are viewing this topic.

Offline old greggTopic starter

  • Regular Contributor
  • *
  • Posts: 130
  • Country: 00
Cosmic Compiler for STM8, generating Hex
« on: June 02, 2018, 04:17:42 pm »
I'm trying to use the Cosmic compiler with the STVD program (that keep crashing) from st micoelectronic. I want to create an hex file at the build process but I can't get the output adress path right . The content always end up in the console.

the syntax goes "chex main.o -fi -o????" , -fi being the command to convert to hex, but what do I put after the -o command ?

I tried many things without success.
 

Offline rstofer

  • Super Contributor
  • ***
  • Posts: 9890
  • Country: us
Re: Cosmic Compiler for STM8, generating Hex
« Reply #1 on: June 02, 2018, 04:46:30 pm »
If it is like most *nix commands, -o <filename>.hex

If you can't get the output to go to a file, redirect it;

chex {whatever} > {some file name}

There's a handy redirection chart here:

https://askubuntu.com/questions/420981/how-do-i-save-terminal-output-to-a-file
 

Offline rstofer

  • Super Contributor
  • ***
  • Posts: 9890
  • Country: us
Re: Cosmic Compiler for STM8, generating Hex
« Reply #2 on: June 02, 2018, 09:51:45 pm »
For most *nix programs, the -o file is named first

<command> -o <output file> <input file>
 

Offline old greggTopic starter

  • Regular Contributor
  • *
  • Posts: 130
  • Country: 00
Re: Cosmic Compiler for STM8, generating Hex
« Reply #3 on: June 03, 2018, 01:48:49 pm »
there's a subsitute for the path however "chex -o $(OutputPath)$(TargetSName).s19" but even with that, it doesn't work. I'll try the solution you give and report back.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf