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

Simulated code resets, actual code does not

Hi,

I have just started using the Keil Development tools. I created a timer example that should toggle a port pin, approx every half second. With a generic 8051 it works. When I convert the code to the Cygnal C8051F320, power on resets are generated before my code gets to the wait for timer interrupts loop. The code runs ok on an actual Chip. I assume that this is not a bug, but something I am doing wrong. Could this be caused by not using the Startup.A51 file?

Parents
  • Hi Alex,

    That was the first time I tried the simulator and it did not work, so I abandoned it. I don't have time right now to work on debugging Keils simulator. It's good to know that you found the same problem on an older Cygnal chip. If you find a work around let me know. I believe I had all of the latest drivers, but there is probably some work around. It just occurred to me that perhaps if the watchdog timer is enabled and properly refreshed the simulator will work. Maybe the testing of the Cygnal chips was done with the watchdog timer enabled and Keil did not realize that the simulator does not work with the watchdog timer disabled.

    Thanks for the help.

    Brad

Reply
  • Hi Alex,

    That was the first time I tried the simulator and it did not work, so I abandoned it. I don't have time right now to work on debugging Keils simulator. It's good to know that you found the same problem on an older Cygnal chip. If you find a work around let me know. I believe I had all of the latest drivers, but there is probably some work around. It just occurred to me that perhaps if the watchdog timer is enabled and properly refreshed the simulator will work. Maybe the testing of the Cygnal chips was done with the watchdog timer enabled and Keil did not realize that the simulator does not work with the watchdog timer disabled.

    Thanks for the help.

    Brad

Children