Hi,
I'm trying to debug a DA14531 using arm-none-eabi-gdb and JLinkServerCL. Can you please provide the commands I need to load the program bin/hex on to the RAM? I tried using the loadbin JLink command but I keep getting this error "Writing target memory failed.".
Thanks
Gowtham
Keywords:
Device:

Hi tsgowtham,
Thanks for your question. So, if I understood correctly you are using the SmartSnippets Studio and the GCC based project of the SDK? Could you please share more inputs so that I can understand better your problem?
Thanks, PM_Dialog
Hi PM_Dialog,
So I would like to debug one of my DA14531 only using CLI. I'm not using the SmartSnippets Studio but I am using the GCC example as a starting points for one of my projects.
I'm currently trying to debug the board using arm-none-eabi-gdb and JLinkServerCL, both are command line tools.
I found the loadhex script and loadbin file, which is generated by the loadhex script in the SmartSnippets IDE folder and passed the same commands in it to load my program's hex to the RAM. But I keep getting an error, "Writing target memory failed.". Is there any other steps needed before I call these commands from the JLinkServerCL to grant access to the RAM?
Or would it be possible for you to give an example as to how I could debug a pre built project only using command line tools?
Thanks
Hi tsgowtham,
Probably you should use the JLink Commander and connect into target. The commands can be found in the sdk\common_project_files\misc\jlink_DA14531.ini
There is not such an example or document demonstrating how to debug a pre built project only using command line tools.
Thanks, PM_Dialog
Hi PM_Dialog,
The commands in the ini file which you have mentioned seems to be specific to Keil. I googled _WWORD and _RWORD, these seems to be uVision debugger specific functions. I'm able to connect using JLink Commander but I still don't know what commands I need to pass
Thanks
Hi tsgowtham,
As mentioned in my previous comment, there is not any specific document for that purpose. However, I’ll ask internally to check this..
Thanks, PM_Dialog