Topic : Why does this crash lx51.exe?

Forum : 8051

Original Post
Post Information Post
August 5, 2010 - 4:27pm
Guest

The following bit of code crashes lx51 (V5.02.10.0078). Yes, I know it won't link successfully, I've paired it down to a
minimum amount of code. But that's not the problem; The linker doesn't complain, it crashes.

-------------------------------------------------------------------------

#define PUTBYTE(b) { \
for (I2C_IDX=0;I2C_IDX<8;I2C_IDX++) { \
\
if (b & 0x80) I2CCON_MDO = 1; \
else I2CCON_MDO = 0; \
\
I2C_CLOCK(); \
} \
I2CCON_MDE = 0; \
I2CCON_MCO = 1; \
I2CCON_MCO = 1; \
I2CCON_MCO = 1; \
I2CCON_MCO = 1; \
I2CCON_MCO = 1; \
I2CCON_MCO = 1; \
I2CCON_MCO = 1; \
}

void main() {

while(1) {

}

}

Replies
Post Information Post
+1
0
-1
August 6, 2010 - 2:51pm
Guest

Bueller?... Bueller?... Bueller?

(I upgraded to 5.02.10.0173 and confirmed it still crashes)

+1
0
-1
August 6, 2010 - 4:34pm
Raisonance Support Team

We aren't able to reproduce your issue despite many tries.

Is it possible for you to send to support [at] raisonance.com a project showing the issue?