我的板是根据DA14682定制。Sometime ago i flashed one of these board ble_adv demo. it works fine. I can not flash now. It looks like fine:
C:\Users\ulzii\Downloads\DA1468x_DA15xxx_SDK_1.0.14.1081\utilities\scripts\qspi>"..\..\..\binaries\cli_programmer.exe" --prod-id DA14683-00 --cfg "C:\Users\ulzii\AppData\Local\Temp\cfg_30401.ini" gdbserver write_qspi_exec "C:\Users\ulzii\Downloads\DA1468x_DA15xxx_SDK_1.0.14.1081\projects\dk_apps\demos\ble_adv\DA14683-00-Debug_QSPI\ble_adv.bin"
cli_programmer 1.25
Copyright (c) 2015-2017 Dialog Semiconductor
Configuration from C:\Users\ulzii\cli_programmer.ini file loaded.
checking GDB config
is local host 1localhost
runnig ? 0
starting gdb 1
cmd "C:\Program Files\SEGGER\JLink_V512e\JLinkGDBServerCL.exe" -if JTAG -device Cortex-M0 -speed 1000 -select usb=0 -port 2331 -swoport 2332 -telnetport 2333 -log jlink.log Starting...bootloader file not specified, using internal uartboot.bin
Reading from address: 0x50003200 offset: 0x00000000 chunk size: 0x00000001
Reading from address: 0x50003201 offset: 0x00000000 chunk size: 0x00000001
Reading from address: 0x50003202 offset: 0x00000000 chunk size: 0x00000001
Reading from address: 0x50003204 offset: 0x00000000 chunk size: 0x00000001
Reading from address: 0x5000320a offset: 0x00000000 chunk size: 0x00000001
Writing to address: 0x00000000 offset: 0x00000000 chunk size: 0x00002000
写入地址:0 x00000000抵消:0 x00002000chunk size: 0x00002000
Writing to address: 0x00000000 offset: 0x00004000 chunk size: 0x00002000
Writing to address: 0x00000000 offset: 0x00006000 chunk size: 0x00002000
Writing to address: 0x00000000 offset: 0x00008000 chunk size: 0x00002000
Writing to address: 0x00000000 offset: 0x0000a000 chunk size: 0x00002000
Writing to address: 0x00000000 offset: 0x0000c000 chunk size: 0x00002000
Writing to address: 0x00000000 offset: 0x0000e000 chunk size: 0x00002000
Writing to address: 0x00000000 offset: 0x00010000 chunk size: 0x00002000
Writing to address: 0x00000000 offset: 0x00012000 chunk size: 0x00000138
Writing to address: 0x00000000 offset: 0x00000000 chunk size: 0x00000002
done.
.......................................................................................................................
..
.. FINISHED
..
.......................................................................................................................
and it is not flashed in DA14682. It is not beacon and it can not debug since chip is empty.
i add some debug message in the cli_programmer.
Hi ulzii,
Could you please try to download your firmware in the QSPI flash using the SmartSnippets Studio? Are you able to download firmware? In case that is a custom board, I am not able to replicate your issue, so I would suggest you some possible solutions for this. From the SmartSnippets Studio environment, execute the erase_qspi_jtag_win and then try to download fw to the QSPI flash by executing the program_qspi_jtag_win. Also, which QSPI flash are you using? Ins any of the QSPI flashed that are supported by the SDK? Perhaps this might be an issue of the FTDI that you are using, so try to use a new FTDI.
Thanks, PM_Dialog
Thank you for promt reply. My Jlink is Jlink OB stm32f072.
I did flash firmware with few days struggled. I found Jlink v512F and Smartsnippet v1.6 and made changes in prepare_local_ini_file.vbs in line :
'TextLine = TextLine + " -select usb=" + id
TextLine = TextLine + " -select usb=" + "0"
otherwise it leave -select usb= then got gdb interface error. i could not flash with Jlink v512e.
Hi ulzii,
It is not recommended to modify the prepare_local_ini_file.vbs. Are you able to download firmware over UART using the scripts of the SmartSnippets studio? Please run first the erase_qspi_serial_win script in order to erase the QSPI flash over UART and then run the program_qspi_serial_win.
Thanks, PM_Dialog