Shop OBEX P1 Docs P2 Docs Learn Events
Starting SX Debug stepping problem — Parallax Forums

Starting SX Debug stepping problem

MabMab Posts: 12
edited 2008-08-22 20:51 in General Discussion
hi

In the Programming the SX Microcontroller Book program one debug stepping after I press step it goes to sleeping mode.

I am also getting a lot of Chip Connection Failed Errors.


···· 1· 07F9· 0F7F····· device sx28L
···· 2· 07F9· 0F7F····· device· turbo, stackx, oschs2
···· 3· =00000001······ irc_cal irc_4mhz
···· 4· =02FAF080······ freq 50_000_000
···· 5· 07FF· 0A00····· RESET 0
···· 6·················
···· 7· 0000· 0CFE····· mov !rb, #%11111110
······· 0001· 0006
···· 8· =00000002······ loop
···· 9· 0002· 0406····· clrb rb.0
··· 10· 0003· 0506····· setb rb.0
··· 11· 0004· 0A02····· jmp loop
··· 12·················

Cross Reference
6 symbols

Symbol··························· Type·· Value····· Line
__SASM··························· DATA·· 00000001·· 0000
__SX_FREQ························ DATA·· 02FAF080·· 0004
__SX_IRC_CAL····················· DATA·· 00000001·· 0003
__SX_RESET······················· RESB·· 00000A00·· 0005
loop····························· ADDR·· 00000002·· 0008
rb······························· RESV·· 00000006·· 0009

Comments

  • PJMontyPJMonty Posts: 983
    edited 2008-08-15 02:46
    rb,

    Have you looked in this sticky on the front page of the forum to see things you might try?

    http://forums.parallax.com/showthread.php?p=642725

    Also, there is the FAQ, also a sticky, which can be downloaded:

    http://forums.parallax.com/showthread.php?p=535458

    Thanks,
    PeterM
  • Guenther DaubachGuenther Daubach Posts: 1,321
    edited 2008-08-15 09:20
    Mab,

    do you have a resonator or xtal attached to the OSC1 and OSC2 pins while you are trying to debug? A resistor (like 10 kOhm) between OSC1 and OSC2 may also cause such a problem.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Greetings from Germany,

    G
  • MabMab Posts: 12
    edited 2008-08-15 15:12
    no resonator or Xtal I am able to use debug when i write in SXB
  • MabMab Posts: 12
    edited 2008-08-15 15:40
    it is the MOV W,#FE that it gose to sleep on
  • MabMab Posts: 12
    edited 2008-08-15 15:57
    I got it thanks
  • Guenther DaubachGuenther Daubach Posts: 1,321
    edited 2008-08-15 21:22
    Please let us know what the problem finally was - it may help others.

    Was it the

    MOV W, #FE

    I assume, it should read

    MOV W, #$FE

    right ?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Greetings from Germany,

    G
  • MabMab Posts: 12
    edited 2008-08-22 20:51
    i change
    freq 50_000_000
    to
    freq 4_000_000
Sign In or Register to comment.