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

How to see C code when using ULINK2 with Atmel AT91RM9200

I'm using a Keil Ulink2 ICE debugger with an Atmel AT91RM9200 (ARM 9) powered board.
My problem is that it doesn't look like I'm benefiting from all the features of the debugger.
For example, in the Disassembly window, I don't see the C code mixed with the assembly instructions, like in the following picture:

http://www.keil.com/uvision/db_view_disasm.asp

Also, the Debug Settings from the Debug menu is not active.

When I use the simulator from uVision, I can use both of these features. But the simulator doesn't help me too much, as I need the hardware.

Are there some hidden settings in order to fully use the ICE debugger?
Thanks

Parents
  • UPDATE

    I link the code at address 0x10000000 but when I start the ICE debugger it shows me the code at address 0x0. If I go to address 0x10000000 I can see the C code (with comments), but the assembly code from that address is junk. My assembly code is at address 0x0.

    Why?

    I don't see this problem with the simulator.

    My scatter file looks like this:

    BOOT_MEM 0x10000000 0x10000

    {

    BOOT_RO +0

    {

    cstartup_keil_new.o (reset, +First)

    * (+RO)

    }

    BOOT_RW +0

    {

    * (+RW)

    }

    BOOT_ZI +0

    {

    * (+ZI)

    }

    ARM_LIB_HEAP 0x10005000 EMPTY 0xB000-0x400{}

    ARM_LIB_STACK 0x10010000 EMPTY -0x400{}

    }

Reply
  • UPDATE

    I link the code at address 0x10000000 but when I start the ICE debugger it shows me the code at address 0x0. If I go to address 0x10000000 I can see the C code (with comments), but the assembly code from that address is junk. My assembly code is at address 0x0.

    Why?

    I don't see this problem with the simulator.

    My scatter file looks like this:

    BOOT_MEM 0x10000000 0x10000

    {

    BOOT_RO +0

    {

    cstartup_keil_new.o (reset, +First)

    * (+RO)

    }

    BOOT_RW +0

    {

    * (+RW)

    }

    BOOT_ZI +0

    {

    * (+ZI)

    }

    ARM_LIB_HEAP 0x10005000 EMPTY 0xB000-0x400{}

    ARM_LIB_STACK 0x10010000 EMPTY -0x400{}

    }

Children