propeller project
elecnoob
Posts: 123
hey,
i'm making a project but i have a problem with the code and i can't figure out what the problem is ...
but maybe first a littlle information about me.
i'm 20 years old
i'm a student at de nayer instituut in belgium. here i'm finishing my last year, the education that i'm doing is electronics.
now a little information about the project.
i'm making some kind of a multigame console...
but i have a problem with a little sub in the code
the problem:
when you've won the game there are lights that needs to flash and a little speaker that need to say beep.. ( very simple)
and sometimes it works but it's very random sometime the lights start to flash ( but not in the sequence that i like) an you hear no music
sometimes only the music an no lights ....
so it doesn't work like it should ....
please help me
grtz
elecnoob
i'm making a project but i have a problem with the code and i can't figure out what the problem is ...
but maybe first a littlle information about me.
i'm 20 years old
i'm a student at de nayer instituut in belgium. here i'm finishing my last year, the education that i'm doing is electronics.
now a little information about the project.
i'm making some kind of a multigame console...
but i have a problem with a little sub in the code
the problem:
when you've won the game there are lights that needs to flash and a little speaker that need to say beep.. ( very simple)
and sometimes it works but it's very random sometime the lights start to flash ( but not in the sequence that i like) an you hear no music
sometimes only the music an no lights ....
so it doesn't work like it should ....
please help me
grtz
elecnoob
Comments
You really must post all of your code if you wish someone to assist you.
Thanks,
might be array boundary corruption
might be stack-over-flow through too much recursive calling methods
might be be PASM-code that writes to the wrong HUB-RAM-adresses
but what is it and where ?
need the WHOLE code of the COMPLETE project to analyse this
If you want to narrow down this problem yourself:
disable all code but the one that does the blinking and sound
then add again small pieces of code until the problem occurs
best regards
Stefan
Post Edited (StefanL38) : 10/16/2009 6:59:15 PM GMT
If you know the COG you can look at that particular code end try to find out why that COG is halted.
* Does it read HUB memory which is overwritten by another COG?
* Is it a SPIN COG:
maybe the HUB RAM with the SPIN code is overwritten
maybe the stack is to small
@ stefan : I will try do delete some parts from the code and try to get it working.
grtz