nanodesmapvmonitor icon indicating copy to clipboard operation
nanodesmapvmonitor copied to clipboard

Code size is too big for any debug messages

Open jonandel opened this issue 13 years ago • 2 comments

Stuart,

I recently grabbed your master and updated my Nanode installation. (You'll see I also refreshed the Ethercard Library from jcw) - The Branch Master compiles as 30500 ish bytes with the debugmsg's (both) undefined. Defining either debugmsg or debugmsgln causes the code to compile over the Nanode limit.

jonandel avatar Aug 03 '12 09:08 jonandel

I may be able to help with that - see the smaRelay sketch I checked in recently. It implements a more compact version of the SMA packet encoding and decoding logic. This currently works even with all strings in RAM, but they should be moved to flash memory, of course. It's on my todo list.

The code was written in such a way that it can be used for other purposes than relaying as RF12 packets, such as sending it over Ethernet. Just include the "smaComms.h" header and you'll get only the essentials. For further details, see today's and tomorrow's posts on the JeeLabs weblog.

jcw avatar Nov 06 '12 00:11 jcw

Thanks for that jcw, good to know the code base works for you. I'll take a look at what you have done and incorporate it back into base.

stuartpittaway avatar Nov 06 '12 08:11 stuartpittaway