[ABANDONED] EFM32LG debug problem

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

  • [ABANDONED] EFM32LG debug problem

    Hi,

    I have developed application for Energy Micro microcontroller (EFM32LG940F256).
    I am using j-link base and Emacs witch GCC.
    I connect GDB server with j-link and download code without any problem.
    After some time I can see in Emcas message:

    "Program received signal SIGTRAP, Trace/breakpoint trap
    0x00000000 in _isr_vector"
    On command line I can see output:

    "ERROR: Communication timed out: Requested 4 bytes, received 0 bytes !
    ERROR: Can not read register 15 (R15) while CPU is running
    ...Target halted (PC = 0x00000000)
    Reading all registers
    ERROR: Can not read register 0 (R0) while CPU is running
    ERROR: Can not read register 1 (R1) while CPU is running
    ERROR: Can not read register 2 (R2) while CPU is running
    ERROR: Can not read register 3 (R3) while CPU is running
    ERROR: Can not read register 4 (R4) while CPU is running
    ERROR: Can not read register 5 (R5) while CPU is running
    ERROR: Can not read register 6 (R6) while CPU is running
    ERROR: Can not read register 7 (R7) while CPU is running
    ERROR: Can not read register 8 (R8) while CPU is running
    ERROR: Can not read register 9 (R9) while CPU is running
    ERROR: Can not read register 10 (R10) while CPU is running
    ERROR: Can not read register 11 (R11) while CPU is running
    ERROR: Can not read register 12 (R12) while CPU is running
    ERROR: Can not read register 13 (R13) while CPU is running
    ERROR: Can not read register 14 (R14) while CPU is running
    ERROR: Can not read register 15 (R15) while CPU is running
    ERROR: Can not read register 16 (XPSR) while CPU is running
    ERROR: Can not read register 17 (MSP) while CPU is running
    ERROR: Can not read register 18 (PSP) while CPU is running
    ERROR: Can not read register 24 (PRIMASK) while CPU is running
    ERROR: Can not read register 25 (BASEPRI) while CPU is running
    ERROR: Can not read register 26 (FAULTMASK) while CPU is running
    ERROR: Can not read register 27 (CONTROL) while CPU is running
    Read 4 bytes @ address 0x00000000 (Data = 0x20008000)"

    I am using UART as output to write me messages, and from this I know that microcontroller continue to work without any problem.
    I saw similar issue in this thread: STM32F427II debug issues
    But comparing to this issue, my application is not using or programming pins for debug (PF0, PF1 and PF2)!
    Can something else cause this problem ?(

    Best regards

  • Hi Vus,

    sorry for the delay in response.
    Could you provide us with a complete J-Link log file of the debug session?

    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.