Hi all,
I just received a DA14580 basic demo kit, and have some issue activating the BT.
Successfully installed Keil v5, and ran the blinky test as described in the UM-B-048 Getting started document.
然后尝试运行DSPS(DA14580\U DSPS\U 3.150.2\U 13\U 2\U 2015),从我的分销商那里得到了应用说明(v1.3)。
Then came the troubles, when I tried to follow the steps in §8.4:
Compiled the sps_device project: OK (0 Error(s), 3 Warning(s))
Connected a FTDI RS232 cable, plus the regular USB cable as instructed in §8.1
When starting the debugging session, a "No Cortex-M SW Device Found" popped up
And the log:
Load "...\\DA14580_DSPS_3.150.2\\dk_apps\\keil_projects\\sps\\sps_device_K5\\Objects\\sps_device.axf"
*JLink信息:已选择设备“DA14580”。
Set JLink Project File to "...\DA14580_DSPS_3.150.2\dk_apps\keil_projects\sps\sps_device_K5\JLinkSettings.ini"
*JLink信息:已选择设备“DA14580”。
链接信息:
------------
DLL: V5.02f, compiled Oct 2 2015 20:51:34
固件:J-Link OB-SAM3U128 V1编译2015年8月28日19:26:23
硬件:V1.00
序列号:480055335
错误:闪存下载失败-目标DLL已取消
Flash Load finished at 10:39:47
Question: There is something I don't undestand:
If I change the jumper as in fig14, there is no connection any more between the SAM and the DA, so how do I get the hex file downloaded through the serial link and not the JLink? Or maybe I miss something?
So I also tried with SmartSnippets:
This time the COM port opened is the serial link, but the reset button has no effect!!
[INFO @15-12-09 10:50:41] Read 19480 bytes from file ...\DA14580_DSPS_3.150.2\dk_apps\keil_projects\sps\sps_device_K5\Objects\sps_device.hex.
[INFO@15-12-09 10:50:41]与COM40端口的连接已成功打开。
[INFO @15-12-09 10:50:41] Started download procedure...
[ACTION @15-12-09 10:50:42] Please press the hardware reset button on the board to start the download process.
[ERROR @15-12-09 10:50:57] Timeout: Reset signal not detected for more than 16000 msecs.
[INFO @15-12-09 10:50:57] Successfully disconnected from port COM40.
[INFO @15-12-09 10:50:57] Failed downloading firmware file to the board.
What's next? I went through several forum threads, found several customers able to connect, and some not, but can't figure out the right/bad conditions.
顺便说一句,我没有修改原始源代码中的任何内容,da14580\u config.h定义了CFG\u UART\u HW\u FLOW\u CTRL。我该换一下吗?
Thanks.
PS:
SmartSnippets v3.9 32b
和Keil信息:
IDE-Version:
µVision版本5.17.0.0
版权所有(C)2015 ARM Ltd和ARM Germany GmbH。保留所有权利。
Tool Version Numbers:
Toolchain: MDK-Lite Version: 5.17
Toolchain Path: C:\Keil\ARM\ARMCC\Bin
C编译器:Armcc.exe文件V5.06更新1(内部版本61)
汇编程序:Armasm.exeV5.06更新1(内部版本61)
链接器/定位器:ArmLink.exe文件V5.06更新1(内部版本61)
Library Manager: ArmAr.exe V5.06 update 1 (build 61)
十六进制转换器:从elf.exeV5.06更新1(内部版本61)
CPU DLL: SARMCM3.DLL V5.17
Dialog DLL: DARMCM1.DLL V1.12.0.0
Target DLL: Segger\JL2CM3.dll V2.99.16.0
Dialog DLL: TARMCM1.DLL V1.9.0.0
Hi Chui,
For downloading your code through the jlink have you configured your target option -> Settings -> Debug -> to be in the SW and not in the JTAG option, additionally check in the Utilities that the use external tool for Flash programming to be selected. There is no need for code modifications to download code to your da. Most probably is the UART connections. Can you please try to donwload code with the default UART jumpers in order to check the reset functionallity and also chek the board setup (the configuration of the pins) in smart snippets.
Thanks MT_dialog
你好,
是的,它在SW模式下,我可以在窗口中看到SN。选择了External tool,值为空(这个技巧并不明显,很难找到,我以前在尝试运行blink示例时遇到过这个问题)
未修改的代码已加载。
In the quick start guide, Rx/Tx jumpers are to be on P0_4, P0_5 and Baud rate to 115k, but in smartsnippets, P0_4, P0_5 point to 57k.
Both in 115k and 57k I get spurious flow (see attachment), but in a external serial terminal I have series of "[00][00][00][00][00][00][02]" in 115k
好消息,重置按钮停止流动
我相信这肯定是UART的问题。但我的错在哪里?
And what about my initial question of SAM/DA link when the jumpers are as indicated in the DSPS application note?
谢谢。
Hi Chui,
我想你的意思是如果你移除连接TMS和TCK的跳线(图14中的基本配置),那就是jlink的连接。图中基本套件的版本有点过时。只要把这两个跳线,你就可以编程你的董事会。您在终端中看到的数据是在57k中运行的da的引导加载程序。当从不同接口(包括具有不同波特率的不同管脚中的uart)引导时,da遵循特定的过程。由于您要加载DSP,只需将TMS和TCK引脚通过jlink连接,并按照应用说明中的指示连接ftdi。
Thanks MT_dialog
Hi Chui,
I ve attached a picture of a basic dev kit and the correct configuration in using the DSPS project.
The lines and colouring of the FTDI cable are the ones described in the DSPS application note. Try to download the project using keil. In the debug tab -> settings, in the project options (if the basic kit is properly recognized by keil) you should see this (attached picture). In case you dont get SW Device IDCODE and Name please press the reset button on your dev kit and try again. After that you must be able to download the software in your dev kit.
Thanks MT_dialog
你好,
我花了一些时间继续使用这个工具包。
你发来的照片和我遵循的说明有些不同。
In the driver setup, max clock was at 5MHz on my side instead of 2.
在UART引脚输出中,CTS(棕色)在P0\u3上,如“DA14580串行端口服务参考应用程序v1 3”中所示,但您的快照显示P0\u7
I changed the config accordingly, no change in the result.
Note that since I put TMS TCK back again, I was able to launch and debug step by step the soft. Actually it looks like it is cycling in the startup phase, and not advertising.
Hi Chui,
The invalid FTDI connection is in the attachement i have sent, the valid is the one in the application note (i ve used a IO modified code when running the example and taking the pictures).
I guess that where the software stucks is in the while(), in the attachment, and awaits until the debugger is disabled.
Since you have your TMS and TCK back and you are able to download code in the da in order to see the device advertising you have to exit the debug mode while being in to sleep mode. If you want to debug while operating you have to disable the sleep mode, You can do that by going to the da14580_config.h and #undef CFG_EXT_SLEEP.
Thanks MT_dialog
Hi MT,
我不是真的想调试它,我只是想知道它卡在哪里。当我取消CFG\u EXT\u SLEEP时,由于UART导致的硬件故障导致执行失败,显然,当我把它放回去(并且不调试)时,我仍然没有广告。
There is surely something basic missing in my config or HW, but I carefully followed the (corrected) instructions, and made no progress.
Hi Chui,
Even if there aren't any UART connections you should be able to donwload code in your basic kit and run and just advertise properly the DSPS project. Now the only reason that i can think of that results in Hardfault Handler is not selecting the proper project for your chip. In the DSPS application in each folder (device/host) there are two .uvproj files, one for a different chip.
sps_device.uvproj -> is for the 580
sps_device_581.uvproj -> is for the 581
如果打开、编译sps_device_581.uvproj并将其下载到580芯片中,这将导致一个硬故障处理程序,当然也会导致另一种情况。
Thanks MT_dialog
你好,
其实我14580的工具。我有h的区别ere wrt the doc is that I'm running UV5, as said in my first post (v5.17, windows 7)
有没有办法直接打电话?从我开始到现在已经一个月了。。。
Thanks.
Hi Chui,
这听起来很奇怪,至少你能够从SDK下载并正确运行任何其他示例,并检查其广告是否正确,app\u ble\u barebone或app\u ble\u外围设备是否来自新的SDK。你能试试吗?
Thanks MT_dialog
在Keil_5中试用过ble_app_barebone,工作无缝,没有任何修改,只需编译即可(selected Dialog/DA14580 component);它发布了广告。
So it is somewhere in the settings. For the DSPS, I had to open and port in UV5 the original UV4 projet, is that where it failed?
Hi Chui,
I 've attached a .hex file of the DSPS application tested on my basic kit and compiled with keil5.14. can you please use the smart snippets tool to download the file into your basic kit and let me know if you can see it advertising. I have also attached the target option -> Device that you should have when migrating from keil4 to keil5.
Thanks MT_dialog
在ble_app_barebone和dsp之间,散乱文件是不同的,ROM区域也是不同的(附件)。我应该改变ROM区域吗?要做什么?一旦选择了启动单选按钮,我就不能取消选择它。
Hi Chui,
The DSPS project should run as is, you dont have to change or alter anything in the source code or in the ROM configuration. The only thing that you might want to change is to undefine the CFG_EXT_SLEEP in order for the code to execute while you are in debug mode otherwise you will have to exit the debug mode in order to see it advertising. Please try to run the .hex file just to make a simple test. Also can you please upload either your .hex file or your project to test it on my basic kit. You can find you .hex file in the \DA14580_DSPS_3.150.2\dk_apps\keil_projects\sps\sps_device\out directory.
Thanks MT_dialog
你好,
Your .hex works, not mine.
Hi Chui,
在你上传的文件中,你还没有包括你的配置文件da14580\u config.h,da14580\u scatter\u config.h,da14580\u stack\u config.h。你能上传这些吗?我可以用我的配置文件来编译和运行这个项目。我还能够运行你发给我的.hex,通过UART下载,当通过JTAG下载时,你将看不到它的广告(它只广告几秒钟,然后等待分离调试器-如果你在下载代码时扫描手机,你可以拿起前两秒钟的广告),因为因为你有了CFG\ U EXT\ U睡眠,debbuger就一直依附在它上面。为了通过uart下载固件,您必须在uart配置中设置管脚(紧挨着j4头),打开智能代码段并选择uart(仅)选项,转到引导程序并下载the.hex文件。我的项目能够在你的板上运行,因为睡眠模式没有定义。
我已经附上了我使用过的文件和您的项目,为了测试它们,您可以将文件夹按原样放置在此目录DSPS\DA14580\u DSPS\u 3.150.2\uuuuuu13\u 2\u 2015\u keil5\DA14580\u DSPS\u 3.150.2\dk\u apps\keil\u projects\sps compile and execute下,我还在.zip文件中包含了生成的SP_设备.hex文件和你的.hex文件。
Thanks MT_dialog