Embedded program paste to IDE has problems.

An earlier version of this worked fine - before I added sprintf and other calls to handle an onboard UI

It sounds like you may be running out of SRAM memory. Have you offloaded all the print strings into the program memory space?