Building Arduino for nrf52840 Feather Express

Sysprogs forums Forums VisualGDB Building Arduino for nrf52840 Feather Express

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #29010
    occamman
    Participant

    I’d like to develop using Arduino on the nrf52840 Feather Express. I created a new project using the wizard, that all seemed to go well. But when I try to build blinky, things become unhappy. Please see attached screen snaps. The entire log that is displayed is below. Any pointers wold be deeply appreciated!

     

    VisualGDB version: 5.5.4.3540
    (gdb begin)
    — GDB Session —
    VisualGDB is licensed to Alan Cohen
    -gdb-version
    C:\Users\amc79\AppData\Local\Arduino15\packages\adafruit\tools\arm-none-eabi-gcc\9-2019q4\bin\arm-none-eabi-gdb.exe: warning: Couldn’t determine a path for the index cache directory.
    =thread-group-added,id=”i1″
    ~”GNU gdb (GNU Tools for Arm Embedded Processors 9-2019-q4-major) 8.3.0.20190709-git\n”
    ~”Copyright (C) 2019 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.”
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html&gt;
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.
    ~”\nType \”show copying\” and \”show warranty\” for details.\n”
    ~”This GDB was configured as \”–host=i686-w64-mingw32 –target=arm-none-eabi\”.\n”
    ~”Type \”show configuration\” for configuration details.\n”
    ~”For 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;.”
    Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/&gt;.
    ~”\n\n”
    ~”For help, type \”help\”.\n”
    ~”Type \”apropos word\” to search for commands related to \”word\”…\n”
    ~”Reading symbols from C:/Users/amc79/source/repos/nrf5240_Feather_Test1/Output/Adafruit_Feather_nRF52840_Express/Debug/nrf5240_Feather_Test1.ino.elf…\n”
    ~”GNU gdb (GNU Tools for Arm Embedded Processors 9-2019-q4-major) 8.3.0.20190709-git\n”
    ~”Copyright (C) 2019 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.”
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html&gt;
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.
    ~”\nType \”show copying\” and \”show warranty\” for details.\n”
    ~”This GDB was configured as \”–host=i686-w64-mingw32 –target=arm-none-eabi\”.\n”
    ~”Type \”show configuration\” for configuration details.\n”
    ~”For 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;.”
    Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/&gt;.
    ~”\n\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”,”data-disassemble-a-option”]
    -gdb-set verbose on
    ^done
    -gdb-set disassembly-flavor intel
    ^error,msg=”No symbol \”disassembly\” in current context.”
    -gdb-set print demangle off
    ^done
    target sim
    &”target sim\n”
    &”Undefined target command: \”sim\”. Try \”help target\”.\n”
    ^error,msg=”Undefined target command: \”sim\”. Try \”help target\”.”
    load
    &”load\n”
    &”You can’t do that when your target is `exec’\n”
    ^error,msg=”You can’t do that when your target is `exec'”
    info target
    &”info target\n”
    ~”Symbols from \”C:\\Users\\amc79\\source\\repos\\nrf5240_Feather_Test1\\Output\\Adafruit_Feather_nRF52840_Express\\Debug\\nrf5240_Feather_Test1.ino.elf\”.\n”
    ~”Local exec file:\n”
    ~”\t`C:\\Users\\amc79\\source\\repos\\nrf5240_Feather_Test1\\Output\\Adafruit_Feather_nRF52840_Express\\Debug\\nrf5240_Feather_Test1.ino.elf’, file type elf32-littlearm.\n”
    ~”\tEntry point: 0x26318\n”
    ~”\t0x00026000 – 0x0002ef74 @ 0x00006000 is .text\n”
    ~”\t0x0002ef74 – 0x0002ef7c @ 0x0000ef74 is .ARM.exidx\n”
    ~”\t0x20006000 – 0x20006240 @ 0x00016000 is .data\n”
    ~”\t0x20006240 – 0x20007a64 @ 0x00016240 is .bss\n”
    ~”\t0x20007a64 – 0x2003f800 @ 0x00016240 is .heap\n”
    ^done
    -data-evaluate-expression “&_estack”
    ^error,msg=”No symbol \”_estack\” in current context.”
    -data-evaluate-expression “&__StackLimit”
    ^done,value=”0x2003f800″
    -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)”
    ^done,value=”4″
    -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″
    -var-create – * “*((void **)0x2003f7fc)”
    ^done,name=”var1″,numchild=”0″,value=”0x0″,type=”void *”,has_more=”0″
    -var-assign “var1″ 0x4e0294bd
    ^error,msg=”-var-assign: Could not assign expression to variable object”
    -break-insert -f main
    ^done,bkpt={number=”1″,type=”breakpoint”,disp=”keep”,enabled=”y”,addr=”0x00027aec”,func=”main()”,file=”C:\\Users\\amc79\\AppData\\Local\\Arduino15\\packages\\adafruit\\hardware\\nrf52\\0.20.5\\cores\\nRF5\\main.cpp”,fullname=”C:\\Users\\amc79\\AppData\\Local\\Arduino15\\packages\\adafruit\\hardware\\nrf52\\0.20.5\\cores\\nRF5\\main.cpp”,line=”72″,thread-groups=[“i1″],times=”0″,original-location=”main”}
    -exec-run
    ^error,msg=”Don’t know how to run. Try \”help target\”.”

    Attachments:
    You must be logged in to view attached files.
    #29024
    support
    Keymaster

    Hi,

    Looks like you are trying to use the GDB simulator that does not support your device. Generally, the built-in simulator is not usable for ARM targets and can only be used to verify that gdb is able to load the debugging symbols.

    Please consider using one of the supported debug methods instead.

    #29027
    occamman
    Participant

    Bingo, working fine with my J-Link. Thank you for an excellent product with support to match.

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