Trying to run DSPS Version 3.150.2 on BASIC Board

19个帖子/ 0新
Last post
Thudwarp.
离线
Last seen:2年2个月前
Joined:2015-01-28 00:53
Trying to run DSPS Version 3.150.2 on BASIC Board

Builds fine , but get the following on starting debugger.

使用Uvusion 5.15,SDK 3.0.6,根据外设测试将调试器设置为内部RAM,

启动文件似乎是问题 - 如果我用可执行运行评论它,但我看不到任何BLE广告。第一个问题是这个启动文件抛出错误吗?

谢谢 - 克里斯

=============== ||=================.

JLink info:
------------
DLL:v4.96i,2015年2月19日编译11:29:51
固件:J-Link OB-SAM3U128 V1编译2014年11月28日10:24:11
硬件:v1.00
S/N : 480054962

* JLink Info: Found SWD-DP with ID 0x0BB11477
* jlink信息:找到cortex-m0 r0p0,小endian。
* jlink信息:fpUnit:4代码(BP)插槽和0个字幕插槽
ROMTableAddr = 0xE00FF003

目标信息:
------------
设备:ARMC0.
vtarget = 3.300V.
引脚状态:TCK:0,TDI:0,TDO:1,TMS:1,TRES:1,TRST:1
Hardware-Breakpoints: 4
Software-Breakpoints: 8192
Watchpoints: 2
JTAG速度:16667 kHz

Load "C:\\DialogSemiTools\\DA14580_DSPS_3.150.2\\dk_apps\\keil_projects\\sps\\sps_device\\out\\sps_device.axf"

* * *再保险stricted Version with 32768 Byte Code Size Limit
***目前使用:15516个字节(47%)

包括“c:\\ dialogsemitools \\ da14580_dsps_3.150.2 \\ dk_apps \\ keil_projects \\ sps \\ sps_device \\ .. \\ .. \\ .. \\ misc \\ sysram_case23.ini”
/* KILL BUTTON * */
/ *定义按钮“重置dk580”,“包含../../misc/sysram_case23.ini”* /
重启
e long 0x50000012 = 0xA4
e long 0x50003308 = 0x2e
LOAD %L

* * *再保险stricted Version with 32768 Byte Code Size Limit
***目前使用:15516个字节(47%)

sp = _rdword(0x20000000)
$ = _rdword(0x20000004)

FUNC void disp_memlog(void)
{
int idx;
unsigned int min_delta;

Exec(“log> memlog.log”);

printf(“\ n \ n ***内存记录结果*** \ n \ n”);

printf(“>>> env heap <<< \ n”);
printf(“此堆中的使用大小:%4d(当前) - %4d(最大)\ n”,mem_log [0] .use_sz,mem_log [0] .max_used_sz);
printf("Used size in other HEAPs: %4d (current) - %4d (maximum)\n\n", mem_log[0].used_other_sz, mem_log[0].max_used_other_sz);

printf(“>>> db heap <<< \ n”);
printf(“此堆中的使用大小:%4d(当前) - %4d(最大)\ n”,mem_log [1] .used_sz,mem_log [1] .max_used_sz);
printf(“其他堆的使用大小:%4d(current) - %4d(最大)\ n \ n”,mem_log [1] .used_other_sz,mem_log [1] .max_used_other_sz);

printf(">>> MSG HEAP <<<\n");
printf(“此堆中的使用大小:%4d(当前) - %4d(最大)\ n”,mem_log [2] .used_sz,mem_log [2] .max_used_sz);
printf(“其他堆中的使用大小:%4d(当前) - %4d(最大)\ n \ n”,mem_log [2] .used_other_sz,mem_log [2] .max_used_other_sz);

Printf(“>>>非Ret堆<<< \ n”);
printf("Used size in this HEAP : %4d (current) - %4d (maximum)\n", mem_log[3].used_sz, mem_log[3].max_used_sz);
printf(“其他堆中的使用大小:%4d(current) - %4d(最大)\ n \ n”,mem_log [3] .used_other_sz,mem_log [3] .max_used_other_sz);

exec("log off");
} //disp_memlog() ends

Func void显示屏(空白)
{
int idx;
unsigned int min_delta;

exc(“log> myvalues.log”);
printf(“*** dbg_remailing_times [] \ n”);
for (idx = 0; idx < 100; idx++) {
printf ("%d\n", dbg_remaining_times[idx]);
____________________ ^
*** error 34, line 51: undefined identifier
}
printf(“*** dbg_sleep_times [] \ n”);
for (idx = 0; idx < 100; idx++) {
printf ("%d\n", dbg_sleep_times[idx]);
____________________ ^
*** error 34, line 55: undefined identifier
}
printf(“*** dbg_check_times [] \ n”);
for (idx = 0; idx < 100; idx++) {
printf(“%d \ n”,dbg_check_times [idx]);
____________________ ^
* * *错误34,59行:未定义的标识符
}
printf(“\ n \ n ===== ==== \ n”);
min_delta = 0xffffffff;
printf(“delta max \ n”);
for (idx = 0; idx < 100; idx++) {
结果;
if (dbg_remaining_times[idx] < 170)
________^
***错误34,第66行:未定义的标识符
结果= 625 + dbg_remaining_times [Idx] - 170;
_____________________ ^
***错误34,第67行:未定义的标识符
别的
result = dbg_remaining_times[idx] - 170;
________________ ^
***错误34,第69行:未定义的标识符
if (min_delta > result) min_delta = result;
printf(“%d \ n”,结果);
}
printf(“delta min \ n”);
for (idx = 0; idx < 100; idx++) {
结果;
if(dbg_remaining_times [idx] <400)
________^
***错误34,第76行:未定义的标识符
结果= 625 + dbg_remaining_tips [Idx] - 400;
_____________________ ^
*** error 34, line 77: undefined identifier
别的
结果= dbg_remaining_times [idx] - 400;
________________ ^
***错误34,第79行:未定义的标识符
if (min_delta > result) min_delta = result;
printf(“%d \ n”,结果);
}
printf(“mininum logged delta:%d \ n”,min_delta);
printf(“slp剩余时间\ n”);
for (idx = 0; idx < 100; idx++) {
printf ("%d\n", dbg_slp_rem[idx]);
____________________ ^
*** error 34, line 86: undefined identifier
}
printf("minimum logged SLP rem time: %d\n", dbg_slp_rem_min);
______________________________________________^
*** error 34, line 88: undefined identifier
printf("maximum logged SLP rem time: %d\n", dbg_slp_rem_max);
______________________________________________^
***错误34,第89行:未定义的标识符
printf("SLP hit to clk compensation progr delay: %d\n", dbg_slp_rem_diff_min);
__________________________________________________________ ^
*** error 34, line 90: undefined identifier
exec("log off");
} //displayvalues() ends
Ws 1,`rxdesc

JE_Dialog
离线
Last seen:1个月3天前
Staff
Joined:2013-12-05 14:02
Hello Chris, I'll discuss

你好克里斯,我本周我会与美国队讨论这个问题。快速问:您使用的是什么目标HW?基本或专业或专家套件或Pan1740 / Murata模块?
谢谢&br.

JE_Dialog

Thudwarp.
离线
Last seen:2年2个月前
Joined:2015-01-28 00:53
我正在使用基本董事会

我正在使用基本董事会

RGSD - Chris.

TR_Dialog
离线
Last seen:2 months 3 weeks ago
Staff
Joined:2014-06-30 23:52
嗨克里斯:

嗨克里斯:

我也看到了启动文件引起的错误。我会向我们的开发团队沟通。尽管有错误,我会看到广告。你可以尝试加载另一个样本项目吗?我的建议是,从SDK 3.0.6:c:\ da1458x_sdk_3.0.6 \ dk_apps \ keil_projects \ proximity \ eporter_fh。让我们退出与此项目看到广告。我们会从那里去。

谢谢,

TR_DIALOG

Thudwarp.
离线
Last seen:2年2个月前
Joined:2015-01-28 00:53
那个项目没有抛出

该项目不会抛出错误,但我仍然没有看到广告

使用的Connection Manager验证芯片是否正常 - 外设模式通告正常

Thudwarp.
离线
Last seen:2年2个月前
Joined:2015-01-28 00:53
更有趣 - 什么时候

更有趣 - 什么时候Idownload the DSPS project, It briefly advertises DialogDemo. The advertisement stops once I run the DSPS project

RGDS - Chris.

TR_Dialog
离线
Last seen:2 months 3 weeks ago
Staff
Joined:2014-06-30 23:52
你好,

你好,

Can you explain what do you mean by the following: "peripheral mode advertises OK"

Proximity Reporter_FH也是一个外设项目。

谢谢,

TR_DIALOG

Thudwarp.
离线
Last seen:2年2个月前
Joined:2015-01-28 00:53
我的意思是那个外围

我的意思是,当我使用Connection Manager(作为外设)启用它时,外围广告工作正常 - 使用iOS上的闪烁测试

Thudwarp.
离线
Last seen:2年2个月前
Joined:2015-01-28 00:53
只改变我的变化

只有我对项目进行的更改是内部存储器的KEIL目标选项中的设置 - 根据外设测试项目。

Can you send me your version of the DSPS project that runs on the BASIC board in internal memory? If that doesn't work it must be a tool problem?

Thudwarp.
离线
Last seen:2年2个月前
Joined:2015-01-28 00:53
- 当我停止调试器时

- 当我停止调试器时the advertisement starts and I also see a few characters from the Android app make it to the USB serial port

- 我也有点困惑,为什么我无法获得标准样本,以便在框中开放标准eval板。如果这不起作用,它不会为未来提供良好:)

Thudwarp.
离线
Last seen:2年2个月前
Joined:2015-01-28 00:53
看起来我们举行了

看起来我们举行了check_sys_startup_period() , line 849 - while ((GetWord16(SYS_STAT_REG) & DBG_IS_UP) == DBG_IS_UP) {};

Why is the DBG_IS_UP flag not being asserted? Can you confirm that his SW actually has been tested on a BASIC board? It seems to work fine on an EXPERT board.

TR_Dialog
离线
Last seen:2 months 3 weeks ago
Staff
Joined:2014-06-30 23:52
嗨克里斯:

嗨克里斯:

Using the basic kit for DSPS requires some extra steps as outlined in section 8.1 of the user manual.

你试过这个配置吗?

谢谢,

TR_DIALOG

Thudwarp.
离线
Last seen:2年2个月前
Joined:2015-01-28 00:53
非常感谢回复。

非常感谢回复。

DSPS用户手册的第8.1节(UM-B-038)?这就是如何获取串行端口运行。我不是那里 - 广告不起作用,我无法连接。

或者我错过了一些相互作用吗?例如,由于未设置RTS,因此SW正在爆炸出来?

Also, why can I not use the serial port over the segger connection with no flow control? I can wire in another serial port, but ot seems an unnecessary hassle?

问候 - 克里斯

TR_Dialog
离线
Last seen:2 months 3 weeks ago
Staff
Joined:2014-06-30 23:52
嗨克里斯:

嗨克里斯:

以下是我们在电话交谈中讨论的几点:

- 您必须停止调试器的M0处理器以执行代码。这是必要的,因为与J-Link调试器的深度睡眠或延长休眠冲突。您必须停止调试器为设备启动广告。您还可以在每个项目的DA14580_CONFIG.H文件中禁用(undefine)睡眠模式,这将允许您使用调试器。

- While using DSPS project with the basic kit, some extra steps are needed to get data moving in both directions . These steps are outlined in section 8.1 of the user manual.

- Expert kit might be better platform for your evaluation process. Expert kit also allows you to use power meter feature of Smart Snippets to monitor current consumption in real time. You can also connect external current meters to measure peak and sleep mode currents.

谢谢,

TR_DIALOG

Thudwarp.
离线
Last seen:2年2个月前
Joined:2015-01-28 00:53
谢谢 。是的,睡眠模式是

谢谢 。是的,睡眠模式是罪魁祸首。关闭深睡眠,调试器很开心。

还启用SW流量控制而不是HW流量控制,并且SEGGER UART工作正常。

关闭。

xup14936
离线
Last seen:2年6个月前
Joined:2014-12-12 07:47
I am facing the same problem

I am facing the same problem as the original post using Expert Kit.
What should I do? There is no extra step for Expert kit in section 8.1 of the user manual.

Behzad.
离线
Last seen:3年6个月前
Joined:2015-01-27 17:53
I have a problem using Basic

我使用基本开发套件和DSPS参考设计存在问题。SPS_DEVICE项目使用JTAG编译并下载到电路板,但设备不会显示在DSPS Android应用程序中。我使用了sw_flow_ctrl:
#define cfg_uart_sw_flow_ctrl.
#undef cfg_uart_hw_flow_ctrl.
停止调试无关。
使用SmartSnippets下载将不会有任何区别。
使用DA14580_1,我的自定义板发生了同样的问题。
Could you please help?

MT_dialog
离线
Last seen:2个月1周前
Staff
Joined:2015-06-08 11:34
嗨behzad,

嗨behzad,

Check your FTDI connections, if your connections are ok please remove the sleep configuration in order to debug your program and see where the program stucks.

Thanks MT_dialog.

Behzad.
离线
Last seen:3年6个月前
Joined:2015-01-27 17:53
你好,谢谢你的回复

你好,谢谢你的回复
Now, the basic dev board works with DSPS and advertises the device.
However, the same code on my custom board does not advertise and does not show up in the DSPS android app. I have used the ref design in buck mode for the 50ohm antenna and have used a 3.3nH inductor very close to the chip. When the DSPS is downloaded and and the debugger is stopped, I probe from RFIOp and nothing shows on scope (except a very low amplitude signal around 50mv) while in dev board I can observe a good signal. The custom board uses this small antenna:http://www.farnell.com/datasheets/1819371.pdf.使用匹配的PI电路(没有匹配组件)。
50OHM阻抗匹配是多么重要?
Why do you think I don't see any signal when DSPS is running?
我是否需要改变我的定制委员会的DSP代码中的任何东西(除了GPIO拨款)?
I really appreciate your help.
谢谢