update 2:
currently, i can load ramcode to mcu and set PC to run, or use ozone to load ramcode elf to mcu and run, both are ok.(uart can print, interrupt can trigger)
but in either case, hse can't work. i guess that in ramcode mode, the IVT header (0xA5 ) or app header(0xd5) are not checked, it started run from reset handler by user setting PC, is it a problem that SAF /HSE not run?