ahmar123
Newbie level 5

View attachment 197435
Software is Stuck on Checking Target MCU , Hex file is uploaded , Checked the Comport ok , Here is the code for led blink
Upload the hex file and click on download program , power on / off the board but still it stuck on the above screen shot problem saying checking target much , highlight the problem
Software is Stuck on Checking Target MCU , Hex file is uploaded , Checked the Comport ok , Here is the code for led blink
Code:
#include <reg51.h>
sbit led1 = P2^0;
// Function to generate a delay in milliseconds
void delay(int ms) {
int i, j;
for (i = 0; i < ms; i++) {
for (j = 0; j < 1275; j++) {
}
}
}
int main() {
while(1){
led1 = 0x01; // Turn on the LED (set P2.0 high)
delay(500); // Delay for 500 ms
led1 = 0x00; // Turn off the LED (set P2.0 low)
delay(500); // Delay for 500 ms
}
}
Last edited by a moderator: