View previous topic :: View next topic |
Author |
Message |
CaFFeiNe Guest
|
RTOS not working? |
Posted: Mon Mar 06, 2006 1:53 pm |
|
|
Example code in CCS
Proteus Isis simulation capture
as you see RTOS example code didn't work or I couldn't
do you have any idea?
thanks |
|
|
treitmey
Joined: 23 Jan 2004 Posts: 1094 Location: Appleton,WI USA
|
|
Posted: Mon Mar 06, 2006 2:04 pm |
|
|
I had that example working with a 452 @40MHz outputing to a debug window.
Check your hardware. The RTS/CTS is just hanging there. Is that correct?? |
|
|
ckielstra
Joined: 18 Mar 2004 Posts: 3680 Location: The Netherlands
|
|
Posted: Mon Mar 06, 2006 5:44 pm |
|
|
I don't see settings for the fuse settings. Add at the minimum: Code: | #fuses HS, NOLVP, NOWDT |
|
|
|
kel
Joined: 17 Oct 2005 Posts: 68 Location: Brisbane
|
virtual tool looks kind of cool |
Posted: Tue Mar 07, 2006 7:06 am |
|
|
Is your simulator(virtual tool) free.if it's could you please post the link for downloading.I kind of like.. |
|
|
KenMacfarlane
Joined: 20 Sep 2005 Posts: 23 Location: Glasgow, Scotland, UK
|
Proteus doesn't support source level debug for CCS C |
Posted: Tue Mar 07, 2006 11:38 am |
|
|
From the Proteus website, on supported compilers...
the limitations of the COD symbolic debug data format mean that the VSM debugging support for this product is limited to stepping through the machine code and watching specific memory locations. Source level stepping and variable display are not supported.
Pity...the environment looks really cool!
Perhaps that's why you can't run the RTOS -how do you run single tasking code? |
|
|
Guest
|
|
Posted: Tue Mar 07, 2006 2:07 pm |
|
|
ckielstra wrote: | I don't see settings for the fuse settings. Add at the minimum: Code: | #fuses HS, NOLVP, NOWDT |
|
I did this but still it doesn't work
anybody work this example?
(sorry for my english) |
|
|
CaFFeiNe Guest
|
|
Posted: Tue Mar 07, 2006 2:08 pm |
|
|
Anonymous wrote: | ckielstra wrote: | I don't see settings for the fuse settings. Add at the minimum: Code: | #fuses HS, NOLVP, NOWDT |
|
I did this but still it doesn't work
anybody work this example?
(sorry for my english) |
|
|
|
rberek
Joined: 10 Jan 2005 Posts: 207 Location: Ottawa, Canada
|
|
Posted: Tue Mar 07, 2006 2:19 pm |
|
|
The Proteus environment still works really well for CCS compiled code. I use it all the time. Writing the code in MPLAB C18 will give you more debugging capability, but I've designed some small boards with it and done all the simulation with CCS, and caught alot of bugs. The boards pretty much work right the first time.
And for kel's benefit, it is not free. _________________ The difference between genius and stupidity is that genius has its limits... |
|
|
ckielstra
Joined: 18 Mar 2004 Posts: 3680 Location: The Netherlands
|
|
Posted: Tue Mar 07, 2006 3:12 pm |
|
|
Anonymous wrote: | ckielstra wrote: | I don't see settings for the fuse settings. Add at the minimum: Code: | #fuses HS, NOLVP, NOWDT |
|
I did this but still it doesn't work
anybody work this example? | Without these fuses your clock wasn't running, which makes me wonder ... Is this the first program you are running on this board?
Have you tried a simple application, for example just blinking a led?
The PIC18F452 has no internal oscillator, but in your schematic I don't see anything connected to pin 13 and/or 14.... ??? |
|
|
CaFFeiNe Guest
|
|
Posted: Wed Mar 08, 2006 11:43 am |
|
|
is there anybody have a working example for RTOS in CCS ?
if you have, could you upload to rapid please?
thanks |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Wed Mar 08, 2006 1:10 pm |
|
|
Quote: | Is there anybody have a working example for RTOS in CCS ? |
One reason for limited responses is that CCS only gives the RTOS
to people who buy PCW or PCWH. They don't give it with the
command line compilers such as PCM or PCH. You get the example
files with those compilers, but the #use RTOS() statement gives a
compiler error if you try to use it.
So you're limited to a smaller number of people who can reply to
your questions. |
|
|
Guest
|
|
Posted: Mon Jun 19, 2006 3:16 pm |
|
|
I have the same problem with RTOS and proteus....
If someone have the solution for it, please let me know |
|
|
|