Shop OBEX P1 Docs P2 Docs Learn Events
problems debugging sxb — Parallax Forums

problems debugging sxb

BullCreekBullCreek Posts: 3
edited 2006-02-20 17:11 in General Discussion
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
'

Comments

  • RsadeikaRsadeika Posts: 3,837
    edited 2006-02-19 17:44
    It looks like you are missing Program Start. I always start with the template, and don't try to deviate from it to much.

    Ray
  • BullCreekBullCreek Posts: 3
    edited 2006-02-19 18:59
    Thanks - I got a little overzealous deleting stuff from the template and missed that!
  • PJMontyPJMonty Posts: 983
    edited 2006-02-20 16:42
    If having a program start is a mandatory requirement for SX/B programs, then this sounds like an error that SX/B should check for and warn the user about. Perhaps the SX/B compiler person needs to see if there's a way to handle this situation.
      Thanks, PeterM
  • BeanBean Posts: 8,129
    edited 2006-02-20 17:11
    Peter,
    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."
    ·
Sign In or Register to comment.