J-Link on AT91SAM9263-ek

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • J-Link on AT91SAM9263-ek

    Hi.

    I have quite a number of frustrating experiences with the SAM-ICE here with the AT91SAM9263-ek.

    1) 4.06b does not recognize the board when I want to use J-Mem. The error message is "SAM-ICE can only be used with ATMEL devices". Ha! I have one. Older versions have the same problem.

    2) 4.07b recognizes the board in J-Mem, but it shows all blank (--------). It correctly reads past 0xE0000000, but that's not good enough. I don't know how I can read the memory below that address?

    3) j-link itself works. I can connect and dump the registers. If I call 'mem 0x0, 0x32', it says "Could not read memory". Again, it can read it beyond 0xe0000000.

    Is there any way to get that thing to work, or did I simply buy a blue piece of plastic? :cursing:

    Thanks a lot,
    Kasi


    -----

    SEGGER J-Link Commander V4.07b ('?' for help)
    Compiled Jun 10 2009 19:56:38
    DLL version V4.07b, compiled Jun 10 2009 19:56:22
    Firmware: J-Link ARM V8 compiled May 27 2009 17:31:22
    Hardware: V8.00
    S/N : 28000905
    OEM : SAM-ICE
    Feature(s) : RDI
    VTarget = 3.267V
    Info: TotalIRLen = 4, IRPrint = 0x01
    Info: CP15.0.0: 0x41069265: ARM, Architecure 5TEJ
    Info: CP15.0.1: 0x1D152152: ICache: 16kB (4*128*32), DCache: 16kB (4*128*32)
    Info: Cache type: Separate, Write-back, Format C (WT supported)
    Found 1 JTAG device, Total IRLen = 4:
    #0 Id: 0x0792603F, IRLen: 4, IRPrint: 0x0 ARM926EJ-S Core
    Found ARM with core Id 0x0792603F (ARM9)
    ETM V1.3: 4 pairs addr.comp, 2 data comp, 8 MM decs, 2 counters, sequencer
    JTAG speed: 5 kHz
    J-Link>halt
    PC: (R15) = FFFF0028, CPSR = 600000D7 (ABORT mode, ARM FIQ dis. IRQ dis.)
    R0 = 00000000, R1 = 600000D7, R2 = 00000000, R3 = FE07F458
    R4 = E3FE9960, R5 = 00000000, R6 = E3FE9960, R7 = 00000000
    USR: R8 =00000000, R9 =00000000, R10=00000000, R11 =E3FFDFC8, R12 =FC4046AC
    R13=E3C95420, R14=FE063E7C
    FIQ: R8 =A531607C, R9 =AED6B312, R10=04C008C0, R11 =6600A54C, R12 =3E2B41F9
    R13=FE07D458, R14=CE2F1BFC, SPSR=00000010
    SVC: R13=E3FFDFBC, R14=FE0565F4, SPSR=6000001F
    ABT: R13=FE07D438, R14=FFFF010C, SPSR=600000DF
    IRQ: R13=FE07D448, R14=FC4046BC, SPSR=60000013
    UND: R13=FE07D428, R14=00000008, SPSR=00000010
    J-Link>mem 0x0,0x2
    Could not read memory.
    J-Link>
  • Hello Kasi,

    >>1) 4.06b does not recognize the board when I want to use J-Mem. The error message is "SAM-ICE can only be used with ATMEL devices". Ha! I have one. Older versions have the same problem.
    This problem was caused by the MMU (if it is enabled) of the AT91SAM9263 which made it impossible for J-Link to identify that the target is a AT91SAM9263 which can definitely used with SAM-ICE.
    This problem is fixed since V4.07b

    >>2) 4.07b recognizes the board in J-Mem, but it shows all blank (--------). It correctly reads past 0xE0000000, but that's not good enough. I don't know how I can read the memory below that address?
    >>3) j-link itself works. I can connect and dump the registers. If I call 'mem 0x0, 0x32', it says "Could not read memory". Again, it can read it beyond 0xe0000000.
    I have tested this with the current beta version (V4.07g) and do not see any problems.
    I have also tested this with V4.06b and do not see any problems.
    Could you please ensure that memory is available at addr 0x0 (maybe the MMU mapped the memory at addr 0x0 to another location)
    When I performed my tests the MMU was disabled so memory was available at addr 0x0

    Best regards
    Alex
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.
  • Hello Alex,

    I didn't know that the JTAG memory commands pass through the MMU. Indeed when I consider the MMU mappings, it seems to work. Is there a to directly access memory, e.g., the hardware mapped registers of the PIO controllers (e.g., 0xFFFFFXXX), without going through the MMU? I can't disable the MMU, since I'm running an OS that requires it when I want to read out the memory.

    Thanks,
    Kasi
  • Hello Kasi,

    >>Is there a to directly access memory, e.g., the hardware mapped registers of the PIO controllers (e.g., 0xFFFFFXXX), without going through the MMU?
    No, all memory accesses go through the MMU. Do you see a problem in leaving the registers you want to read, at their original address?


    Best regards
    Alex
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.
  • Accessing hardware mapped registers through JLink/SAM-ICE

    Hello,

    I just stumbled across the same problem.

    after booting Linux I want to read hardware mapped registers like the PIO registers via JLink/SAM-ICE on my AT9261 based board.
    However I can only access the parts which are available through the mmu.

    But there must be a way to access the physical memory addresses.....I mean....this is supposed to be the big advantage of using an emulator like the SAM-ICE.

    Any ideas?

    Markus Franke