I am getting a 'hard fault at 47b6, fairly constantly.
after I enter a keyboard character !!
*
edit: changed the pointer to the correct value and it has not failed yet tho I did keep the 2nd MyByte2
*
*
Code: Select all
' **DO
MyByte = RXD(0)
UNTIL MyByte >= 0
MyByte2 = RXD(0)
IF time_idx > 511 then goto Oops
print "you entered >> ";MyByte
'wait(1000)
'stop
Task_r()
b) stop was for locating hard fault -- at times it would fault BEFORE my stop !!
c)I added the MyByte2 incase the keyboard <enter> key was an extra character
. to try and troubleshoot the Break caret showing up on the next line
. ran blinky with a stop at the end to verify it is in the 'usually here' position
.???
???? any comments about the function that is causing the 'hard fault @ 47b6"?????? '
'
edit:: I am using Timer2 for a 50ms timing loop for my software RTC
adding a second "MyByte2 = RXD(0)" seems to have cleared the caret back to its "usually here" position