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
gcc+H8
Started by ●August 8, 2006
Reply by ●August 8, 20062006-08-08
> 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 youThe -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. http://www.FreeRTOS.org for Cortex-M3, ARM7, ARM9, HCS12, H8S, MSP430 Microblaze, Coldfire, AVR, x86, 8051 & PIC18 * * * *
Reply by ●August 8, 20062006-08-08
On 8 Aug, in article <1155023187.997151.308310@i42g2000cwa.googlegroups.com> max.giacometti@libero.it wrote:>I've got to write software for an Hitachi (Renesas) H8/300 MCU. I'veWhat's the chip model number you are using eg H8.....>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?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 www.kpitgnutools.com -- Paul Carpenter | paul@pcserviceselectronics.co.uk <http://www.pcserviceselectronics.co.uk/> PC Services <http://www.gnuh8.org.uk/> GNU H8 & mailing list info <http://www.badweb.org.uk/> For those web sites you hate
Reply by ●August 8, 20062006-08-08
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
Reply by ●August 8, 20062006-08-08
<max.giacometti@libero.it> wrote in message news:1155029542.599676.172730@i42g2000cwa.googlegroups.com...>Can you give me a link where to download again this tool?Did Paul not just do that? "See sig and www.kpitgnutools.com" Regards, Richard. http://www.FreeRTOS.org for Cortex-M3, ARM7, ARM9, HCS12, H8S, MSP430 Microblaze, Coldfire, AVR, x86, 8051 & PIC18 * * * *
Reply by ●August 8, 20062006-08-08
I've missed it, sorry Max FreeRTOS.org ha scritto:> <max.giacometti@libero.it> wrote in message > news:1155029542.599676.172730@i42g2000cwa.googlegroups.com... > > >Can you give me a link where to download again this tool? > > Did Paul not just do that? > > "See sig and www.kpitgnutools.com" > > Regards, > Richard. > > http://www.FreeRTOS.org > for Cortex-M3, ARM7, ARM9, HCS12, H8S, MSP430 > Microblaze, Coldfire, AVR, x86, 8051 & PIC18 * * * *