Strange clkfreq problem...
Philldapill
Posts: 1,283
Ok, so I've been having a problem with timing in my program. I narrowed it down to the "clkfreq" issue in my wait() commands. Apparently, for some god forsaken reason, my clkfreq is set to 1414743380(???)
Here are my clock settings...
· _clkmode = xtal1 + pll16x
· _xinfreq = 5_000_000
ANY idea what gives?
Here are my clock settings...
· _clkmode = xtal1 + pll16x
· _xinfreq = 5_000_000
ANY idea what gives?
Comments
repeat while !(done := SD.nextfile(buffer))
Term.str(buffer)
Term.out(13)
Where the SD object is the fsrwFemto object from the obex. The idea, was to print out a list of all the files on the SD card. It's totally not needed, but I was going to use it for debugging... Little did I know my debugging would cause further debugging.....
Jonathan
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
lonesock
Piranha are people too.
I can't believe I could be so dumb... This is one of those times I wish I could delete my original post out of sheer embaressment.
Regardless - thanks guys!
EDIT: I take it back... The code works when I'm not referencing the pointer to buffer. When I pass the pointer, it spits out a bunch of jibberish instead of the file names. However, when I pass buffer by itself, the filenames are printed, BUT the clkfreq is screwed up again.
Post Edited (Philldapill) : 12/17/2009 8:05:34 AM GMT
"This is one of those times I wish I could delete my original post out of sheer embaressment." - think of it this way.... Now your just one-up on me.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
For me, the past is not over yet.
repeat while !(done := SD.nextfile(@buffer))
Term.str(@buffer)
Term.out(13)
Note that I am using multiple copies of FSRW, that way one is opening the directory listing, and another checks the filesize.
Jonathan
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
lonesock
Piranha are people too.