Forum Replies Created
-
AuthorPosts
-
July 7, 2015 at 1:35 am in reply to: Buggy Library – Too Unstable to use for simplest of tasks. #2290BradMMember
Sorry for the long delay in replying. Using less memory definitely solved the problem. I had to get very creative with the coding, but I got it to work.
Thanks.
Brad.May 21, 2015 at 12:41 am in reply to: Buggy Library – Too Unstable to use for simplest of tasks. #2258BradMMemberI’m looking at the code now, so I’ll see what I can do with it.
When I compile the code above, I get:
Sketch uses 10,690 bytes (33%) of program storage space. Maximum is 32,256 bytes.
Global variables use 251 bytes (12%) of dynamic memory, leaving 1,797 bytes for local variables. Maximum is 2,048 bytes.It was the last line I was looking at , hence not realizing something else was burning all the memory.
May 20, 2015 at 7:52 am in reply to: Buggy Library – Too Unstable to use for simplest of tasks. #2256BradMMemberI may have been harsh with my comment, but after 3 days of fighting with it, reading forum messages for suggestions, re-writing the program, re-re-writing the program, re-re-re-re-writing the program…
I was beyond frustrated when I posted that. The most frustrating thing was the lack of any clue as to what was going on. It’s difficult to debug when things just lock up and you don’t get any debug output of any kind.
If you think I’m just running out of memory, that’s easy enough to work around. Most of the string literals were for debugging purposes anyway, they aren’t required for the final project, so they can go. I was under the assumption I was using too much CPU as every message I read pointed in that direction. There was no mention of running out of memory. When I compile the program it says I’m using 251 bytes of memory (12%), no indication of running out.
I’ll play with it, if it’s a memory problem, that will be easy enough to prove. I’ll let you know how it goes.
-
AuthorPosts