View previous topic :: View next topic |
Author |
Message |
darrepac
Joined: 19 Jan 2005 Posts: 22
|
MPLAB Simulator usage with CCS |
Posted: Tue Feb 01, 2005 2:51 pm |
|
|
Hello,
Thanks to the forum I have succesfully integrated CCS uinto MPLA... Now I can compile. Now I want to use the MPLAB Simulator to test my program... I only see the C code of my program and each time I put a breakpoint and run I have an error sayon that my breakpoint could not been resolved...
1) How to handle Simulator with CCS?
2) Is it possible to have access during run, and step-by-step to the LST file in order to have a better view of where are exactly the PC
Thanks
Pascal |
|
|
darrepac
Joined: 19 Jan 2005 Posts: 22
|
|
Posted: Wed Feb 02, 2005 3:23 pm |
|
|
Nobody is using MPLAB Simulator with CCS?
If you have other simulator (free if possible) to recommend...I am open. |
|
|
Mark
Joined: 07 Sep 2003 Posts: 2838 Location: Atlanta, GA
|
|
Posted: Wed Feb 02, 2005 3:43 pm |
|
|
Sure. It just works. |
|
|
darrepac
Joined: 19 Jan 2005 Posts: 22
|
|
Posted: Wed Feb 02, 2005 4:06 pm |
|
|
Fine!
How are you using it? you are simulating with only the C code? not the corresponding assembler code?
Is there a trick to be able to put a breakpoint?
Thanks! |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Wed Feb 02, 2005 6:23 pm |
|
|
For a question like this, you should give the version of MPLAB
that you're using (and the compiler version, too). |
|
|
Mark
Joined: 07 Sep 2003 Posts: 2838 Location: Atlanta, GA
|
|
Posted: Wed Feb 02, 2005 9:07 pm |
|
|
Post a small test program too. Keep it simple and specify what line you tried putting a break point. |
|
|
darrepac
Joined: 19 Jan 2005 Posts: 22
|
|
Posted: Thu Feb 03, 2005 8:14 am |
|
|
I am using CCS 3.181 and MPLAB 7.0... for a small program test I will try to do it... |
|
|
darrepac
Joined: 19 Jan 2005 Posts: 22
|
|
Posted: Thu Feb 03, 2005 8:25 am |
|
|
Ok by doing the small test program and seeing that it works I have found from where the mistake come.. In fact it doesn't work if I put for example a breakpoint on the if statement but it works well on other instruction (for exemple the instruction before or after the if)....is it normal? |
|
|
darrepac
Joined: 19 Jan 2005 Posts: 22
|
|
Posted: Thu Feb 03, 2005 9:18 am |
|
|
OK, I finally found the disassembly listing view which is far easier for me... |
|
|
|