This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

"System Reset on connect" option

Other Parts Discussed in Thread: HALCOGEN

Hi,

I'm working with the TI ARM based MCU - RM4x evices. My application can't reach the main procedure until the option "System Reset on connect"(Debug/Flash settings option) is ticked. Can someone say, what "System Reset on connect" perform on the JTAG interface? Which registers are affected and how?

Thank you!

Tomas

  • Hi Tomas,

    Do you use the sys_startup.c generated by HALCoGen?

    Are you able to step into _c_int00() function to figure out where the code execution get stuck?

  • Hi QJ,

    I can't reach any code, until the "System Reset on connect" is ticking. The "base" project is generated by HALCoGen. 

  • "System Reset on connect": the system reset is only issued during the JTAG is connecting the target. The ICEPICK logic implemented on TMS570 and RM4x MCU allows a system reset to be generated via the debug logic.

    After loading the program, it runs to main() if the following option is set:

    or

    click "CPU reset", then run->Go Main

  • HI QJ,

    The ICEPICK logic implemented on TMS570 and RM4x MCU allows a system reset to be generated

    yes and i need the procedure how should I implement this IcePICK routines for my initialization before loading and running my application. because it seems, that code already programmed in the device blocks the running of my application-like the start vector is somewhere else that in 0x0 address. So, can you share the system reset method iself? I.e. how should be system reset performed using IcePICK registers over JTAG interface?

  • Hi QJ,

    I have found the fix for my problem - as I expect, the CPU core was not halt immediately after power-up. So I have had to implement another way for halting the core - as it is described in spna230.pdf document. This thread can be now closed. 

    Thx, 

    Tomas