串口服务在基本开发板上不工作

3个帖子/ 0个新帖子
最后发表
saleem145
离线
最后看到:6年2个月前
加入:2015-03-19 00:49
串口服务在基本开发板上不工作

你好,

它可以编译,但无法运行

运行代码大小限制:32K
* JLink Info:选中未指定的设备。
设置JLink项目文件为"C:\Users\Alison\Desktop\DA14580_DSPS_3.150.2 __13_2_2015\DA14580_DSPS_3.150.2\dk_apps\keil_projects\sps\sps_device\JLinkSettings.ini"* JLink Info: Device "UNSPECIFIED" selected。

JLink信息:
------------
DLL: V4.98a,编译于2015年3月26日18:40:07
固件:J-Link OB-SAM3U128 V1 compiled Nov 28 2014 10:24:11
硬件:V1.00
S / N: 480054954

* JLink Info: Found SWD-DP with ID 0x0BB11477
* JLink Info: Found Cortex-M0 r0p0, Little endian。
* JLink Info: FPUnit: 4代码(BP)槽和0文字槽
* JLink信息:CoreSight组件:
* JLink Info: ROMTbl 0 @ E00FF000
* JLink Info: ROMTbl 0 [0]: FFF0F000, CID: B105E00D, PID: 000BB008 SCS
* JLink Info: ROMTbl 0 [1]: FFF02000, CID: B105E00D, PID: 000BB00A DWT
* JLink Info: ROMTbl 0 [2]: FFF03000, CID: B105E00D, PID: 000BB00B FPB
ROMTableAddr = 0 xe00ff003

目标信息:
------------
设备:DA14580
VTarget = 3.300 v
引脚状态:TCK: 0, TDI: 0, TDO: 1, TMS: 1, TRES: 1, TRST: 1
Hardware-Breakpoints: 4
Software-Breakpoints: 8192
监测点:2
JTAG速度:16667千赫

负载“C: \ \ \ \艾莉森\ \用户桌面\ \ DA14580_DSPS_3.150.2___13_2_2015 \ \ DA14580_DSPS_3.150.2 \ \ dk_apps \ \ keil_projects \ \ sps \ \ sps_device \ \ \ \ sps_device.axf”

***限制版本与32768字节码大小限制
***当前使用:15516字节(47%)

包括“C: \ \ \ \艾莉森\ \用户桌面\ \ DA14580_DSPS_3.150.2___13_2_2015 \ \ DA14580_DSPS_3.150.2 \ \ dk_apps \ \ keil_projects \ \ sps \ \ sps_device \\..\\..\\..\\ misc \ \ sysram_case23.ini”
/*杀死按钮* */
/* DEFINE BUTTON "Reset DK580", "include ../../misc/sysram_case23.ini
重置
E长0x50000012 = 0xa4
E long 0x50003308 = 0x2e
负载% L

***限制版本与32768字节码大小限制
***当前使用:15516字节(47%)

SP = _RDWORD (0x20000000)
$ = _RDWORD (0x20000004)

函数void disp_memlog(空白)

int idx;
unsigned int min_delta;

exec(“日志> Memlog.log”);

printf("\n\n***内存日志记录结果***\n\n");

printf(">>> ENV HEAP <<<\n");
printf("Used size in this HEAP: %4d (current) - %4d (maximum)\n", mem_log[0]. printf("Used size in this HEAP: %4d (current) - %4d (maximum)\n",used_sz, mem_log [0] .max_used_sz);
printf("Used size in other HEAPs: %4d (current) - %4d (maximum)\n\n", mem_log[0]. printf("Used size in other HEAPs: %4d (current) - %4d (maximum)\n\n")used_other_sz, mem_log [0] .max_used_other_sz);

printf(">>> DB HEAP <<<\n");
printf("Used size in this HEAP: %4d (current) - %4d (maximum)\n", mem_log[1]. printf("Used size in this HEAP: %4d (current) - %4d (maximum)\n",used_sz, mem_log [1] .max_used_sz);
printf("Used size in other HEAPs: %4d (current) - %4d (maximum)\n\n", mem_log[1]. printf("Used size in other HEAPs: %4d (current) - %4d (maximum)\n\n")used_other_sz, mem_log [1] .max_used_other_sz);

printf(">>> MSG HEAP <<<\n");
printf("Used size in this HEAP: %4d (current) - %4d (maximum)\n", mem_log[2]. printf("Used size in this HEAP: %4d (current) - %4d (maximum)\n",used_sz, mem_log [2] .max_used_sz);
printf("Used size in other HEAPs: %4d (current) - %4d (maximum)\n\n", mem_log[2]. printf("Used size in other HEAPs: %4d (current) - %4d (maximum)\n\n")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]. printf("Used size in this HEAP: %4d (current) - %4d (maximum)\n",used_sz, mem_log [3] .max_used_sz);
printf("Used size in other HEAPs: %4d (current) - %4d (maximum)\n\n", mem_log[3]. printf("Used size in other HEAPs: %4d (current) - %4d (maximum)\n\n")used_other_sz, mem_log [3] .max_used_other_sz);

exec(“注销”);
} / / disp_memlog()结束

函数void displayvalues(空白)

int idx;
unsigned int min_delta;

exec(“日志> MyValues.log”);
printf (" * * * dbg_remaining_times [] \ n”);
For (idx = 0;idx < 100;idx + +) {
printf (" % d \ n”,dbg_remaining_times [idx]);
____________________^
***错误34,第51行:未定义标识符

printf (" * * * dbg_sleep_times [] \ n”);
For (idx = 0;idx < 100;idx + +) {
printf (" % d \ n”,dbg_sleep_times [idx]);
____________________^
***错误34,第55行:未定义标识符

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 = 0 xffffffff;
printf("三角洲max \ n”);
For (idx = 0;idx < 100;idx + +) {
int结果;
If (dbg_remaining_times[idx] < 170)
________ ^
***错误34,第66行:未定义标识符
Result = 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("达美航空敏\ n”);
For (idx = 0;idx < 100;idx + +) {
int结果;
If (dbg_remaining_times[idx] < 400)
________ ^
***错误34,第76行:未定义标识符
Result = 625 + dbg_remaining_times[idx] - 400;
_____________________^
***错误34,第77行:未定义标识符
其他的
Result = 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]);
____________________^
***错误34,第86行:未定义标识符

printf("minimum logged SLP rem time: %d\n", dbg_slp_rem_min);
______________________________________________^
***错误34,第88行:未定义标识符
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);
__________________________________________________________^
***错误34,第90行:未定义标识符
exec(“注销”);
} / / displayvalues()结束
rxdesc WS 1”

saleem145
离线
最后看到:6年2个月前
加入:2015-03-19 00:49
工作必须改变

要让它工作,必须改变一些跳线设置,然后使用FTDI电缆和智能代码片段下载代码

JE_Dialog
离线
最后看到:3个月2个星期前
工作人员
加入:2013-12-05 14:02
谢谢你告诉我们

谢谢你让我们知道你把它修好了。这在很大程度上取决于跳线的正确设置和使用FTDI电缆进行流量控制。

BR JE_DIalog