[SOLVED] SAMA5d2 Xplained

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

  • [SOLVED] SAMA5d2 Xplained

    Hello all,

    I'm trying to download & debug SW with my SAMA5d2 Xplained development kit.

    I did upgrade of J-Link EDBG firmware according to segger.com/jlink-edbg.html then:

    1] Mount BOOT_DIS jumper to avoid the device to run any valid code found on external non-volatile memories.
    2] Remove EDBG_DIS jumper to enable the EDBG device.
    3] First connect an USB cable to the A5-USB-A connector.
    4] Then connect an USB cable to the EDBG-USB connector.

    however, when I'm trying to debug I'm getting errors below ()whole log attached.
    Any Idea what could be wrong?


    SEGGER J-Link GDB Server V6.12d Command Line Version

    JLinkARM.dll V6.12d (DLL compiled Dec 21 2016 16:56:08)

    -----GDB Server start settings-----
    GDBInit file: none
    GDB Server Listening port: 2331
    SWO raw output listening port: 2332
    Terminal I/O port: 2333
    Accept remote connection: localhost only
    Generate logfile: off
    Verify download: on
    Init regs on start: on
    Silent mode: off
    Single run mode: on
    Target connection timeout: 0 ms
    ------J-Link related settings------
    J-Link Host interface: USB
    J-Link script: none
    J-Link settings file: none
    ------Target related settings------
    Target device: Cortex-A5
    Target interface: SWD
    Target interface speed: 1000kHz
    Target endian: little

    Connecting to J-Link...
    J-Link is connected.
    Firmware: J-Link EDBG compiled May 3 2016 15:18:23
    Hardware: V1.00
    S/N: 710399675
    Checking target voltage...
    Target voltage: 3.30 V
    Listening on TCP/IP port 2331
    Connecting to target...Connected to target
    Waiting for GDB connection...Connected to 127.0.0.1
    Reading all registers
    Read 4 bytes @ address 0x00000000 (Data = 0x00000000)
    Read 4 bytes @ address 0x00000000 (Data = 0x00000000)
    Target interface speed set to 1000 kHz
    ERROR: Cortex-A/R (connect): Could not unlock debug registers
    Resetting target
    Halting target CPU...
    WARNING: CPU could not be halted
    ERROR: Can not read register 9 (R15 (PC)) while CPU is running
    ...Target halted (PC = 0x00000000)
    ERROR: Can not read register 8 (CPSR) while CPU is running
    ERROR: Can not read register 34 (SPSR_UND) while CPU is running
    ERROR: Can not read register 36 (R14_UND) while CPU is running
    ERROR: Can not read register 35 (R13_UND) while CPU is running
    ERROR: Can not read register 31 (SPSR_IRQ) while CPU is running
    Files
    • Debug_log.txt

      (27.51 kB, downloaded 384 times, last: )
  • Hi,


    thanks for the update and good to hear that you are up and running!

    Best regards,
    Niklas
    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.