All I can say is a downloaded the package from mikrocontroller.com
Now when it bombs the error massage segmentation error is printed along with
who to contact to submit a bug report. If this is the wrong place to send
the bug report then that initself is a bug. So now I the error message as
far has bug reporting goes has a bug. Does anyone know who to contact to
report a bug in bug reporting?
Here is test1.c but I venture any code will exhibit the problem
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
}