Jlink not detecting Dialog Soc in custom board

11 posts / 0 new
Last post
hrg
Offline
Last seen: 1 year 11 months ago
Guru
Joined: 2014-08-05 13:37
Jlink not detecting Dialog Soc in custom board

HI Dialog Team ,

A custom board is made using DA14580-01 ,where the application boots from an external SPI flash. The smart snippet is used to load the custom application hex file to the SPI flash.Once the Spi flash is erased(empty) the jlink debugger detects the Da14580 and connects in the smartsnippet stating "Successfully downloaded firmware file to the board." after which the application hex can be burnt.
After reset the SPI flash boots and the application executes ,Da14580 is advertising. Once again when i try to connect the board in the smartsnippet (now SPI Flash is not empty) it logs "Failed downloading firmware file to the board." . So i have to press reset continuosly such that it should sync with connect button (ie. jlink should detect the arm core of dialog before SPI boots the application ).This doesnt seem to occur while flashing the proximity reporter_fh hex.It occurs only in the custom application.The application is made using template_fh such that it should advertise some constant values in the advertising packets.
So is there any preconfiguration to be done in template_fh to overcome this issue ?

Thanks

MH_Dialog (not verified)
Hi Hrg,

Hi Hrg,

Smartsnippet must detect specific packet from UART TX after reset and start to download firmware or program flash etc afterwards. The action above should be executed before DA14580 access the external flash. So I don't think it is related to the application stored in the flash. More information in AN-B-001.
Could you please confirm what interface is used in smartsnippet?

BR
MH_Dialog

hrg
Offline
Last seen: 1 year 11 months ago
Guru
Joined: 2014-08-05 13:37
Hi MH_Dialog

Hi MH_Dialog

The custom board is connected to smartsnippet using Jlink lite (Jtag- SWDIO SWDCLK). But when SPI FLash is empty it easy detects and connects. In case of the application it directly boots to the application.

MHv_Dialog
Offline
Last seen: 1 month 1 day ago
Staff
Joined: 2013-12-06 15:10
Hi,

Hi,

It can be a timing issue. The Jlink is running a loop where it tries to connect. This allows the DA14580 to proceed to the Flash loading process. To confirm that this is the issue, could you somehow disrupt the SPI interface to the Flash? 

 

hrg
Offline
Last seen: 1 year 11 months ago
Guru
Joined: 2014-08-05 13:37
Hi MHv_dialog

Hi MHv_dialog
The spi interface is hardwired so it is not possible to disrupt the flash from SPI interface.SO everytime keil ->flashconfiguration->debug jtag is scanned in order to detect the arm core ,& once it is detected smart snippet is used in order to connect to the flash .But in case if Eval board is interface the flash programmer in smartsnippet gives us some period to press reset !

MHv_Dialog
Offline
Last seen: 1 month 1 day ago
Staff
Joined: 2013-12-06 15:10
Hi,

Hi,

You may be able to use a little trick. If you press and hold reset, press "connect" in SmartSnippets, then let go of the reset button. 

hrg
Offline
Last seen: 1 year 11 months ago
Guru
Joined: 2014-08-05 13:37
Yeah the trick is working

Yeah the trick is working .but is there any standard way or procedure of connecting to the BLE apart from this .It feels difficult for other programmers in following this procedure ! HJow to achieve the "Press reset " statement in smartsnippet while using the Eval board in interfacing our custom board ?

Thanks

MHv_Dialog
Offline
Last seen: 1 month 1 day ago
Staff
Joined: 2013-12-06 15:10
Hi,

Hi,

"How to achieve the "Press reset " statement in smartsnippet while using the Eval board in interfacing our custom board ?" Can you explain your setup, I didn't quite understand this?

hrg
Offline
Last seen: 1 year 11 months ago
Guru
Joined: 2014-08-05 13:37
HI MHv_Dilalog ,

HI MHv_Dilalog ,

While using the Flash programmer in Smnartsnippet with Eval.Board (Expert kit) ,when connect is pressed under log it asks us to press reset
"[ACTION @15-02-12 10:22:09] Please press the hardware reset button on the board to start the download process." ,so once we press the reset it will connect to the flash.
But in case of our custom board where SPI flash is used to store the hex code, when connect is pressed there is no such statement under the log .so it doesnt wait for the reset action ,SPI directly boots the application code . and fails to connect ot JTAG. This is the issue !

Thanks

MHv_Dialog
Offline
Last seen: 1 month 1 day ago
Staff
Joined: 2013-12-06 15:10
Hi,

Hi,

I will have someone in your region reach out to you directly to get this resolved. Sorry about not being able to help.

hrg
Offline
Last seen: 1 year 11 months ago
Guru
Joined: 2014-08-05 13:37
okey

okey