Visual GDB Defualt Code dose Not Work

Sysprogs forums Forums VisualGDB Visual GDB Defualt Code dose Not Work

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #7868
    Clr_man26
    Participant

    Hi

    i using the LPC1768 .

    When I build Visual GDB sample solution (LEDBlink.Cpp) by default I have two errors. When I program  the chip , the code does not work

    Error 1- i Got a Warning

    “The memory location used for the stack(0x1000fffc)is not writable

    please check the selected device type and the linker script.

    you can disable automatic stack checking via 268500988 project properties”

     

    The Segger Message has :

    SEGGER J-Link GDB Server V5.10u Command Line Vers
    ion

    JLinkARM.dll V5.10u (DLL compiled Mar 17 2016 18:
    56:47)

    —–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: off
    Init regs on start: off
    Silent mode: off
    Single run mode: off
    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: LPC1768
    Target interface: JTAG
    Target interface speed: auto
    Target endian: little

    Connecting to J-Link…
    J-Link is connected.
    Firmware: J-Link ARM V8 compiled Nov 28 2014 13:4
    4:46
    Hardware: V8.00
    Feature(s): RDI,FlashDL,FlashBP,JFlash,GDBFull
    Checking target voltage…
    Target voltage: 3.24 V
    Listening on TCP/IP port 2331
    Connecting to target…
    J-Link found 1 JTAG device, Total IRLen = 4
    JTAG ID: 0x4BA00477 (Cortex-M3)
    Connected to target
    Waiting for GDB connection…Connected to 127.0.0
    .1
    Reading all registers
    Read 2 bytes @ address 0x0000082C (Data = 0xB510)
    Read 2 bytes @ address 0x0000082C (Data = 0xB510)
    Read 2 bytes @ address 0x0000082C (Data = 0xB510)
    Read 4 bytes @ address 0x1FFF0BA6 (Data = 0x6960D
    4FC)
    Read 2 bytes @ address 0x1FFF0BA6 (Data = 0xD4FC)
    WARNING: CPU did not halt after bootloader.
    WARNING: CPU did not halt after bootloader.
    Resetting target
    Downloading 204 bytes @ address 0x00000000
    Downloading 2016 bytes @ address 0x000000CC
    Downloading 4 bytes @ address 0x000008AC
    Downloading 4 bytes @ address 0x000008B0
    Writing register (PC = 0x00000614)
    Read 2 bytes @ address 0x0000082C (Data = 0xB510)
    Read 2 bytes @ address 0x0000082C (Data = 0xB510)
    Read 2 bytes @ address 0x0000082C (Data = 0xB510)
    Read 4 bytes @ address 0x00000614 (Data = 0xB2876
    9A8)
    WARNING: CPU did not halt after bootloader.
    WARNING: CPU did not halt after bootloader.
    Resetting target
    WARNING: Failed to read memory @ address 0x1000FF
    FC
    Setting breakpoint @ address 0x0000082C, Size = 2
    , BPHandle = 0x0001
    Starting target CPU…

    Error 2-When debugging code , I found stuck Code  in a loop :

    void __attribute__((naked, noreturn)) Default_Handler()
    {
    //If you get stuck here, your code is missing a handler for some interrupt.
    //Define a ‘DEBUG_DEFAULT_INTERRUPT_HANDLERS’ macro via VisualGDB Project Properties and rebuild your project.
    //This will pinpoint a specific missing vector.
    for (;;) ;
    }

     

    #7874
    support
    Keymaster

    Hi,

    This looks like a connectivity problem. Please double-check your JTAG cable and your Reset signal. If it does not help, please try it on a different board.

    #7881
    Clr_man26
    Participant

    Hi

    thanks For Response ,

     

    I try In 3 Board . Not Working .

    Keil Arm work with This connectivity.

    #7891
    support
    Keymaster

    OK, perhaps the “CPU did not halt” error is unrelated to the Default_Handler() problem.

    Please try adding ‘DEBUG_DEFAULT_INTERRUPT_HANDLERS’ to the Preprocessor Macros field on the Makefile Settings page of VisualGDB Project Properties and build your project again. This should show which actual interrupt ends up being unhandled.

    #7898
    Clr_man26
    Participant

    How to do it?

    please explain more.

    #7899
    Clr_man26
    Participant

    I created a new project more than 10 times. But every time it works the same as before

     

     

    http://uploads.im/viSUX.jpg

    http://uploads.im/XHtbR.jpg

     

    i got print screen when  stuck Code  in a loop

     

     

     

     

    VisualGDB trial expires in 23 days!
    C:\SysGCC\arm-eabi\bin\arm-eabi-gdb.exe –interpreter mi I:\lkj\poi\jkl\jkl/Debug/jkl.elf
    -gdb-version
    =thread-group-added,id=”i1″
    ~”GNU gdb (GDB) 7.10.1\n”
    ~”Copyright (C) 2015 Free Software Foundation, Inc.\n”
    ~”License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html&gt;\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \”show copying\”\nand \”show warranty\” for details.\n”
    ~”This GDB was configured as \”–host=i686-pc-mingw32 –target=arm-eabi\”.\nType \”show configuration\” for configuration details.”
    ~”\nFor bug reporting instructions, please see:\n”
    ~”<http://www.gnu.org/software/gdb/bugs/&gt;.\n”
    ~”Find the GDB manual and other documentation resources online at:\n<http://www.gnu.org/software/gdb/documentation/&gt;.\n”
    ~”For help, type \”help\”.\n”
    ~”Type \”apropos word\” to search for commands related to \”word\”…\n”
    ~”Reading symbols from I:\\lkj\\poi\\jkl\\jkl/Debug/jkl.elf…”
    ~”done.\n”
    ~”GNU gdb (GDB) 7.10.1\n”
    ~”Copyright (C) 2015 Free Software Foundation, Inc.\n”
    ~”License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html&gt;\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \”show copying\”\nand \”show warranty\” for details.\n”
    ~”This GDB was configured as \”–host=i686-pc-mingw32 –target=arm-eabi\”.\nType \”show configuration\” for configuration details.”
    ~”\nFor bug reporting instructions, please see:\n”
    ~”<http://www.gnu.org/software/gdb/bugs/&gt;.\n”
    ~”Find the GDB manual and other documentation resources online at:\n<http://www.gnu.org/software/gdb/documentation/&gt;.\n”
    ~”For help, type \”help\”.\n”
    ~”Type \”apropos word\” to search for commands related to \”word\”.\n”
    ^done
    -list-features
    ^done,features=[“frozen-varobjs”,”pending-breakpoints”,”thread-info”,”data-read-memory-bytes”,”breakpoint-notifications”,”ada-task-info”,”language-option”,”info-gdb-mi-command”,”undefined-command-error-code”,”exec-run-start-option”]
    -gdb-set stop-on-solib-events 1
    ^done
    -gdb-set disassembly-flavor intel
    -gdb-set print demangle off
    ^error,msg=”No symbol \”disassembly\” in current context.”
    ^done
    -break-insert -f main
    ^done,bkpt={number=”1″,type=”breakpoint”,disp=”keep”,enabled=”y”,addr=”0x0000082c”,func=”main()”,file=”LEDBlink.cpp”,fullname=”I:\\lkj\\poi\\jkl\\jkl\\LEDBlink.cpp”,line=”31″,thread-groups=[“i1″],times=”0″,original-location=”main”}
    target remote :2331
    &”target remote :2331\n”
    ~”Remote debugging using :2331\n”
    =thread-group-started,id=”i1″,pid=”42000″
    =thread-created,id=”1″,group-id=”i1″
    ~”Default_Handler () at C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/LPC17xx_40xx/StartupFiles/ORIGINAL_cr_startup_lpc175x_6x.c:502\n”
    ~”502\t\tfor (;;) ;\n”
    *stopped,frame={addr=”0x0000065c”,func=”Default_Handler”,args=[],file=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/LPC17xx_40xx/StartupFiles/ORIGINAL_cr_startup_lpc175x_6x.c”,fullname=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc\\LPC17xx_40xx\\StartupFiles\\ORIGINAL_cr_startup_lpc175x_6x.c”,line=”502″},thread-id=”1″,stopped-threads=”all”
    ^done
    info shared
    &”info shared\n”
    ~”No shared libraries loaded at this time.\n”
    ^done
    mon reset
    &”mon reset\n”
    @”Resetting target\r\n”
    ^done
    load
    &”load\n”
    ~”Loading section .isr_vector, size 0xcc lma 0x0\n”
    +download,{section=”.isr_vector”,section-size=”204″,total-size=”31548″}
    +download,{section=”.isr_vector”,section-sent=”204″,section-size=”204″,total-sent=”204″,total-size=”31548″}
    ~”Loading section .text, size 0x7e0 lma 0xcc\n”
    +download,{section=”.text”,section-size=”2016″,total-size=”31548″}
    ~”Loading section .init_array, size 0x4 lma 0x8ac\n”
    +download,{section=”.init_array”,section-size=”4″,total-size=”31548″}
    ~”Loading section .fini_array, size 0x4 lma 0x8b0\n”
    +download,{section=”.fini_array”,section-size=”4″,total-size=”31548″}
    ~”Start address 0x614, load size 2228\n”
    ~”Transfer rate: 310 KB/sec, 557 bytes/write.\n”
    ^done
    mon reset
    &”mon reset\n”
    @”Resetting target\r\n”
    ^done
    -data-evaluate-expression “sizeof(void *)”
    ^done,value=”4″
    -data-evaluate-expression “sizeof(int)”
    ^done,value=”4″
    -data-evaluate-expression “sizeof(short)”
    ^done,value=”2″
    -data-evaluate-expression “sizeof(long)”
    ^done,value=”4″
    -data-evaluate-expression “sizeof(long long)”
    ^done,value=”8″
    -data-evaluate-expression “sizeof(char)”
    ^done,value=”1″
    -data-evaluate-expression “sizeof(wchar_t)”
    ^error,msg=”No symbol \”wchar_t\” in current context.”
    -data-evaluate-expression “sizeof(float)”
    ^done,value=”4″
    -data-evaluate-expression “sizeof(double)”
    ^done,value=”8″
    -data-evaluate-expression “sizeof(long double)”
    ^done,value=”8″
    info target
    &”info target\n”
    ~”Symbols from \”I:\\lkj\\poi\\jkl\\jkl\\Debug\\jkl.elf\”.\n”
    ~”Remote serial target in gdb-specific protocol:\n”
    ~”Debugging a target over a serial line.\n”
    ~”\tWhile running this, GDB does not access memory from…\n”
    ~”Local exec file:\n”
    ~”\t`I:\\lkj\\poi\\jkl\\jkl\\Debug\\jkl.elf’, file type elf32-littlearm.\n”
    ~”\tEntry point: 0x614\n”
    ~”\t0x00000000 – 0x000000cc is .isr_vector\n”
    ~”\t0x000000cc – 0x000008ac is .text\n”
    ~”\t0x000008ac – 0x000008b0 is .init_array\n”
    ~”\t0x000008b0 – 0x000008b4 is .fini_array\n”
    ~”\t0x10000000 – 0x10000000 is .data\n”
    ~”\t0x10000000 – 0x10000024 is .bss\n”
    ^done
    -break-insert -f C:/Users/Dear-User/AppData/Local/VisualGDB/EmbeddedBSPs/arm-eabi/com.sysprogs.arm.nxp_lpc/LPC17xx_40xx/StartupFiles/ORIGINAL_cr_startup_lpc175x_6x.c:502
    ^done,bkpt={number=”2″,type=”breakpoint”,disp=”keep”,enabled=”y”,addr=”0x0000065c”,func=”Default_Handler”,file=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/LPC17xx_40xx/StartupFiles/ORIGINAL_cr_startup_lpc175x_6x.c”,fullname=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc\\LPC17xx_40xx\\StartupFiles\\ORIGINAL_cr_startup_lpc175x_6x.c”,line=”502″,thread-groups=[“i1″],times=”0″,original-location=”C:/Users/Dear-User/AppData/Local/VisualGDB/EmbeddedBSPs/arm-eabi/com.sysprogs.arm.nxp_lpc/LPC17xx_40xx/StartupFiles/ORIGINAL_cr_startup_lpc175x_6x.c:502″}
    -break-info 2
    ^done,BreakpointTable={nr_rows=”1″,nr_cols=”6″,hdr=[{width=”7″,alignment=”-1″,col_name=”number”,colhdr=”Num”},{width=”14″,alignment=”-1″,col_name=”type”,colhdr=”Type”},{width=”4″,alignment=”-1″,col_name=”disp”,colhdr=”Disp”},{width=”3″,alignment=”-1″,col_name=”enabled”,colhdr=”Enb”},{width=”10″,alignment=”-1″,col_name=”addr”,colhdr=”Address”},{width=”40″,alignment=”2″,col_name=”what”,colhdr=”What”}],body=[bkpt={number=”2″,type=”breakpoint”,disp=”keep”,enabled=”y”,addr=”0x0000065c”,func=”Default_Handler”,file=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/LPC17xx_40xx/StartupFiles/ORIGINAL_cr_startup_lpc175x_6x.c”,fullname=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc\\LPC17xx_40xx\\StartupFiles\\ORIGINAL_cr_startup_lpc175x_6x.c”,line=”502″,thread-groups=[“i1″],times=”0″,original-location=”C:/Users/Dear-User/AppData/Local/VisualGDB/EmbeddedBSPs/arm-eabi/com.sysprogs.arm.nxp_lpc/LPC17xx_40xx/StartupFiles/ORIGINAL_cr_startup_lpc175x_6x.c:502″}]}
    -break-after 2 0
    ^done
    info symbol 0x65c
    &”info symbol 0x65c\n”
    ~”WDT_IRQHandler in section .text\n”
    ^done
    info line *0x65c
    &”info line *0x65c\n”
    ~”Line 502 of \”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/LPC17xx_40xx/StartupFiles/ORIGINAL_cr_startup_lpc175x_6x.c\” starts at address 0x65c <Default_Handler> and ends at 0x65e.\n”
    ^done
    -file-list-exec-source-files
    ^done,files=[{file=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/LPC17xx_40xx/StartupFiles/ORIGINAL_cr_startup_lpc175x_6x.c”,fullname=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc\\LPC17xx_40xx\\StartupFiles\\ORIGINAL_cr_startup_lpc175x_6x.c”},{file=”LEDBlink.cpp”,fullname=”I:\\lkj\\poi\\jkl\\jkl\\LEDBlink.cpp”},{file=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/LPC17xx_40xx/lpc_chip_17xx/CMSIS/CMSIS/Include/core_cm3.h”,fullname=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc\\LPC17xx_40xx\\lpc_chip_17xx\\CMSIS\\CMSIS\\Include\\core_cm3.h”},{file=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/LPC17xx_40xx/lpc_chip_17xx/lpc_chip/chip_17xx_40xx/gpio_17xx_40xx.h”,fullname=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc\\LPC17xx_40xx\\lpc_chip_17xx\\lpc_chip\\chip_17xx_40xx\\gpio_17xx_40xx.h”},{file=”c:\\sysgcc\\arm-eabi\\arm-eabi\\sys-include\\machine/_default_types.h”,fullname=”c:\\sysgcc\\arm-eabi\\arm-eabi\\sys-include\\machine\\_default_types.h”},{file=”c:\\sysgcc\\arm-eabi\\arm-eabi\\sys-include/stdint.h”,fullname=”c:\\sysgcc\\arm-eabi\\arm-eabi\\sys-include\\stdint.h”},{file=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/LPC17xx_40xx/lpc_chip_17xx/lpc_chip/chip_common/lpc_types.h”,fullname=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc\\LPC17xx_40xx\\lpc_chip_17xx\\lpc_chip\\chip_common\\lpc_types.h”},{file=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/LPC17xx_40xx/lpc_chip_17xx/lpc_chip/chip_17xx_40xx/config_175x_6x/cmsis_175x_6x.h”,fullname=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc\\LPC17xx_40xx\\lpc_chip_17xx\\lpc_chip\\chip_17xx_40xx\\config_175x_6x\\cmsis_175x_6x.h”},{file=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/LPC17xx_40xx/lpc_chip_17xx/lpc_chip/chip_17xx_40xx/cmsis.h”,fullname=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc\\LPC17xx_40xx\\lpc_chip_17xx\\lpc_chip\\chip_17xx_40xx\\cmsis.h”},{file=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/LPC17xx_40xx/lpc_chip_17xx/lpc_chip/chip_17xx_40xx/sysctl_17xx_40xx.h”,fullname=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc\\LPC17xx_40xx\\lpc_chip_17xx\\lpc_chip\\chip_17xx_40xx\\sysctl_17xx_40xx.h”},{file=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/LPC17xx_40xx/lpc_chip_17xx/lpc_chip/chip_17xx_40xx/clock_17xx_40xx.h”,fullname=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc\\LPC17xx_40xx\\lpc_chip_17xx\\lpc_chip\\chip_17xx_40xx\\clock_17xx_40xx.h”},{file=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/LPC17xx_40xx/lpc_chip_17xx/lpc_chip/chip_17xx_40xx/iocon_17xx_40xx.h”,fullname=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc\\LPC17xx_40xx\\lpc_chip_17xx\\lpc_chip\\chip_17xx_40xx\\iocon_17xx_40xx.h”},{file=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/LPC17xx_40xx/lpc_chip_17xx/lpc_chip/chip_17xx_40xx/can_17xx_40xx.h”,fullname=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc\\LPC17xx_40xx\\lpc_chip_17xx\\lpc_chip\\chip_17xx_40xx\\can_17xx_40xx.h”},{file=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/LPC17xx_40xx/lpc_chip_17xx/lpc_chip/chip_17xx_40xx/i2s_17xx_40xx.h”,fullname=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc\\LPC17xx_40xx\\lpc_chip_17xx\\lpc_chip\\chip_17xx_40xx\\i2s_17xx_40xx.h”},{file=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/LPC17xx_40xx/lpc_chip_17xx/lpc_chip/chip_17xx_40xx/rtc_17xx_40xx.h”,fullname=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc\\LPC17xx_40xx\\lpc_chip_17xx\\lpc_chip\\chip_17xx_40xx\\rtc_17xx_40xx.h”},{file=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/LPC17xx_40xx/lpc_chip_17xx/lpc_chip/chip_17xx_40xx/spi_17xx_40xx.h”,fullname=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc\\LPC17xx_40xx\\lpc_chip_17xx\\lpc_chip\\chip_17xx_40xx\\spi_17xx_40xx.h”},{file=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/LPC17xx_40xx/lpc_chip_17xx/lpc_chip/chip_17xx_40xx/ssp_17xx_40xx.h”,fullname=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc\\LPC17xx_40xx\\lpc_chip_17xx\\lpc_chip\\chip_17xx_40xx\\ssp_17xx_40xx.h”},{file=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/LPC17xx_40xx/lpc_chip_17xx/lpc_chip/chip_common/error.h”,fullname=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc\\LPC17xx_40xx\\lpc_chip_17xx\\lpc_chip\\chip_common\\error.h”},{file=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/LPC17xx_40xx/lpc_chip_17xx/lpc_chip/chip_17xx_40xx/chip.h”,fullname=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc\\LPC17xx_40xx\\lpc_chip_17xx\\lpc_chip\\chip_17xx_40xx\\chip.h”},{file=”../../../../../../../newlib-2.2.0/newlib/libc/misc/init.c”,fullname=”/q/gnu/auto/newlib-bu-2.24+gcc-5.3.0+gmp-5.1.3+mpfr-3.1.2+mpc-1.0.2+newlib-2.2.0-arm-eabi/arm-eabi/thumb/cortex_m3/newlib/libc/misc/../../../../../../../newlib-2.2.0/newlib/libc/misc/init.c”},{file=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/LPC17xx_40xx/lpc_chip_17xx/lpc_chip/chip_17xx_40xx/gpio_17xx_40xx.h”,fullname=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc\\LPC17xx_40xx\\lpc_chip_17xx\\lpc_chip\\chip_17xx_40xx\\gpio_17xx_40xx.h”},{file=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/LPC17xx_40xx/lpc_chip_17xx/CMSIS/CMSIS/Include/core_cm3.h”,fullname=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc\\LPC17xx_40xx\\lpc_chip_17xx\\CMSIS\\CMSIS\\Include\\core_cm3.h”},{file=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/LPC17xx_40xx/lpc_chip_17xx/lpc_chip/chip_17xx_40xx/clock_17xx_40xx.h”,fullname=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc\\LPC17xx_40xx\\lpc_chip_17xx\\lpc_chip\\chip_17xx_40xx\\clock_17xx_40xx.h”},{file=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/LPC17xx_40xx/lpc_chip_17xx/lpc_chip/chip_17xx_40xx/sysinit_17xx_40xx.c”,fullname=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc\\LPC17xx_40xx\\lpc_chip_17xx\\lpc_chip\\chip_17xx_40xx\\sysinit_17xx_40xx.c”},{file=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/LPC17xx_40xx/lpc_chip_17xx/lpc_chip/chip_17xx_40xx/clock_17xx_40xx.h”,fullname=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc\\LPC17xx_40xx\\lpc_chip_17xx\\lpc_chip\\chip_17xx_40xx\\clock_17xx_40xx.h”},{file=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/LPC17xx_40xx/lpc_chip_17xx/lpc_chip/chip_17xx_40xx/clock_17xx_40xx.c”,fullname=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc\\LPC17xx_40xx\\lpc_chip_17xx\\lpc_chip\\chip_17xx_40xx\\clock_17xx_40xx.c”},{file=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/LPC17xx_40xx/lpc_chip_17xx/lpc_chip/chip_17xx_40xx/clock_17xx_40xx.h”,fullname=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc\\LPC17xx_40xx\\lpc_chip_17xx\\lpc_chip\\chip_17xx_40xx\\clock_17xx_40xx.h”},{file=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/LPC17xx_40xx/lpc_chip_17xx/lpc_chip/chip_17xx_40xx/chip_17xx_40xx.c”,fullname=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc\\LPC17xx_40xx\\lpc_chip_17xx\\lpc_chip\\chip_17xx_40xx\\chip_17xx_40xx.c”},{file=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/Common/startup.c”,fullname=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc\\Common\\startup.c”}]
    -break-insert -f C:/Users/Dear-User/AppData/Local/VisualGDB/EmbeddedBSPs/arm-eabi/com.sysprogs.arm.nxp_lpc/LPC17xx_40xx/StartupFiles/ORIGINAL_cr_startup_lpc175x_6x.c:491
    ^done,bkpt={number=”3″,type=”breakpoint”,disp=”keep”,enabled=”y”,addr=”0x00000638″,func=”Reset_Handler”,file=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/LPC17xx_40xx/StartupFiles/ORIGINAL_cr_startup_lpc175x_6x.c”,fullname=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc\\LPC17xx_40xx\\StartupFiles\\ORIGINAL_cr_startup_lpc175x_6x.c”,line=”491″,thread-groups=[“i1″],times=”0″,original-location=”C:/Users/Dear-User/AppData/Local/VisualGDB/EmbeddedBSPs/arm-eabi/com.sysprogs.arm.nxp_lpc/LPC17xx_40xx/StartupFiles/ORIGINAL_cr_startup_lpc175x_6x.c:491″}
    -break-info 3
    ^done,BreakpointTable={nr_rows=”1″,nr_cols=”6″,hdr=[{width=”7″,alignment=”-1″,col_name=”number”,colhdr=”Num”},{width=”14″,alignment=”-1″,col_name=”type”,colhdr=”Type”},{width=”4″,alignment=”-1″,col_name=”disp”,colhdr=”Disp”},{width=”3″,alignment=”-1″,col_name=”enabled”,colhdr=”Enb”},{width=”10″,alignment=”-1″,col_name=”addr”,colhdr=”Address”},{width=”40″,alignment=”2″,col_name=”what”,colhdr=”What”}],body=[bkpt={number=”3″,type=”breakpoint”,disp=”keep”,enabled=”y”,addr=”0x00000638″,func=”Reset_Handler”,file=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/LPC17xx_40xx/StartupFiles/ORIGINAL_cr_startup_lpc175x_6x.c”,fullname=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc\\LPC17xx_40xx\\StartupFiles\\ORIGINAL_cr_startup_lpc175x_6x.c”,line=”491″,thread-groups=[“i1″],times=”0″,original-location=”C:/Users/Dear-User/AppData/Local/VisualGDB/EmbeddedBSPs/arm-eabi/com.sysprogs.arm.nxp_lpc/LPC17xx_40xx/StartupFiles/ORIGINAL_cr_startup_lpc175x_6x.c:491″}]}
    -break-after 3 0
    ^done
    info symbol 0x638
    &”info symbol 0x638\n”
    ~”Reset_Handler + 36 in section .text\n”
    ^done
    info line *0x638
    &”info line *0x638\n”
    ~”Line 491 of \”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/LPC17xx_40xx/StartupFiles/ORIGINAL_cr_startup_lpc175x_6x.c\” starts at address 0x638 <Reset_Handler+36> and ends at 0x63c <Reset_Handler+40>.\n”
    ^done
    -data-evaluate-expression “&_estack”
    ^done,value=”0x10010000″
    -var-create – * “*((void **)0x1000fffc)”
    ^done,name=”var1″,numchild=”0″,value=””,type=”void *”,has_more=”0″
    -exec-continue
    ^running
    *running,thread-id=”all”
    =breakpoint-modified,bkpt={number=”3″,type=”breakpoint”,disp=”keep”,enabled=”y”,addr=”0x00000638″,func=”Reset_Handler”,file=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/LPC17xx_40xx/StartupFiles/ORIGINAL_cr_startup_lpc175x_6x.c”,fullname=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc\\LPC17xx_40xx\\StartupFiles\\ORIGINAL_cr_startup_lpc175x_6x.c”,line=”491″,thread-groups=[“i1″],times=”1″,original-location=”C:/Users/Dear-User/AppData/Local/VisualGDB/EmbeddedBSPs/arm-eabi/com.sysprogs.arm.nxp_lpc/LPC17xx_40xx/StartupFiles/ORIGINAL_cr_startup_lpc175x_6x.c:491″}
    ~”\nBreakpoint ”
    ~”3, Reset_Handler () at C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/LPC17xx_40xx/StartupFiles/ORIGINAL_cr_startup_lpc175x_6x.c:491\n”
    ~”491\t\tSystemInit();\n”
    *stopped,reason=”breakpoint-hit”,disp=”keep”,bkptno=”3″,frame={addr=”0x00000638″,func=”Reset_Handler”,args=[],file=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/LPC17xx_40xx/StartupFiles/ORIGINAL_cr_startup_lpc175x_6x.c”,fullname=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc\\LPC17xx_40xx\\StartupFiles\\ORIGINAL_cr_startup_lpc175x_6x.c”,line=”491″},thread-id=”1″,stopped-threads=”all”
    -break-info 3
    ^done,BreakpointTable={nr_rows=”1″,nr_cols=”6″,hdr=[{width=”7″,alignment=”-1″,col_name=”number”,colhdr=”Num”},{width=”14″,alignment=”-1″,col_name=”type”,colhdr=”Type”},{width=”4″,alignment=”-1″,col_name=”disp”,colhdr=”Disp”},{width=”3″,alignment=”-1″,col_name=”enabled”,colhdr=”Enb”},{width=”10″,alignment=”-1″,col_name=”addr”,colhdr=”Address”},{width=”40″,alignment=”2″,col_name=”what”,colhdr=”What”}],body=[bkpt={number=”3″,type=”breakpoint”,disp=”keep”,enabled=”y”,addr=”0x00000638″,func=”Reset_Handler”,file=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/LPC17xx_40xx/StartupFiles/ORIGINAL_cr_startup_lpc175x_6x.c”,fullname=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc\\LPC17xx_40xx\\StartupFiles\\ORIGINAL_cr_startup_lpc175x_6x.c”,line=”491″,thread-groups=[“i1″],times=”1″,original-location=”C:/Users/Dear-User/AppData/Local/VisualGDB/EmbeddedBSPs/arm-eabi/com.sysprogs.arm.nxp_lpc/LPC17xx_40xx/StartupFiles/ORIGINAL_cr_startup_lpc175x_6x.c:491″}]}
    -break-after 3 0
    ^done
    -stack-list-frames –thread 1
    ^done,stack=[frame={level=”0″,addr=”0x00000638″,func=”Reset_Handler”,file=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/LPC17xx_40xx/StartupFiles/ORIGINAL_cr_startup_lpc175x_6x.c”,fullname=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc\\LPC17xx_40xx\\StartupFiles\\ORIGINAL_cr_startup_lpc175x_6x.c”,line=”491″}]
    -stack-list-arguments –thread 1 0
    ^done,stack-args=[frame={level=”0″,args=[]}]
    -stack-list-frames –thread 1
    ^done,stack=[frame={level=”0″,addr=”0x00000638″,func=”Reset_Handler”,file=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/LPC17xx_40xx/StartupFiles/ORIGINAL_cr_startup_lpc175x_6x.c”,fullname=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc\\LPC17xx_40xx\\StartupFiles\\ORIGINAL_cr_startup_lpc175x_6x.c”,line=”491″}]
    -stack-list-arguments –thread 1 0
    ^done,stack-args=[frame={level=”0″,args=[]}]
    -stack-list-frames –thread 1
    ^done,stack=[frame={level=”0″,addr=”0x00000638″,func=”Reset_Handler”,file=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/LPC17xx_40xx/StartupFiles/ORIGINAL_cr_startup_lpc175x_6x.c”,fullname=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc\\LPC17xx_40xx\\StartupFiles\\ORIGINAL_cr_startup_lpc175x_6x.c”,line=”491″}]
    -stack-list-arguments –thread 1 0
    ^done,stack-args=[frame={level=”0″,args=[]}]
    -stack-select-frame 0
    ^done
    -thread-select 1
    ^done,new-thread-id=”1″,frame={level=”0″,addr=”0x00000638″,func=”Reset_Handler”,args=[],file=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/LPC17xx_40xx/StartupFiles/ORIGINAL_cr_startup_lpc175x_6x.c”,fullname=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc\\LPC17xx_40xx\\StartupFiles\\ORIGINAL_cr_startup_lpc175x_6x.c”,line=”491″}
    -break-delete 1
    ^done
    -exec-next
    001^done
    ^running
    *running,thread-id=”all”
    =breakpoint-modified,bkpt={number=”2″,type=”breakpoint”,disp=”keep”,enabled=”y”,addr=”0x0000065c”,func=”Default_Handler”,file=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/LPC17xx_40xx/StartupFiles/ORIGINAL_cr_startup_lpc175x_6x.c”,fullname=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc\\LPC17xx_40xx\\StartupFiles\\ORIGINAL_cr_startup_lpc175x_6x.c”,line=”502″,thread-groups=[“i1″],times=”1″,original-location=”C:/Users/Dear-User/AppData/Local/VisualGDB/EmbeddedBSPs/arm-eabi/com.sysprogs.arm.nxp_lpc/LPC17xx_40xx/StartupFiles/ORIGINAL_cr_startup_lpc175x_6x.c:502″}
    ~”\nBreakpoint ”
    ~”2, Default_Handler () at C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/LPC17xx_40xx/StartupFiles/ORIGINAL_cr_startup_lpc175x_6x.c:502\n”
    ~”502\t\tfor (;;) ;\n”
    *stopped,reason=”breakpoint-hit”,disp=”keep”,bkptno=”2″,frame={addr=”0x0000065c”,func=”Default_Handler”,args=[],file=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/LPC17xx_40xx/StartupFiles/ORIGINAL_cr_startup_lpc175x_6x.c”,fullname=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc\\LPC17xx_40xx\\StartupFiles\\ORIGINAL_cr_startup_lpc175x_6x.c”,line=”502″},thread-id=”1″,stopped-threads=”all”
    -break-info 2
    ^done,BreakpointTable={nr_rows=”1″,nr_cols=”6″,hdr=[{width=”7″,alignment=”-1″,col_name=”number”,colhdr=”Num”},{width=”14″,alignment=”-1″,col_name=”type”,colhdr=”Type”},{width=”4″,alignment=”-1″,col_name=”disp”,colhdr=”Disp”},{width=”3″,alignment=”-1″,col_name=”enabled”,colhdr=”Enb”},{width=”10″,alignment=”-1″,col_name=”addr”,colhdr=”Address”},{width=”40″,alignment=”2″,col_name=”what”,colhdr=”What”}],body=[bkpt={number=”2″,type=”breakpoint”,disp=”keep”,enabled=”y”,addr=”0x0000065c”,func=”Default_Handler”,file=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/LPC17xx_40xx/StartupFiles/ORIGINAL_cr_startup_lpc175x_6x.c”,fullname=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc\\LPC17xx_40xx\\StartupFiles\\ORIGINAL_cr_startup_lpc175x_6x.c”,line=”502″,thread-groups=[“i1″],times=”1″,original-location=”C:/Users/Dear-User/AppData/Local/VisualGDB/EmbeddedBSPs/arm-eabi/com.sysprogs.arm.nxp_lpc/LPC17xx_40xx/StartupFiles/ORIGINAL_cr_startup_lpc175x_6x.c:502″}]}
    -break-after 2 0
    ^done
    -break-info 3
    ^done,BreakpointTable={nr_rows=”1″,nr_cols=”6″,hdr=[{width=”7″,alignment=”-1″,col_name=”number”,colhdr=”Num”},{width=”14″,alignment=”-1″,col_name=”type”,colhdr=”Type”},{width=”4″,alignment=”-1″,col_name=”disp”,colhdr=”Disp”},{width=”3″,alignment=”-1″,col_name=”enabled”,colhdr=”Enb”},{width=”10″,alignment=”-1″,col_name=”addr”,colhdr=”Address”},{width=”40″,alignment=”2″,col_name=”what”,colhdr=”What”}],body=[bkpt={number=”3″,type=”breakpoint”,disp=”keep”,enabled=”y”,addr=”0x00000638″,func=”Reset_Handler”,file=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/LPC17xx_40xx/StartupFiles/ORIGINAL_cr_startup_lpc175x_6x.c”,fullname=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc\\LPC17xx_40xx\\StartupFiles\\ORIGINAL_cr_startup_lpc175x_6x.c”,line=”491″,thread-groups=[“i1″],times=”1″,original-location=”C:/Users/Dear-User/AppData/Local/VisualGDB/EmbeddedBSPs/arm-eabi/com.sysprogs.arm.nxp_lpc/LPC17xx_40xx/StartupFiles/ORIGINAL_cr_startup_lpc175x_6x.c:491″}]}
    -break-after 3 0
    ^done
    -stack-list-frames –thread 1
    ^done,stack=[frame={level=”0″,addr=”0x0000065c”,func=”Default_Handler”,file=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/LPC17xx_40xx/StartupFiles/ORIGINAL_cr_startup_lpc175x_6x.c”,fullname=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc\\LPC17xx_40xx\\StartupFiles\\ORIGINAL_cr_startup_lpc175x_6x.c”,line=”502″},frame={level=”1″,addr=”0xfffffff9″,func=”<signal handler called>”}]
    -stack-list-arguments –thread 1 0
    ^done,stack-args=[frame={level=”0″,args=[]},frame={level=”1″,args=[]}]
    -stack-list-frames –thread 1
    ^done,stack=[frame={level=”0″,addr=”0x0000065c”,func=”Default_Handler”,file=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/LPC17xx_40xx/StartupFiles/ORIGINAL_cr_startup_lpc175x_6x.c”,fullname=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc\\LPC17xx_40xx\\StartupFiles\\ORIGINAL_cr_startup_lpc175x_6x.c”,line=”502″},frame={level=”1″,addr=”0xfffffff9″,func=”<signal handler called>”}]
    -stack-list-arguments –thread 1 0
    ^done,stack-args=[frame={level=”0″,args=[]},frame={level=”1″,args=[]}]
    -stack-list-frames –thread 1
    ^done,stack=[frame={level=”0″,addr=”0x0000065c”,func=”Default_Handler”,file=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/LPC17xx_40xx/StartupFiles/ORIGINAL_cr_startup_lpc175x_6x.c”,fullname=”C:\\Users\\Dear-User\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc\\LPC17xx_40xx\\StartupFiles\\ORIGINAL_cr_startup_lpc175x_6x.c”,line=”502″},frame={level=”1″,addr=”0xfffffff9″,func=”<signal handler called>”}]
    -stack-list-arguments –thread 1 0
    ^done,stack-args=[frame={level=”0″,args=[]},frame={level=”1″,args=[]}]
    -data-list-register-names
    ^done,register-names=[“r0″,”r1″,”r2″,”r3″,”r4″,”r5″,”r6″,”r7″,”r8″,”r9″,”r10″,”r11″,”r12″,”sp”,”lr”,”pc”,””,””,””,””,””,””,””,””,””,”xpsr”,””,””,””,””,””,””,””,””,””,””,””,””,””,””,””,””,””,””,””,””,””,””,””,””,””,””,””,””,””,””,””,””,””,””,””,””,””,””,””,””,””,””,””,””,””,””,””,””,””,””,””,””,””,””,””,””,””,””,””,””,””,””,””,””,””,”MSP”,”PSP”,”PRIMASK”,”BASEPRI”,”FAULTMASK”,”CONTROL”]
    -var-delete “var1″
    ^done,ndeleted=”1”
    -var-create –frame 0 –thread 1 – * “VisualGDB”
    ^error,msg=”-var-create: unable to create variable object”
    -var-create –frame 0 –thread 1 – * “SystemInit”
    ^done,name=”var3″,numchild=”0″,value=”{void (void)} 0x1c0 <SystemInit>”,type=”void (void)”,has_more=”0″
    -var-create –frame 0 –thread 1 – * “SystemInit”
    ^done,name=”var4″,numchild=”0″,value=”{void (void)} 0x1c0 <SystemInit>”,type=”void (void)”,has_more=”0″
    -var-create –frame 0 –thread 1 – * “SystemInit”
    ^done,name=”var5″,numchild=”0″,value=”{void (void)} 0x1c0 <SystemInit>”,type=”void (void)”,has_more=”0″
    -var-create –frame 0 –thread 1 – * “rebuild”
    ^error,msg=”-var-create: unable to create variable object”

    • This reply was modified 8 years, 8 months ago by Clr_man26.
    • This reply was modified 8 years, 8 months ago by Clr_man26.
    #7909
    support
    Keymaster

    Hi,

    It looks like there is a bug in our LPC1768 linker script that results in incorrect memory size definition.

    Please open VisualGDB Project Properties on the Makefile Settings page, click “Create local copy” near the “Linker Script” field. Then open the linker script added to the project and edit it as follows:

    MEMORY
    {
        FLASH (RX) : ORIGIN = 0x00000000, LENGTH = 512K
        SRAM (RWX) : ORIGIN = 0x10000000, LENGTH = 48K
    }
    
    _estack = 0x1000C000;
    #7912
    Clr_man26
    Participant

    Hi

    I changed it , but it does not work , as it is stuck in a loop

     

     

    This is my “LPC1768_flash.lds”File :

    /* Generated by LinkerScriptGenerator [http://visualgdb.com/tools/LinkerScriptGenerator]
     * Target: LPC1768
     * The file is provided under the BSD license.
     */
    ENTRY(Reset_Handler)
    MEMORY
     {
     FLASH (RX) : ORIGIN = 0x00000000, LENGTH = 512K
     SRAM (RWX) : ORIGIN = 0x10000000, LENGTH = 64K
     }
    _estack = 0x10010000;
    SECTIONS
     {
     .isr_vector :
     {
     . = ALIGN(4);
     KEEP(*(.isr_vector))
     . = ALIGN(4);
     } > FLASH
    .text :
     {
     . = ALIGN(4);
     _stext = .;
    *(.text)
     *(.text*)
     *(.rodata)
     *(.rodata*)
     *(.glue_7)
     *(.glue_7t)
     KEEP(*(.init))
     KEEP(*(.fini))
     . = ALIGN(4);
     _etext = .;
    } > FLASH
    .ARM.extab :
     {
     . = ALIGN(4);
     *(.ARM.extab)
     *(.gnu.linkonce.armextab.*)
     . = ALIGN(4);
     } > FLASH
    .exidx :
     {
     . = ALIGN(4);
     PROVIDE(__exidx_start = .);
     *(.ARM.exidx*)
     . = ALIGN(4);
     PROVIDE(__exidx_end = .);
     } > FLASH
    .ARM.attributes :
     {
     *(.ARM.attributes)
     } > FLASH
    .preinit_array :
     {
     PROVIDE(__preinit_array_start = .);
     KEEP(*(.preinit_array*))
     PROVIDE(__preinit_array_end = .);
     } > FLASH
    .init_array :
     {
     PROVIDE(__init_array_start = .);
     KEEP(*(SORT(.init_array.*)))
     KEEP(*(.init_array*))
     PROVIDE(__init_array_end = .);
     } > FLASH
    .fini_array :
     {
     PROVIDE(__fini_array_start = .);
     KEEP(*(.fini_array*))
     KEEP(*(SORT(.fini_array.*)))
     PROVIDE(__fini_array_end = .);
     } > FLASH
    . = ALIGN(4);
     _sidata = .;
    .data : AT(_sidata)
     {
     . = ALIGN(4);
     _sdata = .;
    PROVIDE(__data_start__ = _sdata);
     *(.data)
     *(.data*)
     . = ALIGN(4);
     _edata = .;
    PROVIDE(__data_end__ = _edata);
     } > SRAM
    .bss :
     {
     . = ALIGN(4);
     _sbss = .;
    PROVIDE(__bss_start__ = _sbss);
     *(.bss)
     *(.bss*)
     *(COMMON)
     . = ALIGN(4);
     _ebss = .;
    PROVIDE(__bss_end__ = _ebss);
     } > SRAM
    PROVIDE(end = .);
    }
    • This reply was modified 8 years, 8 months ago by support. Reason: formating
    #7916
    support
    Keymaster

    Hi,

    The file you posted is has different _estack and memory size than we suggested. Please double-check that you are using the values we suggested above.

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.