Retirement tax questions

I used the withdrawal (under 7k) from a Roth IRA to buy my first home, in the 1099-R the code in box 7 shows as J, I believe I am entitled to a hardship deduction and the withdrawal not subject to an early withdrawal penalty or tax on any gains, turbotax does not seem compute such a break.  Would appreciate any insights. Thanks