OpenOCD and LPC1549 issues

Sysprogs forums Forums VisualGDB OpenOCD and LPC1549 issues

This topic contains 20 replies, has 2 voices, and was last updated by  support 17 hours, 47 minutes ago.

Viewing 6 posts - 16 through 21 (of 21 total)
  • Author
    Posts
  • #11038

    JB_Lightcon
    Participant

    To me it looks very similar (only jump address 0x778 in 3rd line differs):

    x/10i SystemInit
    &”x/10i SystemInit\n”
    0x1f0 <SystemInit>:    push    {r7, lr}
    0x1f2 <SystemInit+2>:    add    r7, sp, #0
    0x1f4 <SystemInit+4>:    bl    0x778 <Chip_SystemInit>
    0x1f8 <SystemInit+8>:    nop
    0x1fa <SystemInit+10>:    pop    {r7, pc}
    0x1fc <SystemCoreClockUpdate>:    push    {r7, lr}
    0x1fe <SystemCoreClockUpdate+2>:    add    r7, sp, #0
    0x200 <SystemCoreClockUpdate+4>:    bl    0x4c8 <Chip_Clock_GetSystemClockRate>
    0x204 <SystemCoreClockUpdate+8>:    mov    r2, r0
    0x206 <SystemCoreClockUpdate+10>:    ldr    r3, [pc, #8]    ; (0x210 <SystemCoreClockUpdate+20>)

    And as I told in my first post – I change LED blinking period and it differs if I launch OCD session manually…

    #11053

    support
    Keymaster

    Hi,

    Sorry, not fully sure we got you correctly. In the previous post you mentioned the following instruction:

    0x000001f0  strb r7, [r0, r2]

    But in your last post the instruction at that address looks different:

    0x1f0 <SystemInit>:    push    {r7, lr}

    Could you please double-check what is the actual instruction programmed at address 0x1f0 in the FLASH (if you run “x/10i” before connecting to the target, gdb will read the code from the ELF file and not from the actual FLASH memory)?

    #11072

    JB_Lightcon
    Participant

    First result was with step by step debug from visual studio disassembly window with target attached.

    Second is no target attached “x/10i SystemInit” command on GDB session window.

    My offer to send you one LPC1549 based board is still valid and I feel it would be much more efficient to do this debug on your PC 😉

    #11074

    support
    Keymaster

    Hi,

    No problem, this should help us diagnose it quickly. Please contact us via the support form on our website to arrange the shipping.

    #11084

    JB_Lightcon
    Participant

    Filled the form – will wait for response.

    #11089

    support
    Keymaster

    Hi,

    Thanks, we have replied with the address.

Viewing 6 posts - 16 through 21 (of 21 total)

You must be logged in to reply to this topic.