Hi @victory
It doesn't matter where the code is running from. I'm not sure what's going on, it would be necessary to debug the "get hse channel" more.
Regards,
Lukas
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?
I can't see problem here. Could you please check content of HSE GPR register at 0x4039_C028 and then content of GSR and FSR registers in MU_0 after execution of HSE_Send()?
problem update 1:
1. ide can't load ramcode after chip power on. ide or other tool need init ecc sram first , then ramcode can write. i am fixed this issue.
current problem is :
1. after chip power on and jlink initialized sram, ide/ozone can run the code(hse still not working). but use jlink to write the ramcode and set reg15(PC) not working. it goes hardfault in startup_cm7.s somewhere, is there any precondition need to do ? thanks.