I need to have a special ResetTarget() in my JLink script file.
From the manual, it says, If this function is present, it will be called instead of the DLL internal reset. It also notes that, limitation is, DLL expects target CPU to be halted / in debug mode when leaving the function.
Does this mean DLL still will check if the target CPU is halted after my custom ResetTarget is executed? How does it check it exactly?
I have my ResetTarget doing what I need, and returning always 0 (return 0;), which hopefully returns success to DLL. However, I still get these traces after executing my implemented resets:
Is this trace from the DLL or inside JLinkExe somewhere? How does it check if the core is halted? Anyway to prevent it doing this, as I have my own reset strategy / method?
From the manual, it says, If this function is present, it will be called instead of the DLL internal reset. It also notes that, limitation is, DLL expects target CPU to be halted / in debug mode when leaving the function.
Does this mean DLL still will check if the target CPU is halted after my custom ResetTarget is executed? How does it check it exactly?
I have my ResetTarget doing what I need, and returning always 0 (return 0;), which hopefully returns success to DLL. However, I still get these traces after executing my implemented resets:
**************************
WARNING: CPU could not be halted
**************************
****** Error: Failed to halt CPU.
Is this trace from the DLL or inside JLinkExe somewhere? How does it check if the core is halted? Anyway to prevent it doing this, as I have my own reset strategy / method?