The Code
*************
test1.c

#include <io.h>

void wait(void);         //prototype for wait()

int main(void)
{
  P1DIR=0xFF;            //port 1 = output
  P1OUT=0x01;            //set bit 0 in port 1
  
  for(;;) {              //infinite loop
    P1OUT=~P1OUT;        //invert port 1
    wait();              //call delay function
  }
  
}

void wait(void)          //delay function
{
  volatile int i;        //declare i as volatile int
  for(i=0;i<32000;i++);  //repeat 32000 times
}

the above code with Win98SE or Win Me produces the following error.

The error
***********
 > Executing: C:\PROGRAM FILES\CONTEXT\ConExec.exe 
 > "C:\mspgcc\bin\msp430-gcc.exe" test1.c -mmcu=msp430x149 -Wl,--section-start 
 > -Wl,.ROMpar=0xb400 -O test1.c -o test1  -ggdb

cc1: internal error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
cc1: internal error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
> Execution finished.



The error does not happen with Win2k. Now please before some one jumps in and 
dismissively says just run under Win2k or dumps on me for even using win 98SE 
or Win ME or takes offense that I have the time to try all three systems let me 
say this my attempt to report a probable bug. That's all.   A reference to this 
port of the compiler was in Circuit Cellar Inc  and I downloaded it from 
www.mikrocontroller.com  so I doubt this problem is only experienced by me.
Please don't shout me down.

Reply via email to