Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 11, 2016, 10:54:53 10:54


Login with username, password and session length


Pages: [1]
Print
Author Topic: ccs debug in proteus  (Read 7114 times)
0 Members and 1 Guest are viewing this topic.
tutkun
Guest
« on: July 16, 2008, 09:44:12 09:44 »

hi,
I am new at this pic programming issue, I am using ccs c to programme the 16f877 pic and I am simmulating it via proteus.But i couldn't manage to debug my code in proteus i mean i couldn't add the source file into the proteus, in the web it says insert the coff (with 2 fs) into the programme but my ccs programme generates cof (with one f)..
perhaps i am doing someting wrong, could anyone please write the steps to be followed to add the source file into proteus..
thank you.. 
« Last Edit: July 16, 2008, 11:16:19 11:16 by tutkun » Logged
tutkun
Guest
« Reply #1 on: July 16, 2008, 11:18:56 11:18 »

hi,
I am new at this pic programming issue, I am using ccs c to programme the 16f877 pic and I am simmulating it via proteus.But i couldn't manage to debug my code in proteus i mean i couldn't add the source file into the proteus, in the web it says insert the coff (with 2 fs) into the programme but my ccs programme generates cof (with one f)..
perhaps i am doing someting wrong, could anyone please write the steps to be followed to add the source file into proteus..
thank you.. 
« Last Edit: July 16, 2008, 11:47:17 11:47 by tutkun » Logged
etm503
Newbie
*
Offline Offline

Posts: 23

Thank You
-Given: 10
-Receive: 1


« Reply #2 on: July 19, 2008, 12:53:21 12:53 »

you can use the .hex file to run your code as well as the .cof file.

The .cof file gives you more debug options in proteus.

If this does not help maybe you can be more explicit as to where exactly you are failing.
Logged
trunghaudt2
Guest
« Reply #3 on: July 23, 2008, 07:32:35 07:32 »

ok...........

trunghaudt2@gmail.com
Logged
mandoanaiz
Newbie
*
Offline Offline

Posts: 11

Thank You
-Given: 232
-Receive: 2


« Reply #4 on: November 17, 2008, 06:18:33 18:18 »

Proteus /vsm help /debug
If u use c compiler, in compilation properties choose: hex and cof files; attach cof file to simul in proteus.
Logged
fvp
Guest
« Reply #5 on: December 20, 2008, 11:59:49 23:59 »

Just load the .cof (with one f) generated by CCS C in your MCU in proteus,

click twice on the microcontroller on proteus and on the "Program File:" field load the .cof or .hex file.
Logged
duende_azul
Junior Member
**
Offline Offline

Posts: 51

Thank You
-Given: 57
-Receive: 916


« Reply #6 on: December 24, 2008, 05:03:18 17:03 »

You need to activate the "Pic source code" in the "debug" tab after loading the file .cof.
Logged
icecubetray
Newbie
*
Offline Offline

Posts: 14

Thank You
-Given: 3
-Receive: 0


« Reply #7 on: January 06, 2009, 01:58:07 01:58 »

you can also right click on the pic in the schematic and select Edit Properties

then select the hex file where is says "Program File:"
Logged
icecubetray
Newbie
*
Offline Offline

Posts: 14

Thank You
-Given: 3
-Receive: 0


« Reply #8 on: January 09, 2009, 01:46:44 13:46 »

i just realized that you can setup MPLAB to have proteus as your debugger instead of ICD

I was compiling and then flipping to Proteus schematic capture to run a simulation.....and debugging using printf to the terminal

This means I can step through my CCS code....

Sweet!

Under MPLAB
Debugger -> Select Tool -> Proteus VSM

then when the VSM pops up select your Proteus schematic
click on Open button -> and select project

Learn something new everyday......

now if I could only pipe the virtual terminal to a physical comport so that I could make my life easier developing my PC side code.......
Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC