Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
Hi Iain,
I'm intersting with you pronouncement. I have ImageCraft compiler that can produce COFF file. I wanna simulate AVR with proteus. Could you please touch me how to load my COFF file to the proteus??
I have visite
h**p://www.labcenter.co.uk/products/compilers.htm
but the informations on it are minimum except about keil.
Hi Pico,
I have done successfully like as you mention above. But i need the better one, like as on keil I can do fully debugging like as single step, breakpoint, watch variable, change value of variable, and i can monitor every changing on proteus.
Let's say you have a simple program fred.c.
When you compile it you will get fred.cof and fred.hex.
fred.hex contains only binary information and so can be simulated but not debugged (no knowledge of C source, no link up between address and opcode, etc..).
fred.cof is a symbolic debug file and contains debugging information as well as source info. You can therefore specify fred.cof as the program property of the microcontroller (instead of fred.hex) and, not only will it simulate but when paused, you can access source window to step code in C or assembler, set breakpoints and so on.
Note that there are ambiguities with cof - different compilers use the segments for different purposes. While everything should work it is dependant on the compiler following standard protocol when implementing COF.
I believe Imagecraft are working on (or perhaps already have) ELF/DWARF options for debug output. That being the case I would recommend switching to this format when we release Proteus V6.8 (which includes an ELF/DWARF loader). The ELF/DWARF format is not only much 'cleaner' but also a far richer format and we intend to move towards ELF/DWARF and away from COF and COD in the future. This is very much in line with Atmel who I believe have gone ELF/DWARF in AVRStudio 4.
When i used *.cof file as property of microcontroller, the simulation works corectly but when I Pouse it, there is a message like as picture. what wrong??
Nothing is wrong with that picture - the simulation has simply paused at a point asynchronous to an instruction execution.
From the selector at the top of the picture you should be able to select a file corresponding to your source code. Once selected you can set breakpoints (F9), single step your code in C (F11 to step into, F10 to step over) or in assembly (CTRL+D for disassembly mode and then shortcuts as above).
All the options on shortcut keys are also available by right clicking on the source window for a context menu or from the debug menu.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.