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

Forum Post: RE: Function (header) and halting problems

$
0
0

From what I can see in your youtube video, I can't see anything that looked bad.
- You can step over SysCtlDelay(SysCtlClockGet()*3/3);
- You can step into SysCtlClockGet() and step though it with proper  C source displayed.
- You can step into SysCtlDelay() and step though it abeit in assembler. If you look at the sysctl.c source, this is a function written in assembler consisting of only 3 instructions:
SysCtlDelay:
  subs r0, #1
  bne.n SysCtlDelay
  bx lr
it just a loop that counts down to zero. The register r0 is passed in and has the initial value of SysCtlClockGet()*3/3. If you stepped long enough, eventually it would return. Easiest just to step out.
- The video did not appear to show a "Trouble Halting" problem. I might have missed it.


Viewing all articles
Browse latest Browse all 230763

Latest Images

Trending Articles



Latest Images

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