This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

why wont Run, my BlinkLED.c compiled by Keil C into On-Chip AT89C51

i made a program to blink LEDs on port 2...
with uVision (BlinkLED.c) for on-chip 89C51
(4kbROM,128byteRAM) and it work well on
uVision simulator

but.. when i compile it, send the .Hex to the
devBoard, it only run the initial command (after void main, before while(1))
i light 1 LED on P1.3 and it do fine...

whats wrong with that? is it the setup matter? how can i setup uVision for my 89c51
on-chip EEPROM?

is any one can help me... ive try it many time, but still dont work..

Thanks.
Best Regards,
Andy Mario

Parents
  • >Your posting is seriously lacking details.
    >It's quite impossible for anyone to guess
    >what might have gone wrong without knowing:
    >1) What development board is that?
    >2) How did you set up the Keil tools?
    >3) What version of the tools are you using?
    >4) What exactly does your program do? You
    >may have to show source code.
    >
    ah, im sorry for my mistake..

    1) well, i made a minimum board that i mistaken by devboard in common, its include: Regulator 5v, one chip 89c51, couple resistor and 8leds on every port(P0,P1,P2,P3..all have 8resistor and 8 leds) sothere is no external RAM/ROM...they all connected well. i try it with 'other Ledblink.HEX file that i didt made' and its work. :)
    but not work in my HEX file that i made with Keil-mVision2 :(
    ah...

    2)i try setup in default condition..not work
    when i open the HEX, i found 01.8000.code.2DigitCRC. why '8000' offset
    so, i try to change the option that have value:'8000' to '0000' it result:
    01.00012.code.2DigitCRC and still not work..
    then i start to disable all debug option
    and still did not work...
    ........ah, what i do wrong?
    but from 1st place till now i only can make the led, 2 led on and the other off in every port...
    but not blinking.

    3)Keil mVision2

    4)ai.., i forgot to take it with me, i rent the internet, internet is very expensive in this country...pardon me, ill bring it in my next visit tomorrow.
    ...but,all i can tell is, its BLINK the LED one by one in P2 (port2) or P1 or P3 or P0...
    i just wanna see its 'BLINK' that mean the program did work
    ...not frozee like this.

    Thanks Before to everyone thats help.
    BEST REGARDS,
    AndyMario.

Reply
  • >Your posting is seriously lacking details.
    >It's quite impossible for anyone to guess
    >what might have gone wrong without knowing:
    >1) What development board is that?
    >2) How did you set up the Keil tools?
    >3) What version of the tools are you using?
    >4) What exactly does your program do? You
    >may have to show source code.
    >
    ah, im sorry for my mistake..

    1) well, i made a minimum board that i mistaken by devboard in common, its include: Regulator 5v, one chip 89c51, couple resistor and 8leds on every port(P0,P1,P2,P3..all have 8resistor and 8 leds) sothere is no external RAM/ROM...they all connected well. i try it with 'other Ledblink.HEX file that i didt made' and its work. :)
    but not work in my HEX file that i made with Keil-mVision2 :(
    ah...

    2)i try setup in default condition..not work
    when i open the HEX, i found 01.8000.code.2DigitCRC. why '8000' offset
    so, i try to change the option that have value:'8000' to '0000' it result:
    01.00012.code.2DigitCRC and still not work..
    then i start to disable all debug option
    and still did not work...
    ........ah, what i do wrong?
    but from 1st place till now i only can make the led, 2 led on and the other off in every port...
    but not blinking.

    3)Keil mVision2

    4)ai.., i forgot to take it with me, i rent the internet, internet is very expensive in this country...pardon me, ill bring it in my next visit tomorrow.
    ...but,all i can tell is, its BLINK the LED one by one in P2 (port2) or P1 or P3 or P0...
    i just wanna see its 'BLINK' that mean the program did work
    ...not frozee like this.

    Thanks Before to everyone thats help.
    BEST REGARDS,
    AndyMario.

Children
No data