Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 251352

Forum Post: RE: can not implement custom pre_init.c using _system_pre_init()

$
0
0

[quote user="Anthony Moeder"]The watchdog timer is expiring and resetting the micro before my main loop is ever reached.[/quote]Are you sure the reason that the main loop not being reached is due to the watchdog timer expiring?

e.g. I have seen some other (obscure) reasons why main fails to be reached such as a linker command file error which causes the start-up code to trigger a watchdog password violation leading to a reset.

Given that main still isn't being reached when "var Boot = xdc.useModule("ti.catalog.msp430.init.Boot"); was added in the .cfg script suggest try and single step the run time start-up to try and determine where the failure occurs. To do this under the CCS project properties Debug -> Auto Run and Launch Options -> Auto Run Options untick the Run to Symbol "On a Program load or restart" and "On a reset" options. When start a debug session the processor will halt at the reset vector, and you can single step the start-up code.


Viewing all articles
Browse latest Browse all 251352

Trending Articles



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