Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
April 23, 2024, 10:23:23 22:23


Login with username, password and session length


Pages: [1]
Print
Author Topic: ccs debug in proteus  (Read 10638 times)
0 Members and 1 Guest are viewing this topic.
tutkun
Guest
« on: July 16, 2008, 08:44:12 08: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, 10:16:19 10:16 by tutkun » Logged
tutkun
Guest
« Reply #1 on: July 16, 2008, 10:18:56 10: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, 10:47:17 10:47 by tutkun » Logged
etm503
Newbie
*
Offline Offline

Posts: 23

Thank You
-Given: 10
-Receive: 1


« Reply #2 on: July 19, 2008, 11:53:21 11: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, 06:32:35 06:32 »

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

[email protected]
Logged
mandoanaiz
Newbie
*
Offline Offline

Posts: 11

Thank You
-Given: 241
-Receive: 2


« Reply #4 on: November 17, 2008, 05:18:33 17: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, 10:59:49 22: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: 66

Thank You
-Given: 115
-Receive: 1261


« Reply #6 on: December 24, 2008, 04:03:18 16: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, 12:58:07 00: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, 12:46:44 12: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