does the CODEVISION works with Proteus?

Go To Last Post
13 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I am tring to load a software to the proteus
Does any one used it befor?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I believe that proteus is a software for schematics and pcb design (correct me if I am wrong), and has nothing to do with programing the AVR.

To program your AVR you need a programmer (piece of hardware) and a software to control it. Search for ponyprog and/or stk500 for more information.

Regards,
Alejandro.
http://www.ocam.cl

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

hello aweinstein
Thank you for your quick replay
As far as i understood........
This is asimulation program but i went through the manual and saw that there is some thing concernning to the software.

After all...If i will design somthing ( lets say a running leds )
Then i will have to do the design drawing on the VSM .
But in order to run it i will have to load the OBJ file and the HEX file so it will run

This is how i see it and if i am not mistaken then this is how it should be like.

After all why do they advertise the KEIL and THE GCC or the IAR compilers on thier web site?

THINK ABOUT THAT

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I am shutting in the dark here, becauses I don't know Proteus, but a few questions may be useful :

Which hardware are you using to program your AVR (STK500, etc) ?
Does proteus specifies that it works with an specific programming hardware ?

Post the webpage of the software, so we can read what is says.

Regards,
Alejandro.
http://www.ocam.cl

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

aweinstein wrote:
I believe that proteus is a software for schematics and pcb design (correct me if I am wrong), and has nothing to do with programing the AVR.

Ok, I will hereby correct you, because Proteus has something to do with AVR programming.
Proteus is not only a schematics and pcb design tool, but it also has a simulation part called Proteus VSM, that can co-simulate microcontroller software and hardware from microcontrollers like PIC, AVR, 68HC11, 8051 and Basic Stamp. You can connect the AVR to displays, LEDs, switches etc. and co-simulate the code and the interactive circuit at the same time.

Quote:
Proteus VSM
Co-simulation of microprocessor software within a mixed mode SPICE simulator.

Available for PIC, AVR, 8051, HC11 and BASIC Stamp processors.
See your code interact with simulated hardware in real-time.
Interactive peripheral models for displays, keypads, etc.
Over 6000 analogue and digital device models.
Extensive single step and debugging facilities.
Works with popular compilers and assemblers.

Please read this site called "What is Proteus VSM?":
http://www.labcenter.co.uk/


Proteus VSM simulation of our 'Tiny Chess' design. The deisgn uses Atmel AVR MEGA103 processor together with the graphical LCD, keypad, sounder/buzzer and virtual terminal models. The image above shows the design being debugged with the source, variables and watch window along the bottom of the screen.

Back to your question.
Check out this site called "Suppported Compilers":
http://www.labcenter.co.uk/index...
The only two AVR compilers listed is IAR Embedded Workbench and GNU 'C' for AVR. So I guess CodeVision and ImageCraft is not supported. But I don't know if there's some workaround to make CodeVision or ImageCraft compatible.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

AndersAnd wrote:
aweinstein wrote:
I believe that proteus is a software for schematics and pcb design (correct me if I am wrong), and has nothing to do with programing the AVR.

Ok, I will hereby correct you, because Proteus has something to do with AVR programming.

Thanks for the correction. Now I understand what the OP is asking.

Does Proteus VSM do the AVR simulation at C level? Because if it is at assembler level, I don't see why the compiler used is relevant.

Regards,
Alejandro.
http://www.ocam.cl

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

aweinstein wrote:
Does Proteus VSM do the AVR simulation at C level? Because if it is at assembler level, I don't see why the compiler used is relevant.

It can do both assembler and C/Basic (High-Level Stepping), read tihs page:
http://www.labcenter.co.uk/index...

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

tzif wrote:
I am tring to load a software to the proteus
Does any one used it befor?

Try to ask the same question in this Proteus forum:
http://discussions.labcenter-ele...
Maybe you will find better help there.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I use the Proteus mixed signal/VSM simulation all the time. It is really nice for getting a headstart on coding before prototypes arrive, or doing some debugging on a chip that does not support the JTAG ICE. I t also has debuging tools for SPI and I2C communications. I actually use it instead of the sim in AVRStudio.

It really does emulate an AVR running in conjuntion with the SPICE emulated Logic/Analog circuitry. It has saved me a couple of revs on atleast 2 boards. And that alone paid for it.

The simulator will load HEX, COFF, and UBROF ( IAR ) files. If CodeVision or ImageCraft can create COFFor UBROF files, they SHOULD work. If you load a HEX file, you get a disasembler view only (no source, duh ). I THINK you can try it out in the downloadable demo.

http://www.labcenter.co.uk/downl...

They have told me that they will be supporting the new elf/dwarf output from AVRGCC. But it is not there yet, as of version 6.6SP1

The whole mixed mode PSPICE/VSM simulation thing is why we switched over to Proteus. It's not that cheap. $450 for the kit that includes the AVR procesors. But it is much cheaper than, say, Orcad.

Mike Adams
ADI Development, Inc.
http://www.adidev.com

... When it has to actually work.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

dr.mike wrote:
If CodeVision or ImageCraft can create COFFor UBROF files, they SHOULD work.

I found this at CodeVision's revision history website: http://www.hpinfotech.ro/html/cv...

COFF is mentioned three times all the way back from version V1.0.0.8:

Quote:
V1.0.0.8 Commercial Release
added COFF file generation in order to allow variable watching in AVR Studio 3 Debugger

Quote:
V1.0.2.2 Commercial Release
significantly improved the speed for generating the COFF object files

Quote:
V1.23.9 Commercial Release
added support for generating extended COFF object files, which allow structure and union variables watching in AVR Studio V4.07 or later

From the CodeVision PDF manual page 25:

Quote:
Using the File Output Format(s) list box you can select the following formats for the files generated by the compiler:
• COFF (required by the Atmel AVR Studio debugger), ROM, Intel HEX and EEP (required by the In-System Programmer) ;
• Atmel generic OBJ, ROM, Intel HEX and EEP (required by the In-System Programmer).

If the COFF file format is selected and the Use the Terminal I/O in AVR Studio 3 check box is checked, special debugging information is generated in order to use the AVR Studio 3 Terminal I/O window for communication with the simulated AVR chip’s UART.
AVR Studio 4 does not yet support this option.
If the Use the Terminal I/O in AVR Studio 3 option is enabled, the UART or USART code will not run correctly on the real AVR chip. This option is only for debugging purposes.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Try to read the last part of this topic:
http://www.edaboard.com/viewtopi...
It looks like CodeVision does work with Proteus VSM.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Question:If you create hex file generated by AVRStudio4, can you change the fuse bits if you want to simulate it in Proteus ISIS? I guess, without using an external hardware programmer, you have to accept the default fuse bits settings that was generated by AVRstudio4, and Proteus ISIS will just simulate the hex file generated. By the way, if you write in assembly language in AVRStudio4, can you input the changes in fuse bits settings? If so, does the hex file generated carries with it the changes in fuse bit settings? If so, then Proteus ISIS could well simulate AVR Atmel series! Pls correct me if I am wrong and other comments pls..thanks...
:roll:

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

A .hex file does not (indeed cannot) include fuse settings.

Quite recently the avr-gcc and AVR Studio development teams work together to come up with a way to store fuse settings in a .elf file (which has multiple binary sections) but a .hex file only reflects a single binary section

(BTW I wouldn't waste too much time on Proteus simulation anyway - reports here suggest there can be all kinds of problems and you may simply be wasting your time)