Shop OBEX P1 Docs P2 Docs Learn Events
sx-key editor v 3.2.92h beta problems — Parallax Forums

sx-key editor v 3.2.92h beta problems

Jim BriarsJim Briars Posts: 9
edited 2008-11-30 21:33 in General Discussion
I'm new to the SX. I purchased the SX tool kit plus and entered Gunter Daubachs TUT001 program.· It will assemble but does not always start at address 7ff and will not single step through the progam.· The top of the debug window shows IDLE until the step button is activated then shows SLEEPING and the step switch de-activates.· If I just run the program the led glows somewhat dim and acts as though the program is running correctly.

Comments

  • Jim BriarsJim Briars Posts: 9
    edited 2008-11-26 05:02
    It's me again. I thought I should add that I tried compiling using DEVICE SX28L and SX28AC (the number on the chip that came with the kit) and that I am running Windows XP professional 2002.

    Thank you, Jim
  • BeanBean Posts: 8,129
    edited 2008-11-26 11:43
    Jim,
    What board are you using for the SX ?
    SX-Tech board ? Professional Development Board ?

    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    "The welfare of the people in particular has always been the alibi of tyrants." ~ Camus
    www.iElectronicDesigns.com

    ·
  • Jim BriarsJim Briars Posts: 9
    edited 2008-11-26 12:08
    I'm using the SX tech board
  • BeanBean Posts: 8,129
    edited 2008-11-26 12:27
    You don't have a resonator plugged into the 3 pin socket do you ?
    If the resonator is in, you can program, but you won't be able to debug.

    P.S. Could you post the entire program you're trying ?

    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    "The welfare of the people in particular has always been the alibi of tyrants." ~ Camus
    www.iElectronicDesigns.com

    ·
  • Jim BriarsJim Briars Posts: 9
    edited 2008-11-26 12:34
    I·don't have the resenator plugged in.· The following is the program:

    LIST Q = 37
    DEVICE SX28ac, TURBO, STACKX, OSCHS2
    IRC_CAL IRC_FAST
    FREQ··· 50_000_000
    RESET·· 0
    mov·!rb, #%11111110
    Loop
    ·clrb·rb.0
    ·setb·rb.0
    ·jmp·Loop

    Thank you, Jim
  • dkemppaidkemppai Posts: 315
    edited 2008-11-26 13:11
    Bean (Hitt Consulting) said...
    You don't have a resonator plugged into the 3 pin socket do you ?
    If the resonator is in, you can program, but you won't be able to debug.

    P.S. Could you post the entire program you're trying ?

    Bean.

    Bean,

    Sounds like a USB-Key issue. I remember the exact same things without the hardware fixes.

    Where is the thread with the updates?

    -Dan


    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔

    "A saint-like quantity of patience is a help, if this is unavailable, a salty vocabulary works nearly as well." - A. S. Weaver
  • BeanBean Posts: 8,129
    edited 2008-11-26 13:14
    I took my SX-Key USB and SX-Tech board and I get the same thing.
    IDLE, then SLEEPING when trying to STEP.

    If you change the frequency to 20 MHz or 40 MHz then it seems to work fine. It doesn't work at 50 Mhz for me either. I'm not sure what is going on there ???

    So Jim, if you change "FREQ 50_000_000" to "FREQ 20_000_000" it should work.

    P.S. Futher experimenting shows that 44 MHz works, but 45 MHz thru 50 MHz does not. But 51 MHz works ??? Must have something to do with how the USB SX-Key generates the clock signal. But that is just a guess...

    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    "The welfare of the people in particular has always been the alibi of tyrants." ~ Camus
    www.iElectronicDesigns.com



    Post Edited (Bean (Hitt Consulting)) : 11/26/2008 1:30:07 PM GMT
  • Jim BriarsJim Briars Posts: 9
    edited 2008-11-26 15:31
    I can't thank you enough. I'll give it a try when I get home. I'll also try another software revision when I get some time; my dial up is mighty slow... I'll post my results tonight.

    Another question, is the "Device SX28AC" the correct initialization instruction? AC is the suffix number on my SX28 chip.

    You guys are great. Thanks again,

    Jim

    Post Edited (Jim Briars) : 11/26/2008 3:47:36 PM GMT
  • BeanBean Posts: 8,129
    edited 2008-11-27 03:40
    Jim,
    You can must use SX28 on the device line.

    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    "The welfare of the people in particular has always been the alibi of tyrants." ~ Camus
    www.iElectronicDesigns.com

    ·
  • Jim BriarsJim Briars Posts: 9
    edited 2008-11-30 15:41
    Sorry for the delayed response. I can run single step by configuring with FREQ 20_000_000. I tried 44, 51, 30 and 60 mhz but I can only run at 20. Is this a problem with the editor software version? Is there another version of the software that you would recommend ?· Further experimentation: When I run the program (flashing on and off an LED) and include nested decsz delay loops,·using the Sx-key in place of the resonator, the execution speed does not change when I change the FREQ directive (20 mhz to 50 mhz).· I ·re-assemble and run the program. I get the response " Download Successful.· Sx-Key is·generating a clock signal of (20mhz/50mhz corresponding to·FREQ setting).·· but the led flashes at the same rate with either setting.··My book indicates that the actual clock speed from the·SX-Key generated clock·should change with the·FREQ directive.
    Thank you,
    Jim

    Post Edited (Jim Briars) : 11/30/2008 5:06:39 PM GMT
  • PJMontyPJMonty Posts: 983
    edited 2008-11-30 19:56
    Jim,

    I assume you are using a USB SX-Key. 20MHz is the magic number in the SX-Key hardware, which is why it works. This sounds like a USB SX-Key hardware clock generator problem. Contact Parallax and get them to swap your key for a new USB SX-Key.

    Thanks,
    PeterM
  • CalebjoCalebjo Posts: 15
    edited 2008-11-30 21:33
    Hey, I also had the debugging issue also and figured out the magic 20_000_000 number and that worked just fine until recently my debugger says the program is always running even when the power to my board is turned off. Does this sound like an SX-Key issue? I have tried building the circuit on a breadboard and switching chips also. The SX-Key still allows me to run programs perfectly and everything but when the debug is loading it takes a few seconds longer than it usually had on the last stretch and then the debug doesn't work. cry.gif
Sign In or Register to comment.