This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

ADuC Debugging and USPEAR

Hello everyone.

I have been using uV2 for the ADuC family for a couple of years now and love it..But am finally at the point where I need to do in circuit debugging...I can't get by with simulating anymore...

a) Analog says buy Aspire from Accutron(I would rather not)

b) Accutron says they have a "new" debug tool plus IDE called USpear (would be kind of nice using the Single pin EA emulation instead of doing it through the uart which is already used elsewhere anyway)

c) Keil says that I could use uV2 to debug through USpear.
http://www.keil.com/uvision/agdi/416.htm

d) Accutron has a driver set that theoretically supports USPEAR being used by Keil.
www.accutron.com/.../Keil-spear.zip

So my questions as these

1) Does any of this actually work as described? I would LOVE to just buy the USPEAR thing and plug it in, use uV2 and move on. The threads on this topic seem patchy and advice from anyone with experience with this hardware, software combo would be greatly appreciated.

2) Should I just use ISD51 and deal with the uart issue? Havent used it before and am a little wary on the learning curve.

MG

  • 1) Does any of this actually work as described? I would LOVE to just buy the USPEAR thing and plug it in, use uV2 and move on. The threads on this topic seem patchy and advice from anyone with experience with this hardware, software combo would be greatly appreciated.
    I can not speak to the actual case, but there has been a multitude of issues with using uVision with the SILabs JTAG debugging interface. Many have finally decided to use Keil for compile/link and the SILabs stand-alone for debugging and THAT works like a champ. The issue seems to be that when either SILabs or Keil change one itty bitty little thing the other seems to follow just in time the first changes again.

    Erik

  • 1) Does any of this actually work as described? I would LOVE to just buy the USPEAR thing and plug it in, use uV2 and move on.

    I am using a similar setup right now. And yes, it works lie that - buy Aspire from Accutron, ignore Accutrons IDE and compiler (or, if you want to see how good Keils C51 actually is, compare it to Aspire), install the SPEAR driver for Keil and use it with uVision.

    Be aware, however, that SPEAR is pretty much a toy when it comes to emulators. Don't get your hopes up too high.

  • Thanks guys..

    1) Will pop 300$ and buy a accutron spear setup.
    2) Will ignore their IDE and compiler
    3) Will plan to use Keil

    What is so limiting about the Spear? All I need is the ability to (in circuit) set breakpoints (maybe not even on the fly, I dont mind setting the breakpoints at compile time and running it as such), step through code (ideally in C not in assembly) and look at variable, memory and port values...Is it capable of doing this?

    Thanx..

    MG

  • Is it capable of doing this?

    Yes, it's capable of doing this (it wouldn't be worth anything if it wasn't), but don't expect any advanced features like tracing, performance analysis, or anything running in real-time or being non-disruptive.

  • Extremely helpful..Thanks Gentlemen.

    MG

  • Need help with using USPEAR with Keil uVision for ADuC831

    Hi. After finding this thread about Keil and USPEAR, I'm hoping someone might be able to help us out.
    As the thread recommends, we are attempting to use the Accutron USPEAR with the Keil IDE for emulation.

    Here are the basics:
    - Keil uVision 3
    - Accutron USPEAR serial version (we tried the USB version, but could not talk to the dev. board at all)
    - ADuC831 development board (once we get the emulation environment working for the dev. board, we'll
    try the real target).
    - Windows XP O/S
    - Keil-spear.zip (from Accutron site) downloaded and installed

    Here is what we're seeing (using the Keil uVision 3 IDE):
    - We appear to be downloading to the dev. board. If the disassembly can be trusted, it would appear all
    the code is downloaded successfully.
    - When we start running, we take the initial jump (vector at 0x0000) to the "startup" routine
    - But once the PC gets to the startup routine, the processor/emulator enters this weird state: 1. the PC always increments in 1 byte steps, regardless of the instruction 2. the instructions are not executed. 3. because of #2, no jumps are taken, so the PC just marches onward.
    - This phenomenon is repeatable.
    - If we neither set a breakpoint, nor attempt to single step, and just let the processor run, when we
    "stop", we find the PC way past program memory.

    What we know:
    - the USPEAR is okay
    - the development board is okay
    We are able to fire up Accutron's Aspire (v1.04) IDE and can successfully download and run the "demo
    project" consistently on the target board. This tells us that the USPEAR (serial) is okay, and the target
    board is okay.

    We have tried:
    - the USB version of the USPEAR. However, with both the Keil IDE and the Aspire IDE, we were unable to
    even download the code ("target processor not connected").
    - using the Accutron IDE, Aspire, to build using the Keil compiler and linker. The build appeared to
    work okay. But when we attempt to download (via Aspire), it never completes the download and errors out.
    It appears like some "time out" condition has exceeded a limit. But we have not found any settings to
    adjust any time limits or code limits.

    We appear to be getting further using the Keil IDE, and this is the method we'd prefer to use (and was also
    recommended in this thread).

    Any help, suggestions, recommendations would be greatly appreciated.

    If you have any questions or need further clarification, please don't hesitate.

    Peter