Might be a stupid question but are you compiling for the correct chip?
Are you using MCS?