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

Atmel, PG302

I am programming AT89C2051 in uVision2.
I am using programmer PG302.

When I flash controller with hex file created using Assembler, everything is OK.
But when I flash controller with hex file created using C51, I get message "Device not equal to file" (in PG302).

I don't know what to do, please help if you know how.

(My C51 code is OK, error is probably in created hex file, because it is about 3 times bigger than file created using Assembler (for the same function)).

Parents
  • I am using keil evaluation uV2.

    problem can't be in limitations or program size because it's very small program, 5 lines in assembler.

    but when I try to program controller with ANY hex (sample codes from the net, or any other surely correct code)
    Assembler version is working
    and C version is NOT working (device not equal to file - it flashes it normally, but when it verifies, i get this message).

    Compilation of C is also without any errors or warnings.
    Even when I test program with debugger, it works fine.


    error is probably in programmer software (pg302)

Reply
  • I am using keil evaluation uV2.

    problem can't be in limitations or program size because it's very small program, 5 lines in assembler.

    but when I try to program controller with ANY hex (sample codes from the net, or any other surely correct code)
    Assembler version is working
    and C version is NOT working (device not equal to file - it flashes it normally, but when it verifies, i get this message).

    Compilation of C is also without any errors or warnings.
    Even when I test program with debugger, it works fine.


    error is probably in programmer software (pg302)

Children