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,

    I doesn't work so I am not using it. But I wanted to debug my smb bus interface with the simulator. The other board has an FPGA on it and I am using the smb bus to communicate with it and other devices on that board. Since I am doing the smb bus controller on the FPGA, I would like to know that my Cygnal code is working. I ended up connecting an EEPROM to the bus for debug and then I will debug the FPGA with some confidence that the Firmware is correct.

    Brad

Reply
  • Hi,

    I doesn't work so I am not using it. But I wanted to debug my smb bus interface with the simulator. The other board has an FPGA on it and I am using the smb bus to communicate with it and other devices on that board. Since I am doing the smb bus controller on the FPGA, I would like to know that my Cygnal code is working. I ended up connecting an EEPROM to the bus for debug and then I will debug the FPGA with some confidence that the Firmware is correct.

    Brad

Children