Thanks, Chris. I used the DOS window on Win2000 to execute the following commands with the -O2 option as follows:
msp430-gcc grocc.c -O2 -mmcu=msp430x1121 -o grocc.exe // to create *.exe bin code msp430-objcopy -O ihex grocc.exe grocc.hex // to create *.hex code msp430-gcc -mmcu=msp430x1121 -g -O -o grocc.elf grocc.c // to create *.elf file The created *.hex file is 10 kB compared to 21 kB of the *.d43 created by the IAR program. Then I used the IAR debugger to download the *.hex file to the MSP430F1121 mc. The program would not run. If I download the *.d43 file, it runs fine. Have I missed something again? Any suggestions? I followed the instructions on the http://www.mikrocontroller.net/mspgcc.en.htm web page to do the above and run their test1.c sample program. The test1 downloads from the mspgdb GUI interface and runs fine. Then I tried similarly with my grocc program. When I tried to download it to the chip, the message in the status bar said: 'Program stopped at ffff'. Then I hit the download button again and the status bar message said: 'DOWNLOAD FAILED: Invalid download offset: Files/msp430/tools/bin/grocc.elf'. Would it be related to my original problem? I have another question. The 'msp430_insight' is the msp430-gdb GUI type of application. How about the 'msp430_tools'? Should I use the DOS window or something else? Thanks, Carl -----Original Message----- From: mspgcc-users-ad...@lists.sourceforge.net [mailto:mspgcc-users-ad...@lists.sourceforge.net]on Behalf Of Chris Liechti Sent: Tuesday, 25 February 2003 15:36 To: mspgcc-users@lists.sourceforge.net Subject: Re: [Mspgcc-users] msp430_tools help Am 25.02.2003 22:51:35, schrieb "Carl Kopin" <carl.ko...@hotpop.com>: > msp430-ld: region text is full (grocc.exe section .text) did you use "-O2" as compiler option? optimization is turned off by default and that activates it. > Can anyone help me to understand what is going on? I think, there are > manuals included with the msp430_tools; can you teach me how to access them > or other beginner's manuals? do a CVS checkout of the mss430-libc directory do get the doc.txt. you can also use the browse CVS link on our homepage for web based access. > Another question: what does the cryptic name 'naked' mean? I appreciate your > help. that is written in msp430-libx/doc/doc.txt it disables the function entry and exit code that is generated by the compiler. it is useful when doing inlne assembly only functions and a source of strange bugs if not used carefuly. chris ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Mspgcc-users mailing list Mspgcc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mspgcc-users --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.449 / Virus Database: 251 - Release Date: 27-Jan-2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.449 / Virus Database: 251 - Release Date: 27-Jan-2003