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

AT89C51RE2 problems

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

Parents Reply Children
  • If I completely remove the banking scheme from my project and also remove the two A51 files. I can nownload code and make it work. So thank you Erik, for helping me isolate the problem. I now think that the problem lies in the app note and the a51 files. When I configured the files, there were some discrepancies between the files and the app notes.

    Anyone know, if a working set of files are available somewhere? Or do I need to tailor my own? Perhaps I should mention that I ultimately plan on using RTX-Tiny for the application. I have used RTX-Tiny extensively on the RD2 device. Anyone have han any luck making it run on RE2?

    Best regards
    henrik