gcc+H8

Aug 08, 2006 5 Replies

I've got to write software for an Hitachi (Renesas) H8/300 MCU. I've written software in C, and, when I try to compile it with gcc using the command line "gcc -c -O2 -ms out.o in.c" the system answers "cc1: error: invalid option 's'". What's wrong?



Tank you


Max



The -ms option is specific to the H8 compiler. In your command line you are just calling gcc, rather then h8300-elf-gcc. Could it be that the wrong version of gcc on your machine is being invoked? Check your paths and environment variables.

Regards, Richard.

formatting link
for Cortex-M3, ARM7, ARM9, HCS12, H8S, MSP430 Microblaze, Coldfire, AVR, x86, 8051 & PIC18 * * * *

What's the chip model number you are using eg H8.....

That depends as -ms is invalid in newer versions were as -ms2600 (H8S/2600 core) and -msx (H8SX core)

What version of GCC are you using from where?

See sig and

formatting link

Paul Carpenter | paul@pcserviceselectronics.co.uk PC Services GNU H8 & mailing list info For those web sites you hate

I'm using gcc3.4.4.1 under cygwin. I think I didn't installed the right compiler for H8. I'll search the right one.

I'm also trying to use h8tools, that should be an ad hoc suite for H8 MCU, based on gcc. But I think some files are damaged, because when I try to launch ld.exe, my system crashes. Can you give me a link where to download again this tool?

Max

Did Paul not just do that?

"See sig and

formatting link
"

Regards, Richard.

formatting link
for Cortex-M3, ARM7, ARM9, HCS12, H8S, MSP430 Microblaze, Coldfire, AVR, x86, 8051 & PIC18 * * * *

I've missed it, sorry

Max

FreeRTOS.org ha scritto:

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required