⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
6 posts / 0 new
Last post
tsgowtham
Offline
Last seen:4 months 1 week ago
加入:2020-05-04 12:39
从CLI DA14531调试

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:
PM_Dialog
Offline
Last seen:2 days 8 hours ago
圣aff
加入:2018-02-08 11:03
Hi tsgowtham,

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

tsgowtham
Offline
Last seen:4 months 1 week ago
加入:2020-05-04 12:39
Hi 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

PM_Dialog
Offline
Last seen:2 days 8 hours ago
圣aff
加入:2018-02-08 11:03
Hi tsgowtham,

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

tsgowtham
Offline
Last seen:4 months 1 week ago
加入:2020-05-04 12:39
Hi 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

PM_Dialog
Offline
Last seen:2 days 8 hours ago
圣aff
加入:2018-02-08 11:03
Hi tsgowtham,

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