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

Simulating the C8051F580

I have uVision 4 (not the latest version) and my company is evaluating a unit test tool. One of the processors that the tool needs to support is the C8051F580 processor from SiLabs. The unit test tool uses uVision as the tool to load the test files into and perform a uVision simulation using our processor setup. To begin the evaluation, I tried to use one of the Keil examples, build it in uVision, then run the simulator on the code. I believe that I've configured uVision correctly for the device but when I try to run the simulator, there are no selections under the "Peripherals" tab. Am I doing something wrong or is there some additional software that needs to be downloaded for uVision to perform the simulation. Note that I did do a search on the Keil sight and found the SiLabs driver (which I installed) but nothing under the knowledge base or the forums that talked about this issue. The example I used was the "CSAMPLE" code that built without issue.

Parents
  • I would have settled for just one (UART 1) which is not in the list. The description doesn't explain why none of the other peripherals are not provided (at least in my environment) nor does it explain why I don't have even one item under the peripherals tab on the IDE.

    Even if none of the peripherals are simulated, is there some way that I can "cobble" something together so that I can get the unit test tool to simulate the code on the 'F580'?

Reply
  • I would have settled for just one (UART 1) which is not in the list. The description doesn't explain why none of the other peripherals are not provided (at least in my environment) nor does it explain why I don't have even one item under the peripherals tab on the IDE.

    Even if none of the peripherals are simulated, is there some way that I can "cobble" something together so that I can get the unit test tool to simulate the code on the 'F580'?

Children
  • Well, the debugger has a quite powerful programming language. So you might be able to write a debugger script that handles writes to the magic addresses representing the registers of that UART.

    But the problem is that if the processor can't simulate the interrupt system, then you can't get a debugger script to generate an interrupt when simulating the reception of a byte of data to the UART.

    If wanting to use the simulator, then it really is a very good idea to look twice at supported processors - are there any supported processor that is close enough to the real one, allowing you to simulate the majority of code?