Forum Replies Created
-
AuthorPosts
-
JB_Lightcon
ParticipantKeep the board – maybe we will need something from you in the future 😉
JB_Lightcon
ParticipantI know this thread became long, but my original intent was to make OpenOCD work, and after failing to do so, I arranged a board for you, so you could check it on your own. So could you please run OpenOCD on the board I sent you, because I have never had issues with Segger adapters and I just want OpenOCD working on this board….
JB_Lightcon
ParticipantNice. Since you got it up and running, any possibilities to make it work with OpenOCD?
JB_Lightcon
ParticipantHave you received test board? Any progress?
JB_Lightcon
ParticipantFilled the form – will wait for response.
JB_Lightcon
ParticipantFirst 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 😉
JB_Lightcon
ParticipantTo 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…
JB_Lightcon
ParticipantFew instructions before:
0x000007a8Â bl 0x1f0 <SystemInit>
0x000001f0Â strb r7, [r0, r2]
This is where it stucks forever:
0x030002fe b.n 0x30002fe
Ant this gets us to the Boot ROM memory space, so I suspect that our code in not valid, from LPC15xx datasheet:
5.4.2 Criterion for valid user code
The reserved ARM Cortex-M3 exception vector location 7 (offset 0x0000 001C in the
vector table) should contain the 2’s complement of the check-sum of table entries 0
through 6. This causes the checksum of the first 8 table entries to be 0. The boot loader
code checksums the first 8 locations in sector 0 of the flash. If the result is 0, then
execution control is transferred to the user code.Although USB does not start as master storage device…
P.S.: Watch1 does not do anything for this expression:
*((unsigned *)($sp – 4))   -var-create: unable to create variable object
JB_Lightcon
ParticipantBy the way, if it would help in any way, we could send you a LPC1549 board.
JB_Lightcon
ParticipantThis is my reset handler and it breaks where I try to step into SystemInit(); function.
void __attribute__((naked, noreturn)) Reset_Handler() {
//Normally the CPU should will setup the based on the value from the first entry in the vector table.
//If you encounter problems with accessing stack variables during initialization, ensure the line below is enabled.
#ifdef sram_layout
asm(“ldr sp, =_estack”);
#endifvoid **pSource, **pDest;
for (pSource = &_sidata, pDest = &_sdata; pDest != &_edata; pSource++, pDest++)
*pDest = *pSource;for (pDest = &_sbss; pDest != &_ebss; pDest++)
*pDest = 0;SystemInit();
__libc_init_array();
(void)main();
for (;;)
;
}JB_Lightcon
ParticipantI’m working with basic LED blink example:
#include <chip.h>
volatile unsigned long SysTickCnt;
#ifdef __cplusplus
extern “C”
#endif
void SysTick_Handler(void) {
SysTickCnt++;
}void Delay(unsigned long tick) {
unsigned long systickcnt;systickcnt = SysTickCnt;
while ((SysTickCnt – systickcnt) < tick)
;
}const uint32_t ExtRateIn = 0;
const uint32_t OscRateIn = 12000000;
const uint32_t RTCOscRateIn = 32768;#ifndef LPC_GPIO
#define LPC_GPIO LPC_GPIO_PORT
#endifint main() {
SystemCoreClockUpdate();
Chip_GPIO_Init(LPC_GPIO);SysTick_Config(SystemCoreClock / 1000);
Chip_GPIO_SetPortDIROutput(LPC_GPIO, 1, 1 << 2);for (;;) {
Chip_GPIO_WritePortBit(LPC_GPIO, 1, 2, 1);
Delay(50);
Chip_GPIO_WritePortBit(LPC_GPIO, 1, 2, 0);
Delay(50);
}return 0;
}I could send you whole project and OpenOCD configuration files if you are willing to look at those.
JB_Lightcon
ParticipantTried 0x2002000, 0x2004000 and 0x2008000 addresses for _estack with no luck. All those are within SRAM range from LPC1549 datasheet, still no step by step debug. Log:
C:\SysGCC\arm-eabi\bin\arm-eabi-gdb.exe –interpreter mi M:\CodeRepos\Zeta-Playground\TestOCD\TestOcd\TestOcd/Debug/TestOcd.elf
[Â Â Â Â Â Â 0 ms] -gdb-version
[Â Â Â Â Â 23 ms] =thread-group-added,id=”i1″
[Â Â Â Â Â 23 ms] ~”GNU gdb (GDB) 7.10.1\n”
[Â Â Â Â Â 23 ms] ~”Copyright (C) 2015 Free Software Foundation, Inc.\n”
[     24 ms] ~”License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\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”
[Â Â Â Â Â 24 ms] ~”This GDB was configured as \”–host=i686-pc-mingw32 –target=arm-eabi\”.\nType \”show configuration\” for configuration details.”
[Â Â Â Â Â 24 ms] ~”\nFor bug reporting instructions, please see:\n”
[Â Â Â Â Â 24 ms] ~”<http://www.gnu.org/software/gdb/bugs/>.\n”
[Â Â Â Â Â 24 ms] ~”Find the GDB manual and other documentation resources online at:\n<http://www.gnu.org/software/gdb/documentation/>.\n”
[Â Â Â Â Â 25 ms] ~”For help, type \”help\”.\n”
[Â Â Â Â Â 25 ms] ~”Type \”apropos word\” to search for commands related to \”word\”…\n”
[Â Â Â Â Â 25 ms] ~”Reading symbols from M:\\CodeRepos\\Zeta-Playground\\TestOCD\\TestOcd\\TestOcd/Debug/TestOcd.elf…”
[Â Â Â Â Â 29 ms] ~”done.\n”
[Â Â Â Â Â 30 ms] ~”GNU gdb (GDB) 7.10.1\n”
[Â Â Â Â Â 31 ms] ~”Copyright (C) 2015 Free Software Foundation, Inc.\n”
[     31 ms] ~”License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\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”
[Â Â Â Â Â 31 ms] ~”This GDB was configured as \”–host=i686-pc-mingw32 –target=arm-eabi\”.\nType \”show configuration\” for configuration details.”
[Â Â Â Â Â 31 ms] ~”\nFor bug reporting instructions, please see:\n”
[Â Â Â Â Â 32 ms] ~”<http://www.gnu.org/software/gdb/bugs/>.\n”
[Â Â Â Â Â 32 ms] ~”Find the GDB manual and other documentation resources online at:\n<http://www.gnu.org/software/gdb/documentation/>.\n”
[Â Â Â Â Â 32 ms] ~”For help, type \”help\”.\n”
[Â Â Â Â Â 32 ms] ~”Type \”apropos word\” to search for commands related to \”word\”.\n”
[Â Â Â Â Â 32 ms] ^done
[Â Â Â Â Â 32 ms] -list-features
[Â Â Â Â Â 33 ms] ^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”]
[Â Â Â Â Â 33 ms] -gdb-set stop-on-solib-events 1
[Â Â Â Â Â 33 ms] ^done
[Â Â Â Â Â 33 ms] -gdb-set disassembly-flavor intel
[Â Â Â Â Â 33 ms] ^error,msg=”No symbol \”disassembly\” in current context.”
[Â Â Â Â Â 33 ms] -gdb-set print demangle off
[Â Â Â Â Â 34 ms] ^done
[Â Â Â Â Â 34 ms] -break-insert -f main
[Â Â Â Â Â 44 ms] ^done,bkpt={number=”1″,type=”breakpoint”,disp=”keep”,enabled=”y”,addr=”0x00000928″,func=”main()”,file=”LEDBlink.cpp”,fullname=”M:\\CodeRepos\\Zeta-Playground\\TestOCD\\TestOcd\\TestOcd\\LEDBlink.cpp”,line=”29″,thread-groups=[“i1″],times=”0″,original-location=”main”}
[Â Â Â Â Â 45 ms] set remotetimeout 60
[Â Â Â Â Â 45 ms] &”set remotetimeout 60\n”
[Â Â Â Â Â 45 ms] =cmd-param-changed,param=”remotetimeout”,value=”60″
[Â Â Â Â Â 45 ms] ^done
[Â Â Â Â Â 45 ms] target remote :51002
[Â Â Â Â Â 45 ms] &”target remote :51002\n”
[Â Â Â Â Â 52 ms] ~”Remote debugging using :51002\n”
[Â Â Â 1462 ms] =thread-group-started,id=”i1″,pid=”42000″
[Â Â Â 1462 ms] =thread-created,id=”1″,group-id=”i1″
[Â Â Â 1568 ms] ~”0x030000b8 in ?? ()\n”
[Â Â Â 1568 ms] *stopped,frame={addr=”0x030000b8″,func=”??”,args=[]},thread-id=”1″,stopped-threads=”all”
[Â Â Â 1594 ms] ^done
[Â Â Â 1594 ms] info shared
[Â Â Â 1594 ms] &”info shared\n”
[Â Â Â 1594 ms] ~”No shared libraries loaded at this time.\n”
[Â Â Â 1594 ms] ^done
[Â Â Â 1595 ms] mon halt
[Â Â Â 1605 ms] &”mon halt\n”
[Â Â Â 1649 ms] ^done
[Â Â Â 1649 ms] mon reset init
[Â Â Â 1650 ms] &”mon reset init\n”
[Â Â Â 2728 ms] @”lpc15xx.cpu: target state: halted\n”
[Â Â Â 2729 ms] @”target halted due to debug-request, current mode: Thread \n”
[Â Â Â 2729 ms] @”xPSR: 0x01000000 pc: 0x030000b8 msp: 0x02001fe0\n”
[Â Â Â 2800 ms] ^done
[Â Â Â 2800 ms] load
[Â Â Â 2800 ms] &”load\n”
[Â Â Â 5656 ms] ~”Loading section .isr_vector, size 0xfc lma 0x0\n”
[Â Â Â 5683 ms] +download,{section=”.isr_vector”,section-size=”252″,total-size=”46462″}
[Â Â Â 5683 ms] +download,{section=”.isr_vector”,section-sent=”252″,section-size=”252″,total-sent=”252″,total-size=”46462″}
[Â Â Â 5683 ms] ~”Loading section .text, size 0x8ac lma 0xfc\n”
[Â Â Â 5683 ms] +download,{section=”.text”,section-size=”2220″,total-size=”46462″}
[Â Â Â 5684 ms] ~”Loading section .init_array, size 0x4 lma 0x9a8\n”
[Â Â Â 5684 ms] +download,{section=”.init_array”,section-size=”4″,total-size=”46462″}
[Â Â Â 5684 ms] ~”Loading section .fini_array, size 0x4 lma 0x9ac\n”
[Â Â Â 5684 ms] +download,{section=”.fini_array”,section-size=”4″,total-size=”46462″}
[Â Â 25269 ms] ~”Start address 0x784, load size 2480\n”
[Â Â 25329 ms] ~”Transfer rate: 110 bytes/sec, 620 bytes/write.\n”
[Â Â 25351 ms] ^done
[Â Â 25445 ms] -data-evaluate-expression “sizeof(void *)”
[Â Â 25453 ms] ^done,value=”4″
[Â Â 25453 ms] -data-evaluate-expression “sizeof(int)”
[Â Â 25454 ms] ^done,value=”4″
[Â Â 25454 ms] -data-evaluate-expression “sizeof(short)”
[Â Â 25454 ms] ^done,value=”2″
[Â Â 25454 ms] -data-evaluate-expression “sizeof(long)”
[Â Â 25454 ms] ^done,value=”4″
[Â Â 25454 ms] -data-evaluate-expression “sizeof(long long)”
[Â Â 25454 ms] ^done,value=”8″
[Â Â 25455 ms] -data-evaluate-expression “sizeof(char)”
[Â Â 25455 ms] ^done,value=”1″
[Â Â 25455 ms] -data-evaluate-expression “sizeof(wchar_t)”
[Â Â 25455 ms] ^error,msg=”No symbol \”wchar_t\” in current context.”
[Â Â 25455 ms] -data-evaluate-expression “sizeof(float)”
[Â Â 25455 ms] ^done,value=”4″
[Â Â 25455 ms] -data-evaluate-expression “sizeof(double)”
[Â Â 25455 ms] ^done,value=”8″
[Â Â 25455 ms] -data-evaluate-expression “sizeof(long double)”
[Â Â 25455 ms] ^done,value=”8″
[Â Â 25512 ms] info target
[Â Â 25517 ms] &”info target\n”
[Â Â 25517 ms] ~”Symbols from \”M:\\CodeRepos\\Zeta-Playground\\TestOCD\\TestOcd\\TestOcd\\Debug\\TestOcd.elf\”.\n”
[Â Â 25517 ms] ~”Remote serial target in gdb-specific protocol:\n”
[Â Â 25517 ms] ~”Debugging a target over a serial line.\n”
[Â Â 25517 ms] ~”\tWhile running this, GDB does not access memory from…\n”
[Â Â 25517 ms] ~”Local exec file:\n”
[Â Â 25518 ms] ~”\t`M:\\CodeRepos\\Zeta-Playground\\TestOCD\\TestOcd\\TestOcd\\Debug\\TestOcd.elf’, file type elf32-littlearm.\n”
[Â Â 25518 ms] ~”\tEntry point: 0x784\n”
[Â Â 25518 ms] ~”\t0x00000000 – 0x000000fc is .isr_vector\n”
[Â Â 25518 ms] ~”\t0x000000fc – 0x000009a8 is .text\n”
[Â Â 25518 ms] ~”\t0x000009a8 – 0x000009ac is .init_array\n”
[Â Â 25518 ms] ~”\t0x000009ac – 0x000009b0 is .fini_array\n”
[Â Â 25518 ms] ~”\t0x02000000 – 0x02000000 is .data\n”
[Â Â 25518 ms] ~”\t0x02000000 – 0x02000024 is .bss\n”
[Â Â 25518 ms] ^done
[Â Â 25537 ms] -data-evaluate-expression “&_estack”
[Â Â 25539 ms] ^done,value=”0x2004000″
[Â Â 25539 ms] -var-create – * “*((void **)0x2003ffc)”
[Â Â 25566 ms] ^done,name=”var1″,numchild=”0″,value=”0x39ddb05d”,type=”void *”,has_more=”0″
[Â Â 25567 ms] -var-assign “var1″ 0x4847923d
[Â Â 25631 ms] ^done,value=”0x4847923d”
[Â Â 25631 ms] -data-evaluate-expression “\*\(\(void\ \*\*\)0x2003ffc\)”
[Â Â 25648 ms] ^done,value=”0x4847923d”
[Â Â 25648 ms] -exec-continue
[Â Â 25648 ms] ~”Note: automatically using hardware breakpoints for read-only addresses.\n”
[Â Â 25661 ms] ^running
[Â Â 25661 ms] *running,thread-id=”all”
[Â Â 47342 ms] ~”\nProgram received signal ”
[Â Â 47342 ms] ~”SIGINT, Interrupt.\n”
[Â Â 47359 ms] ~”0x030002fe in ?? ()\n”
[Â Â 47360 ms] *stopped,reason=”signal-received”,signal-name=”SIGINT”,signal-meaning=”Interrupt”,frame={addr=”0x030002fe”,func=”??”,args=[]},thread-id=”1″,stopped-threads=”all”
[Â Â 47368 ms] -stack-list-frames –thread 1
[Â Â 47544 ms] ^done,stack=[frame={level=”0″,addr=”0x030002fe”,func=”??”},frame={level=”1″,addr=”0xfffffff9″,func=”<signal handler called>”},frame={level=”2″,addr=”0x000001f0″,func=”SystemInit”,file=”C:\\Users\\bukys\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/Common/startup.c”,fullname=”C:\\Users\\bukys\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc\\Common\\startup.c”,line=”7″},frame={level=”3″,addr=”0x000007ac”,func=”Reset_Handler”,file=”C:\\Users\\bukys\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/LPC15xx/StartupFiles/ORIGINAL_cr_startup_lpc15xx.c”,fullname=”C:\\Users\\bukys\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc\\LPC15xx\\StartupFiles\\ORIGINAL_cr_startup_lpc15xx.c”,line=”610″}]
[Â Â 47544 ms] -stack-list-arguments –thread 1 0
[Â Â 47554 ms] ^done,stack-args=[frame={level=”0″,args=[]},frame={level=”1″,args=[]},frame={level=”2″,args=[]},frame={level=”3″,args=[]}]
[Â Â 47588 ms] -stack-list-frames –thread 1
[Â Â 47596 ms] ^done,stack=[frame={level=”0″,addr=”0x030002fe”,func=”??”},frame={level=”1″,addr=”0xfffffff9″,func=”<signal handler called>”},frame={level=”2″,addr=”0x000001f0″,func=”SystemInit”,file=”C:\\Users\\bukys\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/Common/startup.c”,fullname=”C:\\Users\\bukys\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc\\Common\\startup.c”,line=”7″},frame={level=”3″,addr=”0x000007ac”,func=”Reset_Handler”,file=”C:\\Users\\bukys\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/LPC15xx/StartupFiles/ORIGINAL_cr_startup_lpc15xx.c”,fullname=”C:\\Users\\bukys\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc\\LPC15xx\\StartupFiles\\ORIGINAL_cr_startup_lpc15xx.c”,line=”610″}]
[Â Â 47596 ms] -stack-list-arguments –thread 1 0
[Â Â 47606 ms] ^done,stack-args=[frame={level=”0″,args=[]},frame={level=”1″,args=[]},frame={level=”2″,args=[]},frame={level=”3″,args=[]}]
[Â Â 47607 ms] -stack-list-frames –thread 1
[Â Â 47617 ms] ^done,stack=[frame={level=”0″,addr=”0x030002fe”,func=”??”},frame={level=”1″,addr=”0xfffffff9″,func=”<signal handler called>”},frame={level=”2″,addr=”0x000001f0″,func=”SystemInit”,file=”C:\\Users\\bukys\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/Common/startup.c”,fullname=”C:\\Users\\bukys\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc\\Common\\startup.c”,line=”7″},frame={level=”3″,addr=”0x000007ac”,func=”Reset_Handler”,file=”C:\\Users\\bukys\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/LPC15xx/StartupFiles/ORIGINAL_cr_startup_lpc15xx.c”,fullname=”C:\\Users\\bukys\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc\\LPC15xx\\StartupFiles\\ORIGINAL_cr_startup_lpc15xx.c”,line=”610″}]
[Â Â 47617 ms] -stack-list-arguments –thread 1 0
[Â Â 47627 ms] ^done,stack-args=[frame={level=”0″,args=[]},frame={level=”1″,args=[]},frame={level=”2″,args=[]},frame={level=”3″,args=[]}]
[Â Â 49507 ms] -stack-select-frame 0
[Â Â 49517 ms] ^done
[Â Â 49517 ms] -thread-select 1
[Â Â 49527 ms] ^done,new-thread-id=”1″,frame={level=”0″,addr=”0x030002fe”,func=”??”,args=[]}
[Â Â 49528 ms] -break-delete 1
[Â Â 49537 ms] ^done
[Â Â 49537 ms] -exec-next
[Â Â 49537 ms] 001^done
[Â Â 49537 ms] ^error,msg=”Cannot find bounds of current function”
[Â Â 49541 ms] -stack-list-frames –thread 1
[Â Â 49548 ms] ^done,stack=[frame={level=”0″,addr=”0x030002fe”,func=”??”},frame={level=”1″,addr=”0xfffffff9″,func=”<signal handler called>”},frame={level=”2″,addr=”0x000001f0″,func=”SystemInit”,file=”C:\\Users\\bukys\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/Common/startup.c”,fullname=”C:\\Users\\bukys\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc\\Common\\startup.c”,line=”7″},frame={level=”3″,addr=”0x000007ac”,func=”Reset_Handler”,file=”C:\\Users\\bukys\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/LPC15xx/StartupFiles/ORIGINAL_cr_startup_lpc15xx.c”,fullname=”C:\\Users\\bukys\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc\\LPC15xx\\StartupFiles\\ORIGINAL_cr_startup_lpc15xx.c”,line=”610″}]
[Â Â 49548 ms] -stack-list-arguments –thread 1 0
[Â Â 49558 ms] ^done,stack-args=[frame={level=”0″,args=[]},frame={level=”1″,args=[]},frame={level=”2″,args=[]},frame={level=”3″,args=[]}]
[Â Â 49570 ms] -stack-list-frames –thread 1
[Â Â 49580 ms] ^done,stack=[frame={level=”0″,addr=”0x030002fe”,func=”??”},frame={level=”1″,addr=”0xfffffff9″,func=”<signal handler called>”},frame={level=”2″,addr=”0x000001f0″,func=”SystemInit”,file=”C:\\Users\\bukys\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/Common/startup.c”,fullname=”C:\\Users\\bukys\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc\\Common\\startup.c”,line=”7″},frame={level=”3″,addr=”0x000007ac”,func=”Reset_Handler”,file=”C:\\Users\\bukys\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/LPC15xx/StartupFiles/ORIGINAL_cr_startup_lpc15xx.c”,fullname=”C:\\Users\\bukys\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc\\LPC15xx\\StartupFiles\\ORIGINAL_cr_startup_lpc15xx.c”,line=”610″}]
[Â Â 49580 ms] -stack-list-arguments –thread 1 0
[Â Â 49590 ms] ^done,stack-args=[frame={level=”0″,args=[]},frame={level=”1″,args=[]},frame={level=”2″,args=[]},frame={level=”3″,args=[]}]
[Â Â 49591 ms] -stack-list-frames –thread 1
[Â Â 49601 ms] ^done,stack=[frame={level=”0″,addr=”0x030002fe”,func=”??”},frame={level=”1″,addr=”0xfffffff9″,func=”<signal handler called>”},frame={level=”2″,addr=”0x000001f0″,func=”SystemInit”,file=”C:\\Users\\bukys\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/Common/startup.c”,fullname=”C:\\Users\\bukys\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc\\Common\\startup.c”,line=”7″},frame={level=”3″,addr=”0x000007ac”,func=”Reset_Handler”,file=”C:\\Users\\bukys\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/LPC15xx/StartupFiles/ORIGINAL_cr_startup_lpc15xx.c”,fullname=”C:\\Users\\bukys\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc\\LPC15xx\\StartupFiles\\ORIGINAL_cr_startup_lpc15xx.c”,line=”610″}]
[Â Â 49601 ms] -stack-list-arguments –thread 1 0
[Â Â 49611 ms] ^done,stack-args=[frame={level=”0″,args=[]},frame={level=”1″,args=[]},frame={level=”2″,args=[]},frame={level=”3″,args=[]}]
[Â Â 50301 ms] -stack-select-frame 0
[Â Â 50305 ms] ^done
[Â Â 50305 ms] -thread-select 1
[Â Â 50305 ms] ^done,new-thread-id=”1″,frame={level=”0″,addr=”0x030002fe”,func=”??”,args=[]}
[Â Â 50305 ms] -exec-next
[Â Â 50305 ms] 001^done
[Â Â 50305 ms] ^error,msg=”Cannot find bounds of current function”
[Â Â 50308 ms] -stack-list-frames –thread 1
[Â Â 50317 ms] ^done,stack=[frame={level=”0″,addr=”0x030002fe”,func=”??”},frame={level=”1″,addr=”0xfffffff9″,func=”<signal handler called>”},frame={level=”2″,addr=”0x000001f0″,func=”SystemInit”,file=”C:\\Users\\bukys\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/Common/startup.c”,fullname=”C:\\Users\\bukys\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc\\Common\\startup.c”,line=”7″},frame={level=”3″,addr=”0x000007ac”,func=”Reset_Handler”,file=”C:\\Users\\bukys\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/LPC15xx/StartupFiles/ORIGINAL_cr_startup_lpc15xx.c”,fullname=”C:\\Users\\bukys\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc\\LPC15xx\\StartupFiles\\ORIGINAL_cr_startup_lpc15xx.c”,line=”610″}]
[Â Â 50317 ms] -stack-list-arguments –thread 1 0
[Â Â 50327 ms] ^done,stack-args=[frame={level=”0″,args=[]},frame={level=”1″,args=[]},frame={level=”2″,args=[]},frame={level=”3″,args=[]}]
[Â Â 50332 ms] -stack-list-frames –thread 1
[Â Â 50339 ms] ^done,stack=[frame={level=”0″,addr=”0x030002fe”,func=”??”},frame={level=”1″,addr=”0xfffffff9″,func=”<signal handler called>”},frame={level=”2″,addr=”0x000001f0″,func=”SystemInit”,file=”C:\\Users\\bukys\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/Common/startup.c”,fullname=”C:\\Users\\bukys\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc\\Common\\startup.c”,line=”7″},frame={level=”3″,addr=”0x000007ac”,func=”Reset_Handler”,file=”C:\\Users\\bukys\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/LPC15xx/StartupFiles/ORIGINAL_cr_startup_lpc15xx.c”,fullname=”C:\\Users\\bukys\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc\\LPC15xx\\StartupFiles\\ORIGINAL_cr_startup_lpc15xx.c”,line=”610″}]
[Â Â 50339 ms] -stack-list-arguments –thread 1 0
[Â Â 50340 ms] ^done,stack-args=[frame={level=”0″,args=[]},frame={level=”1″,args=[]},frame={level=”2″,args=[]},frame={level=”3″,args=[]}]
[Â Â 50340 ms] -stack-list-frames –thread 1
[Â Â 50351 ms] ^done,stack=[frame={level=”0″,addr=”0x030002fe”,func=”??”},frame={level=”1″,addr=”0xfffffff9″,func=”<signal handler called>”},frame={level=”2″,addr=”0x000001f0″,func=”SystemInit”,file=”C:\\Users\\bukys\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/Common/startup.c”,fullname=”C:\\Users\\bukys\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc\\Common\\startup.c”,line=”7″},frame={level=”3″,addr=”0x000007ac”,func=”Reset_Handler”,file=”C:\\Users\\bukys\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/LPC15xx/StartupFiles/ORIGINAL_cr_startup_lpc15xx.c”,fullname=”C:\\Users\\bukys\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc\\LPC15xx\\StartupFiles\\ORIGINAL_cr_startup_lpc15xx.c”,line=”610″}]
[Â Â 50351 ms] -stack-list-arguments –thread 1 0
[Â Â 50351 ms] ^done,stack-args=[frame={level=”0″,args=[]},frame={level=”1″,args=[]},frame={level=”2″,args=[]},frame={level=”3″,args=[]}]
[Â Â 50771 ms] -stack-select-frame 0
[Â Â 50773 ms] ^done
[Â Â 50773 ms] -thread-select 1
[Â Â 50773 ms] ^done,new-thread-id=”1″,frame={level=”0″,addr=”0x030002fe”,func=”??”,args=[]}
[Â Â 50773 ms] -exec-next
[Â Â 50773 ms] 001^done
[Â Â 50773 ms] ^error,msg=”Cannot find bounds of current function”
[Â Â 50776 ms] -stack-list-frames –thread 1
[Â Â 50785 ms] ^done,stack=[frame={level=”0″,addr=”0x030002fe”,func=”??”},frame={level=”1″,addr=”0xfffffff9″,func=”<signal handler called>”},frame={level=”2″,addr=”0x000001f0″,func=”SystemInit”,file=”C:\\Users\\bukys\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/Common/startup.c”,fullname=”C:\\Users\\bukys\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc\\Common\\startup.c”,line=”7″},frame={level=”3″,addr=”0x000007ac”,func=”Reset_Handler”,file=”C:\\Users\\bukys\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/LPC15xx/StartupFiles/ORIGINAL_cr_startup_lpc15xx.c”,fullname=”C:\\Users\\bukys\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc\\LPC15xx\\StartupFiles\\ORIGINAL_cr_startup_lpc15xx.c”,line=”610″}]
[Â Â 50785 ms] -stack-list-arguments –thread 1 0
[Â Â 50795 ms] ^done,stack-args=[frame={level=”0″,args=[]},frame={level=”1″,args=[]},frame={level=”2″,args=[]},frame={level=”3″,args=[]}]
[Â Â 50800 ms] -stack-list-frames –thread 1
[Â Â 50806 ms] ^done,stack=[frame={level=”0″,addr=”0x030002fe”,func=”??”},frame={level=”1″,addr=”0xfffffff9″,func=”<signal handler called>”},frame={level=”2″,addr=”0x000001f0″,func=”SystemInit”,file=”C:\\Users\\bukys\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/Common/startup.c”,fullname=”C:\\Users\\bukys\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc\\Common\\startup.c”,line=”7″},frame={level=”3″,addr=”0x000007ac”,func=”Reset_Handler”,file=”C:\\Users\\bukys\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/LPC15xx/StartupFiles/ORIGINAL_cr_startup_lpc15xx.c”,fullname=”C:\\Users\\bukys\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc\\LPC15xx\\StartupFiles\\ORIGINAL_cr_startup_lpc15xx.c”,line=”610″}]
[Â Â 50806 ms] -stack-list-arguments –thread 1 0
[Â Â 50816 ms] ^done,stack-args=[frame={level=”0″,args=[]},frame={level=”1″,args=[]},frame={level=”2″,args=[]},frame={level=”3″,args=[]}]
[Â Â 50817 ms] -stack-list-frames –thread 1
[Â Â 50827 ms] ^done,stack=[frame={level=”0″,addr=”0x030002fe”,func=”??”},frame={level=”1″,addr=”0xfffffff9″,func=”<signal handler called>”},frame={level=”2″,addr=”0x000001f0″,func=”SystemInit”,file=”C:\\Users\\bukys\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/Common/startup.c”,fullname=”C:\\Users\\bukys\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc\\Common\\startup.c”,line=”7″},frame={level=”3″,addr=”0x000007ac”,func=”Reset_Handler”,file=”C:\\Users\\bukys\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/LPC15xx/StartupFiles/ORIGINAL_cr_startup_lpc15xx.c”,fullname=”C:\\Users\\bukys\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc\\LPC15xx\\StartupFiles\\ORIGINAL_cr_startup_lpc15xx.c”,line=”610″}]
[Â Â 50827 ms] -stack-list-arguments –thread 1 0
[Â Â 50827 ms] ^done,stack-args=[frame={level=”0″,args=[]},frame={level=”1″,args=[]},frame={level=”2″,args=[]},frame={level=”3″,args=[]}]
[Â Â 51699 ms] -stack-select-frame 0
[Â Â 51706 ms] ^done
[Â Â 51706 ms] -thread-select 1
[Â Â 51706 ms] ^done,new-thread-id=”1″,frame={level=”0″,addr=”0x030002fe”,func=”??”,args=[]}
[Â Â 51706 ms] -exec-next
[Â Â 51706 ms] 001^done
[Â Â 51707 ms] ^error,msg=”Cannot find bounds of current function”
[Â Â 51709 ms] -stack-list-frames –thread 1
[Â Â 51718 ms] ^done,stack=[frame={level=”0″,addr=”0x030002fe”,func=”??”},frame={level=”1″,addr=”0xfffffff9″,func=”<signal handler called>”},frame={level=”2″,addr=”0x000001f0″,func=”SystemInit”,file=”C:\\Users\\bukys\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/Common/startup.c”,fullname=”C:\\Users\\bukys\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc\\Common\\startup.c”,line=”7″},frame={level=”3″,addr=”0x000007ac”,func=”Reset_Handler”,file=”C:\\Users\\bukys\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/LPC15xx/StartupFiles/ORIGINAL_cr_startup_lpc15xx.c”,fullname=”C:\\Users\\bukys\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc\\LPC15xx\\StartupFiles\\ORIGINAL_cr_startup_lpc15xx.c”,line=”610″}]
[Â Â 51718 ms] -stack-list-arguments –thread 1 0
[Â Â 51728 ms] ^done,stack-args=[frame={level=”0″,args=[]},frame={level=”1″,args=[]},frame={level=”2″,args=[]},frame={level=”3″,args=[]}]
[Â Â 51732 ms] -stack-list-frames –thread 1
[Â Â 51739 ms] ^done,stack=[frame={level=”0″,addr=”0x030002fe”,func=”??”},frame={level=”1″,addr=”0xfffffff9″,func=”<signal handler called>”},frame={level=”2″,addr=”0x000001f0″,func=”SystemInit”,file=”C:\\Users\\bukys\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/Common/startup.c”,fullname=”C:\\Users\\bukys\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc\\Common\\startup.c”,line=”7″},frame={level=”3″,addr=”0x000007ac”,func=”Reset_Handler”,file=”C:\\Users\\bukys\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/LPC15xx/StartupFiles/ORIGINAL_cr_startup_lpc15xx.c”,fullname=”C:\\Users\\bukys\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc\\LPC15xx\\StartupFiles\\ORIGINAL_cr_startup_lpc15xx.c”,line=”610″}]
[Â Â 51739 ms] -stack-list-arguments –thread 1 0
[Â Â 51749 ms] ^done,stack-args=[frame={level=”0″,args=[]},frame={level=”1″,args=[]},frame={level=”2″,args=[]},frame={level=”3″,args=[]}]
[Â Â 51750 ms] -stack-list-frames –thread 1
[Â Â 51760 ms] ^done,stack=[frame={level=”0″,addr=”0x030002fe”,func=”??”},frame={level=”1″,addr=”0xfffffff9″,func=”<signal handler called>”},frame={level=”2″,addr=”0x000001f0″,func=”SystemInit”,file=”C:\\Users\\bukys\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/Common/startup.c”,fullname=”C:\\Users\\bukys\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc\\Common\\startup.c”,line=”7″},frame={level=”3″,addr=”0x000007ac”,func=”Reset_Handler”,file=”C:\\Users\\bukys\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc/LPC15xx/StartupFiles/ORIGINAL_cr_startup_lpc15xx.c”,fullname=”C:\\Users\\bukys\\AppData\\Local\\VisualGDB\\EmbeddedBSPs\\arm-eabi\\com.sysprogs.arm.nxp_lpc\\LPC15xx\\StartupFiles\\ORIGINAL_cr_startup_lpc15xx.c”,line=”610″}]
[Â Â 51760 ms] -stack-list-arguments –thread 1 0
[Â Â 51770 ms] ^done,stack-args=[frame={level=”0″,args=[]},frame={level=”1″,args=[]},frame={level=”2″,args=[]},frame={level=”3″,args=[]}]
[Â Â 68393 ms] -gdb-exit
[Â Â 68400 ms] ^exit
[Â Â 68400 ms] =thread-group-exited,id=”i1″JB_Lightcon
ParticipantI see no “Advanced GDB Settings” ir VisualGDB project settings – maybe newer version is required. But this is what I see in “View GDB Log from Last Session”:
C:\SysGCC\arm-eabi\bin\arm-eabi-gdb.exe –interpreter mi M:\CodeRepos\Zeta-Playground\TestOCD\TestOcd\TestOcd/Debug/TestOcd.elf
[Â Â Â Â Â Â 0 ms] -gdb-version
[Â Â Â Â Â 22 ms] =thread-group-added,id=”i1″
[Â Â Â Â Â 22 ms] ~”GNU gdb (GDB) 7.10.1\n”
[Â Â Â Â Â 22 ms] ~”Copyright (C) 2015 Free Software Foundation, Inc.\n”
[     22 ms] ~”License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\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”
[Â Â Â Â Â 23 ms] ~”This GDB was configured as \”–host=i686-pc-mingw32 –target=arm-eabi\”.\nType \”show configuration\” for configuration details.”
[Â Â Â Â Â 23 ms] ~”\nFor bug reporting instructions, please see:\n”
[Â Â Â Â Â 23 ms] ~”<http://www.gnu.org/software/gdb/bugs/>.\n”
[Â Â Â Â Â 23 ms] ~”Find the GDB manual and other documentation resources online at:\n<http://www.gnu.org/software/gdb/documentation/>.\n”
[Â Â Â Â Â 23 ms] ~”For help, type \”help\”.\n”
[Â Â Â Â Â 23 ms] ~”Type \”apropos word\” to search for commands related to \”word\”…\n”
[Â Â Â Â Â 24 ms] ~”Reading symbols from M:\\CodeRepos\\Zeta-Playground\\TestOCD\\TestOcd\\TestOcd/Debug/TestOcd.elf…”
[Â Â Â Â Â 28 ms] ~”done.\n”
[Â Â Â Â Â 29 ms] ~”GNU gdb (GDB) 7.10.1\n”
[Â Â Â Â Â 30 ms] ~”Copyright (C) 2015 Free Software Foundation, Inc.\n”
[     30 ms] ~”License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\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”
[Â Â Â Â Â 30 ms] ~”This GDB was configured as \”–host=i686-pc-mingw32 –target=arm-eabi\”.\nType \”show configuration\” for configuration details.”
[Â Â Â Â Â 31 ms] ~”\nFor bug reporting instructions, please see:\n”
[Â Â Â Â Â 31 ms] ~”<http://www.gnu.org/software/gdb/bugs/>.\n”
[Â Â Â Â Â 31 ms] ~”Find the GDB manual and other documentation resources online at:\n<http://www.gnu.org/software/gdb/documentation/>.\n”
[Â Â Â Â Â 31 ms] ~”For help, type \”help\”.\n”
[Â Â Â Â Â 31 ms] ~”Type \”apropos word\” to search for commands related to \”word\”.\n”
[Â Â Â Â Â 31 ms] ^done
[Â Â Â Â Â 31 ms] -list-features
[Â Â Â Â Â 32 ms] ^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”]
[Â Â Â Â Â 32 ms] -gdb-set stop-on-solib-events 1
[Â Â Â Â Â 32 ms] ^done
[Â Â Â Â Â 32 ms] -gdb-set disassembly-flavor intel
[Â Â Â Â Â 32 ms] ^error,msg=”No symbol \”disassembly\” in current context.”
[Â Â Â Â Â 32 ms] -gdb-set print demangle off
[Â Â Â Â Â 32 ms] ^done
[Â Â Â Â Â 33 ms] -break-insert -f main
[Â Â Â Â Â 43 ms] ^done,bkpt={number=”1″,type=”breakpoint”,disp=”keep”,enabled=”y”,addr=”0x00000928″,func=”main()”,file=”LEDBlink.cpp”,fullname=”M:\\CodeRepos\\Zeta-Playground\\TestOCD\\TestOcd\\TestOcd\\LEDBlink.cpp”,line=”29″,thread-groups=[“i1″],times=”0″,original-location=”main”}
[Â Â Â Â Â 44 ms] set remotetimeout 60
[Â Â Â Â Â 54 ms] &”set remotetimeout 60\n”
[Â Â Â Â Â 54 ms] =cmd-param-changed,param=”remotetimeout”,value=”60″
[Â Â Â Â Â 54 ms] ^done
[Â Â Â Â Â 54 ms] target remote :61889
[Â Â Â Â Â 54 ms] &”target remote :61889\n”
[Â Â Â Â Â 70 ms] ~”Remote debugging using :61889\n”
[Â Â Â 1427 ms] =thread-group-started,id=”i1″,pid=”42000″
[Â Â Â 1427 ms] =thread-created,id=”1″,group-id=”i1″
[Â Â Â 1532 ms] ~”0x030000b8 in ?? ()\n”
[Â Â Â 1532 ms] *stopped,frame={addr=”0x030000b8″,func=”??”,args=[]},thread-id=”1″,stopped-threads=”all”
[Â Â Â 1558 ms] ^done
[Â Â Â 1558 ms] info shared
[Â Â Â 1559 ms] &”info shared\n”
[Â Â Â 1559 ms] ~”No shared libraries loaded at this time.\n”
[Â Â Â 1559 ms] ^done
[Â Â Â 1559 ms] mon halt
[Â Â Â 1570 ms] &”mon halt\n”
[Â Â Â 1614 ms] ^done
[Â Â Â 1614 ms] mon reset init
[Â Â Â 1614 ms] &”mon reset init\n”
[Â Â Â 2689 ms] @”lpc15xx.cpu: target state: halted\n”
[Â Â Â 2689 ms] @”target halted due to debug-request, current mode: Thread \n”
[Â Â Â 2690 ms] @”xPSR: 0x01000000 pc: 0x030000b8 msp: 0x02001fe0\n”
[Â Â Â 2760 ms] ^done
[Â Â Â 2760 ms] load
[Â Â Â 2760 ms] &”load\n”
[Â Â Â 5617 ms] ~”Loading section .isr_vector, size 0xfc lma 0x0\n”
[Â Â Â 5643 ms] +download,{section=”.isr_vector”,section-size=”252″,total-size=”46462″}
[Â Â Â 5643 ms] +download,{section=”.isr_vector”,section-sent=”252″,section-size=”252″,total-sent=”252″,total-size=”46462″}
[Â Â Â 5644 ms] ~”Loading section .text, size 0x8ac lma 0xfc\n”
[Â Â Â 5644 ms] +download,{section=”.text”,section-size=”2220″,total-size=”46462″}
[Â Â Â 5644 ms] ~”Loading section .init_array, size 0x4 lma 0x9a8\n”
[Â Â Â 5644 ms] +download,{section=”.init_array”,section-size=”4″,total-size=”46462″}
[Â Â Â 5644 ms] ~”Loading section .fini_array, size 0x4 lma 0x9ac\n”
[Â Â Â 5644 ms] +download,{section=”.fini_array”,section-size=”4″,total-size=”46462″}
[Â Â 25168 ms] ~”Start address 0x784, load size 2480\n”
[Â Â 25229 ms] ~”Transfer rate: 110 bytes/sec, 620 bytes/write.\n”
[Â Â 25251 ms] ^done
[Â Â 25287 ms] -data-evaluate-expression “sizeof(void *)”
[Â Â 25291 ms] ^done,value=”4″
[Â Â 25291 ms] -data-evaluate-expression “sizeof(int)”
[Â Â 25291 ms] ^done,value=”4″
[Â Â 25292 ms] -data-evaluate-expression “sizeof(short)”
[Â Â 25292 ms] ^done,value=”2″
[Â Â 25292 ms] -data-evaluate-expression “sizeof(long)”
[Â Â 25292 ms] ^done,value=”4″
[Â Â 25292 ms] -data-evaluate-expression “sizeof(long long)”
[Â Â 25293 ms] ^done,value=”8″
[Â Â 25293 ms] -data-evaluate-expression “sizeof(char)”
[Â Â 25293 ms] ^done,value=”1″
[Â Â 25293 ms] -data-evaluate-expression “sizeof(wchar_t)”
[Â Â 25293 ms] ^error,msg=”No symbol \”wchar_t\” in current context.”
[Â Â 25293 ms] -data-evaluate-expression “sizeof(float)”
[Â Â 25294 ms] ^done,value=”4″
[Â Â 25294 ms] -data-evaluate-expression “sizeof(double)”
[Â Â 25294 ms] ^done,value=”8″
[Â Â 25294 ms] -data-evaluate-expression “sizeof(long double)”
[Â Â 25294 ms] ^done,value=”8″
[Â Â 25343 ms] info target
[Â Â 25344 ms] &”info target\n”
[Â Â 25344 ms] ~”Symbols from \”M:\\CodeRepos\\Zeta-Playground\\TestOCD\\TestOcd\\TestOcd\\Debug\\TestOcd.elf\”.\n”
[Â Â 25344 ms] ~”Remote serial target in gdb-specific protocol:\n”
[Â Â 25345 ms] ~”Debugging a target over a serial line.\n”
[Â Â 25345 ms] ~”\tWhile running this, GDB does not access memory from…\n”
[Â Â 25345 ms] ~”Local exec file:\n”
[Â Â 25345 ms] ~”\t`M:\\CodeRepos\\Zeta-Playground\\TestOCD\\TestOcd\\TestOcd\\Debug\\TestOcd.elf’, file type elf32-littlearm.\n”
[Â Â 25345 ms] ~”\tEntry point: 0x784\n”
[Â Â 25345 ms] ~”\t0x00000000 – 0x000000fc is .isr_vector\n”
[Â Â 25345 ms] ~”\t0x000000fc – 0x000009a8 is .text\n”
[Â Â 25345 ms] ~”\t0x000009a8 – 0x000009ac is .init_array\n”
[Â Â 25345 ms] ~”\t0x000009ac – 0x000009b0 is .fini_array\n”
[Â Â 25346 ms] ~”\t0x02000000 – 0x02000000 is .data\n”
[Â Â 25346 ms] ~”\t0x02000000 – 0x02000024 is .bss\n”
[Â Â 25346 ms] ^done
[Â Â 25370 ms] -data-evaluate-expression “&_estack”
[Â Â 25376 ms] ^done,value=”0x2009000″
[Â Â 25382 ms] -var-create – * “*((void **)0x2008ffc)”
[Â Â 25413 ms] ^done,name=”var1″,numchild=”0″,value=”0x0 <g_pfnVectors>”,type=”void *”,has_more=”0″
[Â Â 25413 ms] -var-assign “var1″ 0x7253f8c4
[Â Â 25443 ms] ^done,value=”0x7253f8c4”
[Â Â 25444 ms] -data-evaluate-expression “\*\(\(void\ \*\*\)0x2008ffc\)”
[Â Â 25469 ms] ^done,value=”0x0 <g_pfnVectors>”
[Â Â 28585 ms] -exec-continue
[Â Â 28587 ms] ~”Note: automatically using hardware breakpoints for read-only addresses.\n”
[Â Â 28609 ms] ^running
[Â Â 28610 ms] *running,thread-id=”all”
[Â 308602 ms] ~”\nProgram received signal ”
[Â 308602 ms] ~”SIGINT, Interrupt.\n”
[Â 308620 ms] ~”0x030002fe in ?? ()\n”
[Â 308620 ms] *stopped,reason=”signal-received”,signal-name=”SIGINT”,signal-meaning=”Interrupt”,frame={addr=”0x030002fe”,func=”??”,args=[]},thread-id=”1″,stopped-threads=”all”
[Â 308620 ms] -gdb-exit
[Â 308630 ms] ^exit
[Â 308634 ms] =thread-group-exited,id=”iJB_Lightcon
ParticipantLog:
<…>
——————- Memory utilization report ——————-
Used FLASH: 2480 bytes out of 256KB (0%)
Used RAM: 0 bytes out of 36KB (0%)OpenOCD view output:
Open On-Chip Debugger 0.9.0 (2016-10-14) [https://github.com/sysprogs/openocd]
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
adapter speed: 3000 kHz
Info : FTDI SWD mode enabled
adapter speed: 1000 kHz
adapter speed: 10 kHz
adapter_nsrst_delay: 200
cortex_m reset_config sysresetreq
Info : clock speed 10 kHz
Info : SWD DPIDR 0x2ba01477
Info : lpc15xx.cpu: hardware has 6 breakpoints, 4 watchpoints
lpc15xx.cpu: target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x030000b8 msp: 0x02001fe0
VisualGDB_OpenOCD_Ready
Info : accepting ‘gdb’ connection on tcp/61889
lpc15xx.cpu: target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x030000b8 msp: 0x02001fe0
lpc15xx.cpu: target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x030000b8 msp: 0x02001fe0
Warn : Verification will fail since checksum in image (0x00000000) to be written to flash is different from calcula
ted vector checksum (0xfdff417a).
Warn : To remove this warning modify build tools on developer PC to inject correct LPC vector checksum.
lpc15xx.cpu: target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x030000b8 msp: 0x02001fe0Anything more that could help?
-
AuthorPosts