Timer won't work ?!?

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
User avatar
quanganht
Member
Member
Posts: 301
Joined: Fri May 16, 2008 7:13 pm
Location: Hanoi, Vietnam

Re: Timer won't work ?!?

Post by quanganht »

Here u go. It restart over and over again
Log:
http://www.mediafire.com/?zdmqc44nkhm

The source code I tested:
http://unnamed-0s.googlecode.com/files/ ... .0_abc.rar
"Programmers are tools for converting caffeine into code."
neonek
Member
Member
Posts: 38
Joined: Thu Aug 28, 2008 1:53 pm
Location: Białystok - Podlasie, Poland

Re: Timer won't work ?!?

Post by neonek »

Maybe PIC remapping :?:
Please correct my English. If you'll find mistake please tell me about it so I can improve my English.
User avatar
quanganht
Member
Member
Posts: 301
Joined: Fri May 16, 2008 7:13 pm
Location: Hanoi, Vietnam

Re: Timer won't work ?!?

Post by quanganht »

neonek wrote:Maybe PIC remapping :?:
Proof ?
"Programmers are tools for converting caffeine into code."
User avatar
Firestryke31
Member
Member
Posts: 550
Joined: Sat Nov 29, 2008 1:07 pm
Location: Throw a dart at central Texas
Contact:

Re: Timer won't work ?!?

Post by Firestryke31 »

Try remapping the PIC and if, after doing so, the interrupt changes, then that's the proof.

Another possible culprit is stack corruption, but let's rule out the easy to find bugs first...
Owner of Fawkes Software.
Wierd Al wrote: You think your Commodore 64 is really neato,
What kind of chip you got in there, a Dorito?
User avatar
Brendan
Member
Member
Posts: 8561
Joined: Sat Jan 15, 2005 12:00 am
Location: At his keyboard!
Contact:

Re: Timer won't work ?!?

Post by Brendan »

Hi,
quanganht wrote:The source code I tested:
http://unnamed-0s.googlecode.com/files/ ... .0_abc.rar
I took a look, and noticed that there's a lot of code taken from other projects, often without respecting the original author's copyright. For example, you can't take a file (e.g. "idt.c" from Mattise), and remove the GPL copyright notice from the top and replace it with "Developed by TQA, a.k.a _code_masta_".

My suggestion is to delete all your code and start again, writing everything yourself. That way you wouldn't end up with a heap of code you don't understand, and you might learn enough while doing this to find and fix bugs without spending 2 weeks getting nowhere...


Cheers,

Brendan
For all things; perfection is, and will always remain, impossible to achieve in practice. However; by striving for perfection we create things that are as perfect as practically possible. Let the pursuit of perfection be our guide.
User avatar
quanganht
Member
Member
Posts: 301
Joined: Fri May 16, 2008 7:13 pm
Location: Hanoi, Vietnam

Re: Timer won't work ?!?

Post by quanganht »

Brendan wrote:Hi,
quanganht wrote:The source code I tested:
http://unnamed-0s.googlecode.com/files/ ... .0_abc.rar
I took a look, and noticed that there's a lot of code taken from other projects, often without respecting the original author's copyright. For example, you can't take a file (e.g. "idt.c" from Mattise), and remove the GPL copyright notice from the top and replace it with "Developed by TQA, a.k.a _code_masta_".

My suggestion is to delete all your code and start again, writing everything yourself. That way you wouldn't end up with a heap of code you don't understand, and you might learn enough while doing this to find and fix bugs without spending 2 weeks getting nowhere...


Cheers,

Brendan
You know why? I learned from him, but I coded myself for a while. And when my code don't run, I copy all (not really) from Mattise and see if there is any different. But no ... :( :( :(

And, you know, I thinking if I want to step to C++, but it seems like... well, everything is ugly out here :( :x

EDIT: Oh, I forgot to say that I'm interested in Exo-kernel, and researching it. Just want to know if anyone want to join ? :?
"Programmers are tools for converting caffeine into code."
Post Reply