Answer
No, Frederick II was never at peace with the papacy. He was frequently at war with them, and even had them excommunicated at one point. This was due to a number of factors, including Frederick's support of the antipope, his refusal to recognize the authority of the pope, and his attempts to expand his own power at the expense of the papacy.