Starting SX Debug stepping problem
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
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
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
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
Was it the
MOV W, #FE
I assume, it should read
MOV W, #$FE
right ?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Greetings from Germany,
G
freq 50_000_000
to
freq 4_000_000