Forum Replies Created
-
AuthorPosts
-
May 28, 2021 at 10:49 in reply to: nRFConnect SDK getting error Failed to merge NFCconnect binaries #30597LunaParticipant
I am able to find the .hex, ,bin and .elf files in the Debug/Zephyr folder, but still getting the error message
LunaParticipantThis solves all my problems it was a lifesaver for me thanks to you guys
I am saving over 146kb on Flash and 24k on RAM
Regards, Luna
LunaParticipantHi there, I tried to check the memory utilization via View->Embedded Memory Explorer. So the app size when I am using 13R3 is 18k and when I am using 14R2 it seems slightly bigger, 29k ( so I can live with that), also compared it using the same project using the Nordic SDK 14.2. (my post above)
But my issue is at time of building the project this is adding the softdevice extra size to my .hex and .bin files which affects my application because I need to transfer my app files thru Bluetooth, it affects directly my application performance and battery life, transfer 170kb are harder than only 19kb when I am using the version 13R3. On my true application are more than 400kb!!!
LunaParticipantI also believe that. because it does not make any difference reducing or increasing the code size when choosing “Separate Softdevice” on the version 14R2, but when we are using the version 13.R3 and selected Separate Softdevice reduces 124kb giving a total of 19kb in the flash usage vs 143kb when is selected program with Softdevice
please see the examples below where I am comparing Nordic GDB 13.R3 vs Nordic GDB 14R2 vs Nordic SDK 14.2
all using the same project Beacon for the different SDK versions and Nordic GDB releases from you
LunaParticipantguys, I am sorry for bothering you, after I updated Nordic BSP and re-generated the MCU-specific files, I am able to build my app when is selected S132 ( programmed separately), but I am unable to see a reduced app size, correct me if I am wrong but it looks is building something like: app+softdevice, before I upgraded the version to 14.2 or 14.2 r2 my app was around 80KB(ver 13.0 r3), now it is larger than 200KB!
- This reply was modified 6 years, 8 months ago by Luna.
LunaParticipantOh thanks I found it, but I still have an issue. After I selected “S132 (Programmed Separately)” and build the project. I got the following:
Error nrf_sdm.h: No such file or directory
Error [Clang IntelliSense] Error: no matching function for call to ‘sd_ble_gap_disconnect’
Error nrf_sdm.h: No such file or directory- This reply was modified 6 years, 8 months ago by Luna.
LunaParticipantHi these are the screenshot when using the version 14.2 (where I could not see the softdevice check box option) and the version 13.3 where the softdevice check box availableble for me
Attachments:
You must be logged in to view attached files.LunaParticipantomg! it is solved! it is like some black magic lol
Thanks a lot it was a true headache for me
LunaParticipantHi, I know it is an old thread, but I am facing the same issue, unable to flash or debug my device, but I am able to build my project
Device: nR52
my logs:
c:\SysGCC\arm-eabi\bin\arm-eabi-gdb.exe –interpreter mi C:\Users\DevTest – Test Dev\VisualGDB\Debug\Project
c:\SysGCC\arm-eabi\bin\arm-eabi-gdb.exe –interpreter mi C:\Users\DevTest – Test Dev\VisualGDB\Debug\Project
-gdb-version
-gdb-version
Excess command line arguments ignored. (Test …)
Excess command line arguments ignored. (Test …)
Excess command line arguments ignored. (Test …)
=thread-group-added,id=”i1″
=thread-group-added,id=”i1″
=thread-group-added,id=”i1″
~”GNU gdb (GDB) 8.0.1\n”
~”GNU gdb (GDB) 8.0.1\n”
~”GNU gdb (GDB) 8.0.1\n”
~”Copyright (C) 2017 Free Software Foundation, Inc.\n”
~”Copyright (C) 2017 Free Software Foundation, Inc.\n”
~”Copyright (C) 2017 Free Software Foundation, Inc.\n”
~”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”
~”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”
~”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”
~”This GDB was configured as \”–host=i686-w64-mingw32 –target=arm-eabi\”.\nType \”show configuration\” for configuration details.”
~”This GDB was configured as \”–host=i686-w64-mingw32 –target=arm-eabi\”.\nType \”show configuration\” for configuration details.”
~”This GDB was configured as \”–host=i686-w64-mingw32 –target=arm-eabi\”.\nType \”show configuration\” for configuration details.”
~”\nFor bug reporting instructions, please see:\n”
~”\nFor bug reporting instructions, please see:\n”
~”\nFor bug reporting instructions, please see:\n”
~”<http://www.gnu.org/software/gdb/bugs/>.\n”
~”<http://www.gnu.org/software/gdb/bugs/>.\n”
~”<http://www.gnu.org/software/gdb/bugs/>.\n”
~”Find the GDB manual and other documentation resources online at:\n<http://www.gnu.org/software/gdb/documentation/>.\n”
~”Find the GDB manual and other documentation resources online at:\n<http://www.gnu.org/software/gdb/documentation/>.\n”
~”Find the GDB manual and other documentation resources online at:\n<http://www.gnu.org/software/gdb/documentation/>.\n”
~”For help, type \”help\”.\n”
~”For help, type \”help\”.\n”
~”For help, type \”help\”.\n”
~”Type \”apropos word\” to search for commands related to \”word\”…\n”
~”Type \”apropos word\” to search for commands related to \”word\”…\n”
~”Type \”apropos word\” to search for commands related to \”word\”…\n”
&”C:\\Users\\DevTest: No such file or directory.\n”
&”C:\\Users\\DevTest: No such file or directory.\n”
&”C:\\Users\\DevTest: No such file or directory.\n”
&”C:\\Users\\DevTest – Test Dev\\Project/-: No such file or directory.\n”
&”C:\\Users\\DevTest – Test Dev\\Project/-: No such file or directory.\n”
&”C:\\Users\\DevTest – Test Dev\\Project/-: No such file or directory.\n”
(gdb)
~”GNU gdb (GDB) 8.0.1\n”
~”GNU gdb (GDB) 8.0.1\n”
~”GNU gdb (GDB) 8.0.1\n”
~”Copyright (C) 2017 Free Software Foundation, Inc.\n”
~”Copyright (C) 2017 Free Software Foundation, Inc.\n”
~”Copyright (C) 2017 Free Software Foundation, Inc.\n”
~”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”
~”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”
~”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”
~”This GDB was configured as \”–host=i686-w64-mingw32 –target=arm-eabi\”.\nType \”show configuration\” for configuration details.”
~”This GDB was configured as \”–host=i686-w64-mingw32 –target=arm-eabi\”.\nType \”show configuration\” for configuration details.”
~”This GDB was configured as \”–host=i686-w64-mingw32 –target=arm-eabi\”.\nType \”show configuration\” for configuration details.”
~”\nFor bug reporting instructions, please see:\n”
~”\nFor bug reporting instructions, please see:\n”
~”\nFor bug reporting instructions, please see:\n”
~”<http://www.gnu.org/software/gdb/bugs/>.\n”
~”<http://www.gnu.org/software/gdb/bugs/>.\n”
~”<http://www.gnu.org/software/gdb/bugs/>.\n”
~”Find the GDB manual and other documentation resources online at:\n<http://www.gnu.org/software/gdb/documentation/>.\n”
~”Find the GDB manual and other documentation resources online at:\n<http://www.gnu.org/software/gdb/documentation/>.\n”
~”Find the GDB manual and other documentation resources online at:\n<http://www.gnu.org/software/gdb/documentation/>.\n”
~”For help, type \”help\”.\n”
~”For help, type \”help\”.\n”
~”For help, type \”help\”.\n”
~”Type \”apropos word\” to search for commands related to \”word\”.\n”
~”Type \”apropos word\” to search for commands related to \”word\”.\n”
~”Type \”apropos word\” to search for commands related to \”word\”.\n”
^done
^done
^done
(gdb)
-list-features
-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”]
^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”]
^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)
-gdb-set disassembly-flavor intel
-gdb-set disassembly-flavor intel
^error,msg=”No symbol table is loaded. Use the \”file\” command.”
^error,msg=”No symbol table is loaded. Use the \”file\” command.”
^error,msg=”No symbol table is loaded. Use the \”file\” command.”
(gdb)
-gdb-set print demangle off
-gdb-set print demangle off
^done
^done
^done
(gdb)
-break-insert -f main
-break-insert -f main
&”No symbol table is loaded. Use the \”file\” command.\n”
&”No symbol table is loaded. Use the \”file\” command.\n”
&”No symbol table is loaded. Use the \”file\” command.\n”
^done,bkpt={number=”1″,type=”breakpoint”,disp=”keep”,enabled=”y”,addr=”<PENDING>”,pending=”main”,times=”0″,original-location=”main”}
^done,bkpt={number=”1″,type=”breakpoint”,disp=”keep”,enabled=”y”,addr=”<PENDING>”,pending=”main”,times=”0″,original-location=”main”}
^done,bkpt={number=”1″,type=”breakpoint”,disp=”keep”,enabled=”y”,addr=”<PENDING>”,pending=”main”,times=”0″,original-location=”main”}
(gdb)
Warning: could not set a breakpoint on main. ‘Step into new instance’ will not work.
Warning: could not set a breakpoint on main. ‘Step into new instance’ will not work.
-break-delete 1
-break-delete 1
^done
^done
^done
(gdb)
target remote :50963
target remote :50963
&”target remote :50963\n”
&”target remote :50963\n”
&”target remote :50963\n”
~”Remote debugging using :50963\n”
~”Remote debugging using :50963\n”
~”Remote debugging using :50963\n”
=thread-group-started,id=”i1″,pid=”42000″
=thread-group-started,id=”i1″,pid=”42000″
=thread-group-started,id=”i1″,pid=”42000″
&”warning: No executable has been specified and target does not support\ndetermining executable automatically. Try using the \”file\” command.”
&”warning: No executable has been specified and target does not support\ndetermining executable automatically. Try using the \”file\” command.”
&”warning: No executable has been specified and target does not support\ndetermining executable automatically. Try using the \”file\” command.”
&”\n”
&”\n”
&”\n”
=thread-created,id=”1″,group-id=”i1″
=thread-created,id=”1″,group-id=”i1″
=thread-created,id=”1″,group-id=”i1″
~”0x0002d324 in ?? ()\n”
~”0x0002d324 in ?? ()\n”
~”0x0002d324 in ?? ()\n”
*stopped,frame={addr=”0x0002d324″,func=”??”,args=[]},thread-id=”1″,stopped-threads=”all”
*stopped,frame={addr=”0x0002d324″,func=”??”,args=[]},thread-id=”1″,stopped-threads=”all”
*stopped,frame={addr=”0x0002d324″,func=”??”,args=[]},thread-id=”1″,stopped-threads=”all”
^done
^done
^done
(gdb)
mon reset
mon reset
&”mon reset\n”
&”mon reset\n”
&”mon reset\n”
@”Resetting target\r\n”
@”Resetting target\r\n”
@”Resetting target\r\n”
^done
^done
^done
(gdb)
info shared
info shared
&”info shared\n”
&”info shared\n”
&”info shared\n”
~”No shared libraries loaded at this time.\n”
~”No shared libraries loaded at this time.\n”
~”No shared libraries loaded at this time.\n”
^done
^done
^done
(gdb)
load
load
&”load\n”
&”load\n”
&”load\n”
&”No executable file specified.\n”
&”No executable file specified.\n”
&”No executable file specified.\n”
&”Use the \”file\” or \”exec-file\” command.\n”
&”Use the \”file\” or \”exec-file\” command.\n”
&”Use the \”file\” or \”exec-file\” command.\n”
^error,msg=”No executable file specified.\nUse the \”file\” or \”exec-file\” command.”
^error,msg=”No executable file specified.\nUse the \”file\” or \”exec-file\” command.”
^error,msg=”No executable file specified.\nUse the \”file\” or \”exec-file\” command.”
(gdb)
mon reset
mon reset
&”mon reset\n”
&”mon reset\n”
&”mon reset\n”
@”Resetting target\r\n”
@”Resetting target\r\n”
@”Resetting target\r\n”
^done
^done
^done
(gdb)
compare-sections
compare-sections
&”compare-sections\n”
&”compare-sections\n”
&”compare-sections\n”
&”command cannot be used without an exec file\n”
&”command cannot be used without an exec file\n”
&”command cannot be used without an exec file\n”
^error,msg=”command cannot be used without an exec file”
^error,msg=”command cannot be used without an exec file”
^error,msg=”command cannot be used without an exec file”
(gdb)- This reply was modified 6 years, 10 months ago by Luna.
-
AuthorPosts