Hello everybody,
I am using the AT89C51RE2 controller and the AT89OCD debugger. I have set up my environment according to the application note from Atmel with the suggested modifications to startup51.a51 and l51_bank.a51. In lack of something better I have used 89c51rd2.H in my c file. The c file only contains void main() function. The project contains c-file and the two asm files.
My problem is this. When i download the hex and start a debug session, I am able to step the code, but the disassembly shows the same instruction everywhere. MOV r7,A and obviously nothing happens.
I cannot seem to figure this out, and this is my first time with the OCD and the AT89C51RE2. I wonder if something has to be done in the a51 files which I am not aware of or what could cause this problem in the first place.
Any help is gladly appreciated.
Thank you in advance. Henrik
MOV R7, A is 0xFF in hex. It looks like your program memory isn't getting written to.