problems debugging sxb
BullCreek
Posts: 3
When I choose Run->Debug on the following program, I get a dialog saying:
Error! Debug requires RESET jump at the end of memory
I can debug the examples I've tried, but I don't see any differences from them and my program.
Using latest greatest of all software I think...
DEVICE SX28, OSC4MHZ, TURBO, STACKX, OPTIONX
FREQ 4_000_000
'
' IO Pins
'
LEDs VAR RB
TRIS_LEDs VAR TRIS_B
'
' Constants
'
'
' Variables
'
Counter VAR Byte
Offset VAR Byte
Digits:
' .gfedcba
DATA %00111111 ' 0
DATA %00000110 ' 1
DATA %01011011 ' 2
DATA %01001111 ' 3
DATA %01100110 ' 4
DATA %01101101 ' 5
DATA %01111101 ' 6
DATA %00000111 ' 7
DATA %01111111 ' 8
DATA %01100111 ' 9
DATA %11110111 ' A
DATA %11111111 ' B
DATA %10111001 ' C
DATA %10111111 ' D
DATA %11111001 ' E
DATA %11110001 ' F
'
' Subroutine Declarations
'
'
' Program Code
'
Start:
TRIS_LEDs = %00000000
Counter = 0
Main:
Offset = Counter // 16
READ Digits + Offset, LEDs
INC Counter
PAUSE 1000
GOTO Main
'
' Subroutine Code
'
Error! Debug requires RESET jump at the end of memory
I can debug the examples I've tried, but I don't see any differences from them and my program.
Using latest greatest of all software I think...
DEVICE SX28, OSC4MHZ, TURBO, STACKX, OPTIONX
FREQ 4_000_000
'
' IO Pins
'
LEDs VAR RB
TRIS_LEDs VAR TRIS_B
'
' Constants
'
'
' Variables
'
Counter VAR Byte
Offset VAR Byte
Digits:
' .gfedcba
DATA %00111111 ' 0
DATA %00000110 ' 1
DATA %01011011 ' 2
DATA %01001111 ' 3
DATA %01100110 ' 4
DATA %01101101 ' 5
DATA %01111101 ' 6
DATA %00000111 ' 7
DATA %01111111 ' 8
DATA %01100111 ' 9
DATA %11110111 ' A
DATA %11111111 ' B
DATA %10111001 ' C
DATA %10111111 ' D
DATA %11111001 ' E
DATA %11110001 ' F
'
' Subroutine Declarations
'
'
' Program Code
'
Start:
TRIS_LEDs = %00000000
Counter = 0
Main:
Offset = Counter // 16
READ Digits + Offset, LEDs
INC Counter
PAUSE 1000
GOTO Main
'
' Subroutine Code
'
Comments
Ray
Thanks, PeterM
It's not really an SX/B requirement. If you make an assembly program without "RESET label" you will get the same error.
In this case SX/B "PROGRAM" is equivilent to assembly "RESET".
But your point is valid, it might be nice for the compiler to "inform" the user.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"SX-Video·Module" Now available from Parallax for only $28.95
http://www.parallax.com/detail.asp?product_id=30012
"SX-Video OSD module" Now available from Parallax for only·$49.95
http://www.parallax.com/detail.asp?product_id=30015
Product web site: www.sxvm.com
"Ability may get you to the top, but it takes character to keep you there."
·