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

  • To Andy:
    The RD2 part does not have banked memory, so the problem does not apply there. The RE2 is actually just the bigger brother, adding one extra UART and more memory.

    To Erik:
    Thank you, I will look into the link you provide. If I am lucky there will be something that helps me on my way.

    What strikes we as odd, is that apparently noone else have had any problems. Since I am somewhat confident that I have understood and followed the app note to the letter, I suspect that perhaps this specific Atmel controller is not (yet) widely used... And those who do, are apparently taking on a different approach than I do.

    Best regards
    Henrik

  • A lot of people who need larger programs looks at ARM or similar chips.

  • What strikes we as odd, is that apparently noone else have had any problems. Since I am somewhat confident that I have understood and followed the app note to the letter, I suspect that perhaps this specific Atmel controller is not (yet) widely used... And those who do, are apparently taking on a different approach than I do.

    Actually this is the first time I hear about the RE2. I guess it is either very new of rarely used.

    Have you had a look at the SILabs f12x/f13x series (100 MHz one-clockers with 128k flash, 8k RAM, 2 UARTs, SPI, IIC, ADC, kitchen sink) they are very popular chips and I just love them

    Erik

  • @ Per: Yes, I am aware of the ARM. We actually use the ST ARM7 and 9 quite extensively. However, this particular project is an extension of the RD2 project, so we wanted to reuse all the existing code with as little modification as possible.

    @ Erik: I will look into the Silabs chips. My main requirements is 2 uarts and the ability to reuse my C51 application code.

    Thank you all for your answers.

    Best regards
    Henrik