Hi David,
Let's have a look at your code, and schematic, if you don't mind. What is wired on those ports (as leftover from the demo board's orig.) ? Anything?