Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
9 years, 9 months ago.
what is internal error
always getting internal error for the following program
- include "mbed.h"
DigitalOut MOTOR(p5); DigitalIn level1(p6); DigitalIn level2(p7); DigitalIn level3(p8); DigitalIn tip1(p10); DigitalIn tip2(p11); DigitalIn tip3(p12); int main() { while(1) { if(tip1==1 && LEVEL1==0) { MOTOR=1; } else if(tip1==0 || level3==1) { MOTOR=0; } } }
Question relating to:
2 Answers
9 years, 9 months ago.
Firstly, in 'if' condition 'LEVEL1' should be 'level1'.
Regarding 'internal error', on first try I got the same error but weirdly on second try (without changing anything in the code) compiler successfully generated the binary.
9 years, 9 months ago.
It randomly gives the same error for me. This may be caused by an overload on the server as reported a while ago.