sounds like the definition of ports and pins may have been messed up. Double check that is is all fine there first.