ESP8266 and debugging with SEGGER j-link

Sysprogs forums Forums VisualGDB ESP8266 and debugging with SEGGER j-link

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #7175
    Dr.Nokill
    Participant

    Hello,

     

    I’m trying to flash/debug an ESP8266 ESP-07 module with a 4 mbit flash. I use the FreeRTOS Webserver example, press debug and the following error is shown:
    <pre style=”padding-left: 30px;”>C:\SysGCC\esp8266\python27\python.exe “C:\SysGCC\esp8266\esp8266-bsp\esptool.py” elf2image “C:\Users\DrNok\Documents\embedded\ESP8266\EmbeddedProject4\EmbeddedProject4/Debug/EmbeddedProject4.elf” –flash_freq 40m –flash_mode qio –flash_size 2m
    mon reset halt
    &”mon reset halt\n”
    &”\”monitor\” command not supported by this target.\n”
    ^error,msg=”\”monitor\” command not supported by this target.”
    -exec-next-instruction
    001^done
    ^error,msg=”The program is not being run.”
    set $com_sysprogs_esp8266_wdcfg=0
    &”set $com_sysprogs_esp8266_wdcfg=0\n”
    ^done
    set $vecbase=0x40000000
    &”set $vecbase=0x40000000\n”
    &”No registers.\n”
    ^error,msg=”No registers.”
    set *(0x3fffc200)=0
    &”set *(0x3fffc200)=0\n”
    &”Cannot access memory at address 0x3fffc200\n”
    ^error,msg=”Cannot access memory at address 0x3fffc200″
    set $ccompare=0
    &”set $ccompare=0\n”
    ^done
    set $intclear=-1
    &”set $intclear=-1\n”
    &”No registers.\n”
    ^error,msg=”No registers.”
    set $intenable=0
    &”set $intenable=0\n”
    &”No registers.\n”
    ^error,msg=”No registers.”
    print *((int *)0x60000900)
    &”print *((int *)0x60000900)\n”
    &”Cannot access memory at address 0x60000900\n”
    ^error,msg=”Cannot access memory at address 0x60000900″
    set *((int *)0x60000900)=0
    &”set *((int *)0x60000900)=0\n”
    &”Cannot access memory at address 0x60000900\n”
    ^error,msg=”Cannot access memory at address 0x60000900″
    restore C:/SysGCC/esp8266/esp8266-bsp/sysprogs/flashprog/ESP8266FlashProg.bin binary 0x40100000 0 0x1a4
    &”restore C:/SysGCC/esp8266/esp8266-bsp/sysprogs/flashprog/ESP8266FlashProg.bin binary 0x40100000 0 0x1a4\n”
    &”You can’t do that without a process to debug.\n”
    ^error,msg=”You can’t do that without a process to debug.”
    flushregs
    &”flushregs\n”
    ~”Register cache flushed.\n”
    ^done
    set $epc2=0x40100074
    &”set $epc2=0x40100074\n”
    &”No registers.\n”
    ^error,msg=”No registers.”
    set $ps=0x20
    &”set $ps=0x20\n”
    &”No registers.\n”
    ^error,msg=”No registers.”
    set $sp=0x3fffc000
    &”set $sp=0x3fffc000\n”
    &”No registers.\n”
    ^error,msg=”No registers.”
    set *((unsigned *)0x3fff8008)=0
    &”set *((unsigned *)0x3fff8008)=0\n”
    &”Cannot access memory at address 0x3fff8008\n”
    ^error,msg=”Cannot access memory at address 0x3fff8008″
    set *((unsigned *)0x3fff800c)=4096
    &”set *((unsigned *)0x3fff800c)=4096\n”
    &”Cannot access memory at address 0x3fff800c\n”
    ^error,msg=”Cannot access memory at address 0x3fff800c”
    set *((unsigned *)0x3fff8010)=4096
    &”set *((unsigned *)0x3fff8010)=4096\n”
    &”Cannot access memory at address 0x3fff8010\n”
    ^error,msg=”Cannot access memory at address 0x3fff8010″
    set *((unsigned *)0x3fff8014)=4294967295
    &”set *((unsigned *)0x3fff8014)=4294967295\n”
    &”Cannot access memory at address 0x3fff8014\n”
    ^error,msg=”Cannot access memory at address 0x3fff8014″
    set $intclear=-1
    &”set $intclear=-1\n”
    &”No registers.\n”
    ^error,msg=”No registers.”
    set $intenable=0
    &”set $intenable=0\n”
    &”No registers.\n”
    ^error,msg=”No registers.”
    -exec-continue
    ^error,msg=”The program is not being run.”
    -data-evaluate-expression “\*\(\(unsigned\ \*\)0x3fff8014\)”
    ^error,msg=”Cannot access memory at address 0x3fff8014″
    mon reset halt
    &”mon reset halt\n”
    &”\”monitor\” command not supported by this target.\n”
    -exec-next-instruction
    ^error,msg=”\”monitor\” command not supported by this target.”
    001^done
    ^error,msg=”The program is not being run.”
    set $com_sysprogs_esp8266_wdcfg=0
    &”set $com_sysprogs_esp8266_wdcfg=0\n”
    ^done
    set $vecbase=0x40000000
    &”set $vecbase=0x40000000\n”
    &”No registers.\n”
    ^error,msg=”No registers.”
    set *(0x3fffc200)=0
    &”set *(0x3fffc200)=0\n”
    &”Cannot access memory at address 0x3fffc200\n”
    ^error,msg=”Cannot access memory at address 0x3fffc200″
    set $ccompare=0
    &”set $ccompare=0\n”
    ^done
    set $intclear=-1
    &”set $intclear=-1\n”
    &”No registers.\n”
    ^error,msg=”No registers.”
    set $intenable=0
    &”set $intenable=0\n”
    &”No registers.\n”
    ^error,msg=”No registers.”
    print *((int *)0x60000900)
    &”print *((int *)0x60000900)\n”
    &”Cannot access memory at address 0x60000900\n”
    ^error,msg=”Cannot access memory at address 0x60000900″
    set *((int *)0x60000900)=0
    &”set *((int *)0x60000900)=0\n”
    &”Cannot access memory at address 0x60000900\n”
    ^error,msg=”Cannot access memory at address 0x60000900″
    restore C:/SysGCC/esp8266/esp8266-bsp/sysprogs/flashprog/ESP8266FlashProg.bin binary 0x40100000 0 0x1a4
    &”restore C:/SysGCC/esp8266/esp8266-bsp/sysprogs/flashprog/ESP8266FlashProg.bin binary 0x40100000 0 0x1a4\n”
    &”You can’t do that without a process to debug.\n”
    ^error,msg=”You can’t do that without a process to debug.”
    flushregs
    &”flushregs\n”
    ~”Register cache flushed.\n”
    ^done
    set $epc2=0x40100074
    &”set $epc2=0x40100074\n”
    &”No registers.\n”
    ^error,msg=”No registers.”
    set $ps=0x20
    &”set $ps=0x20\n”
    &”No registers.\n”
    ^error,msg=”No registers.”
    set $sp=0x3fffc000
    &”set $sp=0x3fffc000\n”
    &”No registers.\n”
    ^error,msg=”No registers.”
    set *((unsigned *)0x3fff8008)=0
    &”set *((unsigned *)0x3fff8008)=0\n”
    &”Cannot access memory at address 0x3fff8008\n”
    ^error,msg=”Cannot access memory at address 0x3fff8008″
    set *((unsigned *)0x3fff800c)=4096
    &”set *((unsigned *)0x3fff800c)=4096\n”
    &”Cannot access memory at address 0x3fff800c\n”
    ^error,msg=”Cannot access memory at address 0x3fff800c”
    set *((unsigned *)0x3fff8010)=4096
    &”set *((unsigned *)0x3fff8010)=4096\n”
    &”Cannot access memory at address 0x3fff8010\n”
    ^error,msg=”Cannot access memory at address 0x3fff8010″
    set *((unsigned *)0x3fff8014)=4294967295
    &”set *((unsigned *)0x3fff8014)=4294967295\n”
    &”Cannot access memory at address 0x3fff8014\n”
    ^error,msg=”Cannot access memory at address 0x3fff8014″
    set $intclear=-1
    &”set $intclear=-1\n”
    &”No registers.\n”
    ^error,msg=”No registers.”
    set $intenable=0
    &”set $intenable=0\n”
    &”No registers.\n”
    ^error,msg=”No registers.”
    -exec-continue
    ^error,msg=”The program is not being run.”
    -data-evaluate-expression “\*\(\(unsigned\ \*\)0x3fff8014\)”
    ^error,msg=”Cannot access memory at address 0x3fff8014″
    mon reset halt
    &”mon reset halt\n”
    &”\”monitor\” command not supported by this target.\n”
    ^error,msg=”\”monitor\” command not supported by this target.”
    -exec-next-instruction
    001^done
    ^error,msg=”The program is not being run.”
    set $com_sysprogs_esp8266_wdcfg=0
    &”set $com_sysprogs_esp8266_wdcfg=0\n”
    ^done
    set $vecbase=0x40000000
    &”set $vecbase=0x40000000\n”
    &”No registers.\n”
    ^error,msg=”No registers.”
    set *(0x3fffc200)=0
    &”set *(0x3fffc200)=0\n”
    &”Cannot access memory at address 0x3fffc200\n”
    ^error,msg=”Cannot access memory at address 0x3fffc200″
    set $ccompare=0
    &”set $ccompare=0\n”
    ^done
    set $intclear=-1
    &”set $intclear=-1\n”
    &”No registers.\n”
    ^error,msg=”No registers.”
    set $intenable=0
    &”set $intenable=0\n”
    &”No registers.\n”
    ^error,msg=”No registers.”
    print *((int *)0x60000900)
    &”print *((int *)0x60000900)\n”
    &”Cannot access memory at address 0x60000900\n”
    ^error,msg=”Cannot access memory at address 0x60000900″
    set *((int *)0x60000900)=0
    &”set *((int *)0x60000900)=0\n”
    &”Cannot access memory at address 0x60000900\n”
    ^error,msg=”Cannot access memory at address 0x60000900″
    restore C:/SysGCC/esp8266/esp8266-bsp/sysprogs/flashprog/ESP8266FlashProg.bin binary 0x40100000 0 0x1a4
    &”restore C:/SysGCC/esp8266/esp8266-bsp/sysprogs/flashprog/ESP8266FlashProg.bin binary 0x40100000 0 0x1a4\n”
    &”You can’t do that without a process to debug.\n”
    ^error,msg=”You can’t do that without a process to debug.”
    flushregs
    &”flushregs\n”
    ~”Register cache flushed.\n”
    ^done
    set $epc2=0x40100074
    &”set $epc2=0x40100074\n”
    &”No registers.\n”
    ^error,msg=”No registers.”
    set $ps=0x20
    &”set $ps=0x20\n”
    &”No registers.\n”
    ^error,msg=”No registers.”
    set $sp=0x3fffc000
    &”set $sp=0x3fffc000\n”
    &”No registers.\n”
    ^error,msg=”No registers.”
    set *((unsigned *)0x3fff8008)=0
    &”set *((unsigned *)0x3fff8008)=0\n”
    &”Cannot access memory at address 0x3fff8008\n”
    ^error,msg=”Cannot access memory at address 0x3fff8008″
    set *((unsigned *)0x3fff800c)=4096
    &”set *((unsigned *)0x3fff800c)=4096\n”
    &”Cannot access memory at address 0x3fff800c\n”
    ^error,msg=”Cannot access memory at address 0x3fff800c”
    set *((unsigned *)0x3fff8010)=4096
    &”set *((unsigned *)0x3fff8010)=4096\n”
    &”Cannot access memory at address 0x3fff8010\n”
    ^error,msg=”Cannot access memory at address 0x3fff8010″
    set *((unsigned *)0x3fff8014)=4294967295
    &”set *((unsigned *)0x3fff8014)=4294967295\n”
    &”Cannot access memory at address 0x3fff8014\n”
    ^error,msg=”Cannot access memory at address 0x3fff8014″
    set $intclear=-1
    &”set $intclear=-1\n”
    &”No registers.\n”
    ^error,msg=”No registers.”
    set $intenable=0
    &”set $intenable=0\n”
    &”No registers.\n”
    ^error,msg=”No registers.”
    -exec-continue
    ^error,msg=”The program is not being run.”
    -data-evaluate-expression “\*\(\(unsigned\ \*\)0x3fff8014\)”
    ^error,msg=”Cannot access memory at address 0x3fff8014″
     

    Then another error Window is shown:
    <pre style=”padding-left: 30px;”>(gdb begin)
    VisualGDB is licensed to Martin Kunz
    C:\SysGCC\esp8266\bin\xtensa-lx106-elf-gdb.exe –interpreter mi C:\Users\DrNok\Documents\embedded\ESP8266\EmbeddedProject4\EmbeddedProject4/Debug/EmbeddedProject4.elf
    -list-features
    =thread-group-added,id=”i1″
    ~”GNU gdb (GDB) 7.5.1\n”
    ~”Copyright (C) 2012 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”
    <pre style=”padding-left: 30px;”>
    ~”This GDB was configured as \”–host=i686-pc-mingw32 –target=xtensa-lx106-elf\”.\nFor bug reporting instructions, please see:\n”
    <pre style=”padding-left: 30px;”>
    ~”<http://www.gnu.org/software/gdb/bugs/>&#8230;\n”
    ~”Reading symbols from C:\\Users\\DrNok\\Documents\\embedded\\ESP8266\\EmbeddedProject4\\EmbeddedProject4\\Debug\\EmbeddedProject4.elf…”
    ~”done.\n”
    ^done,features=[“frozen-varobjs”,”pending-breakpoints”,”thread-info”,”data-read-memory-bytes”,”breakpoint-notifications”,”ada-task-info”]
    -gdb-set stop-on-solib-events 1
    ^done
    -gdb-set disassembly-flavor intel
    ^error,msg=”No symbol \”disassembly\” in current context.”
    -gdb-set print demangle off
    ^done
    -gdb-version
    ~”GNU gdb (GDB) 7.5.1\n”
    ~”Copyright (C) 2012 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”
    <pre style=”padding-left: 30px;”>
    ~”This GDB was configured as \”–host=i686-pc-mingw32 –target=xtensa-lx106-elf\”.\nFor bug reporting instructions, please see:\n”
    <pre style=”padding-left: 30px;”>
    ~”<http://www.gnu.org/software/gdb/bugs/&gt;.\n”
    ^done
    -break-insert -f main
    &”Function \”main\” not defined.\n”
    ^done,bkpt={number=”1″,type=”breakpoint”,disp=”keep”,enabled=”y”,addr=”<PENDING>”,pending=”main”,times=”0″,original-location=”main”}
    Warning: could not set a breakpoint on main. ‘Step into new instance’ will not work.
    -break-delete 1
    ^done
    target remote :3333
    &”target remote :3333\n”
    &”:3333: Ein Verbindungsversuch ist fehlgeschlagen, da die Gegenstelle nach einer bestimmten Zeitspanne nicht richtig reagiert hat, oder die hergestellte Verbindung war fehlerhaft, da der verbundene Host nicht reagiert hat.\n”
    ^error,msg=”:3333: Ein Verbindungsversuch ist fehlgeschlagen, da die Gegenstelle nach einer bestimmten Zeitspanne nicht richtig reagiert hat, oder die hergestellte Verbindung war fehlerhaft, da der verbundene Host nicht reagiert hat.”
    mon reset halt
    &”mon reset halt\n”
    &”\”monitor\” command not supported by this target.\n”
    ^error,msg=”\”monitor\” command not supported by this target.”
    -exec-next-instruction
    001^done
    ^error,msg=”The program is not being run.”
    set $com_sysprogs_esp8266_wdcfg=0
    &”set $com_sysprogs_esp8266_wdcfg=0\n”
    ^done
    set $vecbase=0x40000000
    &”set $vecbase=0x40000000\n”
    &”No registers.\n”
    ^error,msg=”No registers.”
    set *(0x3fffc200)=0
    &”set *(0x3fffc200)=0\n”
    &”Cannot access memory at address 0x3fffc200\n”
    ^error,msg=”Cannot access memory at address 0x3fffc200″
    set $ccompare=0
    &”set $ccompare=0\n”
    ^done
    set $intclear=-1
    &”set $intclear=-1\n”
    &”No registers.\n”
    ^error,msg=”No registers.”
    set $intenable=0
    &”set $intenable=0\n”
    &”No registers.\n”
    ^error,msg=”No registers.”
    print *((int *)0x60000900)
    &”print *((int *)0x60000900)\n”
    &”Cannot access memory at address 0x60000900\n”
    ^error,msg=”Cannot access memory at address 0x60000900″
    set *((int *)0x60000900)=0
    &”set *((int *)0x60000900)=0\n”
    &”Cannot access memory at address 0x60000900\n”
    ^error,msg=”Cannot access memory at address 0x60000900″
    restore C:/SysGCC/esp8266/esp8266-bsp/sysprogs/flashprog/ESP8266FlashProg.bin binary 0x40100000 0 0x1a4
    &”restore C:/SysGCC/esp8266/esp8266-bsp/sysprogs/flashprog/ESP8266FlashProg.bin binary 0x40100000 0 0x1a4\n”
    &”You can’t do that without a process to debug.\n”
    ^error,msg=”You can’t do that without a process to debug.”
    flushregs
    &”flushregs\n”
    ~”Register cache flushed.\n”
    ^done
    set $epc2=0x40100074
    &”set $epc2=0x40100074\n”
    &”No registers.\n”
    ^error,msg=”No registers.”
    set $ps=0x20
    &”set $ps=0x20\n”
    &”No registers.\n”
    ^error,msg=”No registers.”
    set $sp=0x3fffc000
    &”set $sp=0x3fffc000\n”
    &”No registers.\n”
    ^error,msg=”No registers.”
    set *((unsigned *)0x3fff8008)=0
    &”set *((unsigned *)0x3fff8008)=0\n”
    &”Cannot access memory at address 0x3fff8008\n”
    ^error,msg=”Cannot access memory at address 0x3fff8008″
    set *((unsigned *)0x3fff800c)=4096
    &”set *((unsigned *)0x3fff800c)=4096\n”
    &”Cannot access memory at address 0x3fff800c\n”
    ^error,msg=”Cannot access memory at address 0x3fff800c”
    set *((unsigned *)0x3fff8010)=4096
    &”set *((unsigned *)0x3fff8010)=4096\n”
    &”Cannot access memory at address 0x3fff8010\n”
    ^error,msg=”Cannot access memory at address 0x3fff8010″
    set *((unsigned *)0x3fff8014)=4294967295
    &”set *((unsigned *)0x3fff8014)=4294967295\n”
    &”Cannot access memory at address 0x3fff8014\n”
    ^error,msg=”Cannot access memory at address 0x3fff8014″
    set $intclear=-1
    &”set $intclear=-1\n”
    &”No registers.\n”
    ^error,msg=”No registers.”
    set $intenable=0
    &”set $intenable=0\n”
    &”No registers.\n”
    ^error,msg=”No registers.”
    -exec-continue
    ^error,msg=”The program is not being run.”
    -data-evaluate-expression “\*\(\(unsigned\ \*\)0x3fff8014\)”
    ^error,msg=”Cannot access memory at address 0x3fff8014″
    mon reset halt
    &”mon reset halt\n”
    &”\”monitor\” command not supported by this target.\n”
    ^error,msg=”\”monitor\” command not supported by this target.”
    -exec-next-instruction
    001^done
    ^error,msg=”The program is not being run.”
    set $com_sysprogs_esp8266_wdcfg=0
    &”set $com_sysprogs_esp8266_wdcfg=0\n”
    ^done
    set $vecbase=0x40000000
    &”set $vecbase=0x40000000\n”
    &”No registers.\n”
    ^error,msg=”No registers.”
    set *(0x3fffc200)=0
    &”set *(0x3fffc200)=0\n”
    &”Cannot access memory at address 0x3fffc200\n”
    ^error,msg=”Cannot access memory at address 0x3fffc200″
    set $ccompare=0
    &”set $ccompare=0\n”
    ^done
    set $intclear=-1
    &”set $intclear=-1\n”
    &”No registers.\n”
    ^error,msg=”No registers.”
    set $intenable=0
    &”set $intenable=0\n”
    &”No registers.\n”
    ^error,msg=”No registers.”
    print *((int *)0x60000900)
    &”print *((int *)0x60000900)\n”
    &”Cannot access memory at address 0x60000900\n”
    ^error,msg=”Cannot access memory at address 0x60000900″
    set *((int *)0x60000900)=0
    &”set *((int *)0x60000900)=0\n”
    &”Cannot access memory at address 0x60000900\n”
    ^error,msg=”Cannot access memory at address 0x60000900″
    restore C:/SysGCC/esp8266/esp8266-bsp/sysprogs/flashprog/ESP8266FlashProg.bin binary 0x40100000 0 0x1a4
    &”restore C:/SysGCC/esp8266/esp8266-bsp/sysprogs/flashprog/ESP8266FlashProg.bin binary 0x40100000 0 0x1a4\n”
    &”You can’t do that without a process to debug.\n”
    ^error,msg=”You can’t do that without a process to debug.”
    flushregs
    &”flushregs\n”
    ~”Register cache flushed.\n”
    ^done
    set $epc2=0x40100074
    &”set $epc2=0x40100074\n”
    &”No registers.\n”
    ^error,msg=”No registers.”
    set $ps=0x20
    &”set $ps=0x20\n”
    &”No registers.\n”
    ^error,msg=”No registers.”
    set $sp=0x3fffc000
    &”set $sp=0x3fffc000\n”
    &”No registers.\n”
    ^error,msg=”No registers.”
    set *((unsigned *)0x3fff8008)=0
    &”set *((unsigned *)0x3fff8008)=0\n”
    &”Cannot access memory at address 0x3fff8008\n”
    ^error,msg=”Cannot access memory at address 0x3fff8008″
    set *((unsigned *)0x3fff800c)=4096
    &”set *((unsigned *)0x3fff800c)=4096\n”
    &”Cannot access memory at address 0x3fff800c\n”
    ^error,msg=”Cannot access memory at address 0x3fff800c”
    set *((unsigned *)0x3fff8010)=4096
    &”set *((unsigned *)0x3fff8010)=4096\n”
    &”Cannot access memory at address 0x3fff8010\n”
    ^error,msg=”Cannot access memory at address 0x3fff8010″
    set *((unsigned *)0x3fff8014)=4294967295
    &”set *((unsigned *)0x3fff8014)=4294967295\n”
    &”Cannot access memory at address 0x3fff8014\n”
    ^error,msg=”Cannot access memory at address 0x3fff8014″
    set $intclear=-1
    &”set $intclear=-1\n”
    &”No registers.\n”
    ^error,msg=”No registers.”
    set $intenable=0
    &”set $intenable=0\n”
    &”No registers.\n”
    ^error,msg=”No registers.”
    -exec-continue
    ^error,msg=”The program is not being run.”
    -data-evaluate-expression “\*\(\(unsigned\ \*\)0x3fff8014\)”
    ^error,msg=”Cannot access memory at address 0x3fff8014″
    mon reset halt
    &”mon reset halt\n”
    &”\”monitor\” command not supported by this target.\n”
    ^error,msg=”\”monitor\” command not supported by this target.”
    -exec-next-instruction
    001^done
    ^error,msg=”The program is not being run.”
    set $com_sysprogs_esp8266_wdcfg=0
    &”set $com_sysprogs_esp8266_wdcfg=0\n”
    ^done
    set $vecbase=0x40000000
    &”set $vecbase=0x40000000\n”
    &”No registers.\n”
    ^error,msg=”No registers.”
    set *(0x3fffc200)=0
    &”set *(0x3fffc200)=0\n”
    &”Cannot access memory at address 0x3fffc200\n”
    ^error,msg=”Cannot access memory at address 0x3fffc200″
    set $ccompare=0
    &”set $ccompare=0\n”
    ^done
    set $intclear=-1
    &”set $intclear=-1\n”
    &”No registers.\n”
    ^error,msg=”No registers.”
    set $intenable=0
    &”set $intenable=0\n”
    &”No registers.\n”
    ^error,msg=”No registers.”
    print *((int *)0x60000900)
    &”print *((int *)0x60000900)\n”
    &”Cannot access memory at address 0x60000900\n”
    ^error,msg=”Cannot access memory at address 0x60000900″
    set *((int *)0x60000900)=0
    &”set *((int *)0x60000900)=0\n”
    &”Cannot access memory at address 0x60000900\n”
    ^error,msg=”Cannot access memory at address 0x60000900″
    restore C:/SysGCC/esp8266/esp8266-bsp/sysprogs/flashprog/ESP8266FlashProg.bin binary 0x40100000 0 0x1a4
    &”restore C:/SysGCC/esp8266/esp8266-bsp/sysprogs/flashprog/ESP8266FlashProg.bin binary 0x40100000 0 0x1a4\n”
    &”You can’t do that without a process to debug.\n”
    ^error,msg=”You can’t do that without a process to debug.”
    flushregs
    &”flushregs\n”
    ~”Register cache flushed.\n”
    ^done
    set $epc2=0x40100074
    &”set $epc2=0x40100074\n”
    &”No registers.\n”
    ^error,msg=”No registers.”
    set $ps=0x20
    &”set $ps=0x20\n”
    &”No registers.\n”
    ^error,msg=”No registers.”
    set $sp=0x3fffc000
    &”set $sp=0x3fffc000\n”
    &”No registers.\n”
    ^error,msg=”No registers.”
    set *((unsigned *)0x3fff8008)=0
    &”set *((unsigned *)0x3fff8008)=0\n”
    &”Cannot access memory at address 0x3fff8008\n”
    ^error,msg=”Cannot access memory at address 0x3fff8008″
    set *((unsigned *)0x3fff800c)=4096
    &”set *((unsigned *)0x3fff800c)=4096\n”
    &”Cannot access memory at address 0x3fff800c\n”
    ^error,msg=”Cannot access memory at address 0x3fff800c”
    set *((unsigned *)0x3fff8010)=4096
    &”set *((unsigned *)0x3fff8010)=4096\n”
    &”Cannot access memory at address 0x3fff8010\n”
    ^error,msg=”Cannot access memory at address 0x3fff8010″
    set *((unsigned *)0x3fff8014)=4294967295
    &”set *((unsigned *)0x3fff8014)=4294967295\n”
    &”Cannot access memory at address 0x3fff8014\n”
    ^error,msg=”Cannot access memory at address 0x3fff8014″
    set $intclear=-1
    &”set $intclear=-1\n”
    &”No registers.\n”
    ^error,msg=”No registers.”
    set $intenable=0
    &”set $intenable=0\n”
    &”No registers.\n”
    ^error,msg=”No registers.”
    -exec-continue
    ^error,msg=”The program is not being run.”
    -data-evaluate-expression “\*\(\(unsigned\ \*\)0x3fff8014\)”
    ^error,msg=”Cannot access memory at address 0x3fff8014″
    mon xtensa_no_interrupts_during_steps on
    &”mon xtensa_no_interrupts_during_steps on\n”
    &”\”monitor\” command not supported by this target.\n”
    ^error,msg=”\”monitor\” command not supported by this target.”
    mon esp8266_autofeed_watchdog on
    &”mon esp8266_autofeed_watchdog on\n”
    &”\”monitor\” command not supported by this target.\n”
    ^error,msg=”\”monitor\” command not supported by this target.”
    info target
    &”info target\n”
    ~”Symbols from \”C:\\Users\\DrNok\\Documents\\embedded\\ESP8266\\EmbeddedProject4\\EmbeddedProject4\\Debug\\EmbeddedProject4.elf\”.\n”
    ~”Local exec file:\n”
    ~”\t`C:\\Users\\DrNok\\Documents\\embedded\\ESP8266\\EmbeddedProject4\\EmbeddedProject4\\Debug\\EmbeddedProject4.elf’, file type elf32-xtensa-le.\n”
    ~”\tEntry point: 0x40100004\n”
    ~”\t0x3ffe8000 – 0x3ffe839a is .data\n”
    ~”\t0x3ffe83a0 – 0x3ffe867c is .rodata\n”
    ~”\t0x3ffe8680 – 0x3fff0148 is .bss\n”
    ~”\t0x40100000 – 0x40106555 is .text\n”
    ~”\t0x40240000 – 0x4027a5dd is .irom0.text\n”
    ^done
    set *((int *)0x60000900)=$com_sysprogs_esp8266_wdcfg
    &”set *((int *)0x60000900)=$com_sysprogs_esp8266_wdcfg\n”
    &”Cannot access memory at address 0x60000900\n”
    ^error,msg=”Cannot access memory at address 0x60000900″
    -exec-continue
    ^error,msg=”The program is not being run.”
    set $com_sysprogs_esp8266_wdcfg=*((int *)0x60000900)
    — GDBServer output —
    Open On-Chip Debugger 0.9.0 (2015-11-04-20:38)
    <pre style=”padding-left: 30px;”>Licensed under GNU GPL v2
    <pre style=”padding-left: 30px;”>For bug reports, read
    <pre style=”padding-left: 30px;”> http://openocd.org/doc/doxygen/bugs.html
    <pre style=”padding-left: 30px;”>trst_and_srst separate srst_gates_jtag trst_push_pull srst_open_drain connect_deassert_srst
    <pre style=”padding-left: 30px;”>adapter speed: 1000 kHz
    <pre style=”padding-left: 30px;”>stop_wdt
    <pre style=”padding-left: 30px;”>adapter speed: 1000 kHz
    <pre style=”padding-left: 30px;”>Error: libusb_open() failed with LIBUSB_ERROR_NOT_SUPPORTED
    <pre style=”padding-left: 30px;”>Error: Cannot find jlink Interface! Please check connection and permissions.
    When I try to debug again, the only the following error is shown:
    <p style=”padding-left: 30px;”>am Files (x86)\Sysprogs\VisualGDB\vgagent.exe C:\SysGCC\esp8266\esp8266-bsp\openocd\bin\openocd.exe -f interface/jlink.cfg -f target/esp8266.cfg -c “adapter_khz 1000”
    Open On-Chip Debugger 0.9.0 (2015-11-04-20:38)
    Licensed under GNU GPL v2
    For bug reports, read
    http://openocd.org/doc/doxygen/bugs.html
    trst_and_srst separate srst_gates_jtag trst_push_pull srst_open_drain connect_deassert_srst
    adapter speed: 1000 kHz
    stop_wdt
    adapter speed: 1000 kHz
    Error: libusb_open() failed with LIBUSB_ERROR_NOT_SUPPORTED
    Error: Cannot find jlink Interface! Please check connection and permissions.

    </p>
    I tried a genuine j-link PRO and j-link EDU, when opening Visual GDB Project Properties -> Debug Settings

    Debug Method: OpenOCD is selected. When clicking on Detect, “Detected Segger J-Link” is shown. When using the Arduino Toolchain the board works pretty well, power supply has enough output current. Both j-link work with STM32 cores without any problem. Does anyone have a tip what I’m doing wrong?

    #7180
    support
    Keymaster

    Hi,

    OpenOCD needs a libusb-based driver for J-Link that is incompatible with the original J-Link driver. The easiest way to install it is using our USBDriverTool. You can also try configuring OpenOCD debugging with J-Link for an ARM project and click “Test settings” so that VisualGDB configures the driver automatically. We don’t have automatic driver setup for ESP8266 projects yet though.

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