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)).
error is probably in created hex file, because it is about 3 times bigger than file created using Assembler (for the same function)). Not necessarily, if you write C without any thought of the underlying architecture, you can easily get 3 or more times the size of assembler code. If you are using the eval version it is possible that because "it is about 3 times bigger " you overrun the eval limit. Erik