IAR+STVP烧录程序排错

版权声明:本文为博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/Naiva/article/details/82348312


dutycycle_test

IAR破解+安装驱动 破解方法:http://swww.jb51.netsoftjc539669_all.html


关于烧录的时候出错的问题:
stvp烧录(stvp烧录的时候配置)一遍再去IAR里面烧录:https://blog.csdn.net/sheeptech/article/details/79852111

关于使用stvp下载程序的问题:
http://bbs.21ic.com/icview-264824-1-1.html
http://bbs.21ic.com/icview-1238618-1-1.html

Cannot communicate with the device!
check the SWIM cable connection and check all the needed pin
connections on the SWIM connector.

Error : < PROGRAM MEMORY programming failed. 
Error : < Operation aborted.

关于IAR无法下载程序的问题:
https://blog.csdn.net/lan120576664/article/details/40657979


总结:由于板子本身的原因或者程序的原因导致下载程序的时候需要复位+蜂鸣器鸣响之前 download and debbuger(烧录)
 

展开阅读全文

程序排错....

12-08

我用程序把一个文件转化为一个十六进制的txt文档像这样rnFF D8 FF E0 00 10 4A 46 49 46 00 01 01 01 00 48 00 48 00 00 FF ED 18 CA 50 68 6F 74 6F 73 68 6F 70 20 33 2E 30 00 38 42 49 4D 04 25 00 00 00 00 00 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 38 42 49 4D 03 ED 00 00 00 00 00 10 00 48 00 00 00 01 00 02 00 48 00 00 00 01 00 02 38 42 49 4D 04 26 00 00 00 00 00 0E 00 00 00 00 00 00 00 00 00 00 3F 80 00 00 38 42 49 4D 04 0D 00 00 00 00 00 04 00 00 00 1E 38 42 49 4D 04 19 00 00 00 00 00 04 00 00 00 1E 38 42 49 4D 03 F3 00 00 00 00 00 09 00 00 00 00 00 00 00 00 01 00 38 42 49 4D 04 0A 00 00 00 00 00 01 00 00 38 42 49 4D 27 10 00 00 00 00 00 0A 00 01 00 00 00 00 00 00 00 02 38 42 49 4D 03 F5 00 00 00 00 00 48 00 2F 66 66 00 01 00 6C 66 66 00 06 00 00 00 00 00 01 00 2F 66 66 00 01 00 A1 99 9A 00 06 00 00 00 00 00 01 00 32 00 00 00 01 00 5A 00 00 00 06 00 00 00 00 00 01 00 35 00 00 00 01 00 2D 00 00 00 06 00 00 00 00 00 01 38 42 49 4D 03 F8 00 00 00 00 00 70 00 00 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 03 E8 00 00 00 00 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 03 E8 00 00 00 00 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 03 E8 00 00 00 00 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 03 E8 00 00 38 42 49 4D 04 08 00 00 00 00 00 10 00 00 00 01 00 00 02 40 00 00 02 40 00 00 00 00 38 42 49 4D 04 1E 00 00 00 00 00 04 00 00 00 00 38 42 49 4D 04 1A 00 00 00 00 03 39 00 00 00 06 00 00 00 00 00 00 00 00 00 00 01 67 00 00 01 DF 00 00 00 02 54 09 9A D8 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 01 DF 00 00 01 67 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 rn.....rn想把它再转为原来的文件写了个程序发现不行rn[code=C/C++]#includern#includernvoid main()rnrn int buffer;rn FILE *f1, *f2;rn if(f1=fopen("生成代码.txt","r")==NULL)rn //生成代码为十六进制的txtrn printf("找不到文件");rn exit(0);rn rn if((f2=fopen("生成文件","wb"))==NULL) //生成文件极为原文件rn rn printf("无法生成文件");rn exit(0);rn rnrnrn while(1)rn rn rn fscanf(f1,"%x",&buffer);rn if(feof(f1)) break;rn fwrite(&buffer,1,1,f2);rn rnfclose(f1);rnfclose(f2);rn[/code] 论坛

分页显示程序排错

08-27

我这里有一个分页显示的程序已知在 “response.write"" & rst.AbsolutePosition & "" & _” 出错,请高手帮忙,并且一并排除其他错误。(注释掉的语句是我自己做过的修改)rnrnrn 'option explicitrn response.expires=0rn const intpagesize=6rn dim intcur,inttotal,irn dim num,conn,rst,strNorn rn if request.ServerVariables("content_length")=0 thenrn intcur=1rn elsern intcur=cint(request.form("curpage"))rn select case request.form("curpage")rn case"首页"rn intcur=1rn case"上一页"rn intcur=intcur-1rn case"下一页"rn intcur=intcur+1rn case"首页"rn intcur=cint(request.form("lastpage"))rn end selectrn end if rn rn rn rn num=request.form("No")rn set conn=server.createobject("adodb.connection")rn conn.open "sbgl"rn set rst=server.createobject("adodb.recordset")rn rst.CursorLocation=1rn 'rst.CursorType=adopenstaticrn rst.CacheSize=intpagesizern strNo="select * from equipment where equipment_No='"& num &"'"rn 'rst.open strNo,connrn rst.open strNo,conn,1,1rn rst.pagesize=intpagesizernrn if not rst.eof thenrn 'rst.absolutepage=intCurrn rn 'rst.PageSize=10rn count=rst.PageSizern if request("CurrentPage")="" then rn rst.AbsolutePage=1rn CurrentPage=1rn else rn rst.AbsolutePage=request("CurrentPage")rn CurrentPage=Cint(request("CurrentPage"))rn rn end ifrn inttotal=rst.PageCountrn%>rnrnrnrnrnrnrn 查询结果rnrnrnrn 找到的记录一共<%=rst.recordcount%>条 共<%=inttotal%>页 rn当前是第<%=intcur%>页 rn rn " method="post"> rn rn rn rn <%if intcur>1 then%> rn rn <%end if%> rn <%if intcur<>inttotal then%> rn rn <%end if%> rn rn rn <% rn i=0 rn response.write" " rn do while not rst.eof and i " & rst.AbsolutePosition & "" & _ rn " " & rst("equipment_No") & "" & _ rn " " & rst("company") & "" & _ rn " " & rst("department") & "" & _ rn " " & rst("equipment_name") & "" & _ rn " " & rst("equipment_type") & "" & _ rn " " & rst("equipment_level") & "" & _ rn " " & rst("system") & "" & _ rn " " & rst("software") & "" & _ rn " " & rst("IP_address") & "" & _ rn " " & rst("user") & "" & _ rn " " & rst("accepter") & "" & _ rn " " & rst("accept_year") & "" & _ rn " " & rst("accept_month") & "" & _ rn " " & rst("remark") & "" rn rst.movenext rn i=i+1 rn loop rn response.write"" rn rst.close rn conn.close rn else rn rst.close rn conn.close rn %> rn rn <% rn end if rn 论坛

没有更多推荐了,返回首页