Quantcast
Channel: Tools
Viewing all articles
Browse latest Browse all 91752

Forum Post: RE: Can CCS5.5 be configured to assert a system reset before loading a program

$
0
0

[quote user="desouza"]It is possible to issue a Reset before connecting/loading code via the menu Run --> Debug Configurations. Check the screenshot below..[/quote]I had tried that before I came up with the "work-around" of adding the StartUp() to the AM3358_StarterKit.gel script. However, I have since realised that the reset can be applied independanty to routers / subpaths / CPUs within the AM3359 device.

Restored the original unmodified AM3358_StarterKit.gel script and tried different options.

1) Set "Reset the target on a connect" only on the CortexA8:

If the Cortex A8 had last run a SYS/BIOS program, then resetting the Cortex A8 upon a re-connection results in errors running the GEL script and/or the downloaded program failed.

2) Set the "Reset the target on a connect" only on the CS_DAP_DebugSS:

This results in the following additional error, and if the Cortex A8 had last run a SYS/BIOS program then upon a re-connection still resulted in errors running the GEL script and/or the downloaded program failed.

[quote]CS_DAP_DebugSS: GEL: Error while executing GEL_Reset(): A reset is not allowed at this time  at GEL_Reset() .[/quote]

3) Set the "Reset the target on a connect" only on the IcePick_D_0:

If the Cortex A8 had last run a SYS/BIOS program, then resetting the IcePick_D_0 upon a re-connection allowed the GEL script to run without error and the program was downloaded and ran without error. Resetting the IcePick_D_0 upon connection also causes three "C" characters to be output on the AM335x starter kit serial terminal, which is a sign that the ROM bootloader attempted to run which I think means a System Reset had occured [the ROM bootloader runs if you press the reset button on the board]

[quote user="desouza"]One thing I am unsure is what type of reset is issued. I imagine it is whatever defined to be run by the GEL_Reset() API (which varies by device).[/quote]My experiment appears to show that the type of reset varies according to if the reset is applied to a router or CPU within a device. Is this documented somewhere?


Viewing all articles
Browse latest Browse all 91752

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>