Hello,
this is too general question. I do not know, what code you would like to migrate. If it is some general code like clock settings, or some general peripheral like PIT, CAN etc. there should be no problem, because these peripherals are the same.
Please write me back more details.
Regards,
Martin