1031 Exchanges can only be done with property held for investment, income or for use in trade or business. So your primary residence would not qualify. Also, Seller Carry Back Notes can be trickky with 1031 Exchanges. The attached article helps better explain your options: http://www.exeter1031.com/seller_carry_back_financ...
If you have any additional questions Exeter would be more than Happy to assist you.