完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
Heloi在ASM16MPLAB IDE V892MY程序中使用DSPIC4013程序运行良好。我做了一个修改和删除它之后它是不可能编译它我总是这个消息首先我在ASM中添加一些指令…………CLR W0;倾倒记忆符号MOV W4,W5;记忆ECAT POIDS福特MOV W2,W3;记忆ECAT PoID Fabel.………因为……因为没有UnFull,我没有删除这些指令,但是我制作了一个JuppBRA 9F………………CLR W0;倾倒记忆符号MOV W4,W5;记忆ECAT POIDS福特MOV W2,W3;记忆ECAT PoID Fabel.…………9……我编译程序没有问题,知道这个AF程序没有用,我用分号删除;文胸9F;……;……;……;CLR W0;倾注记忆符号;MOV W4,W5;记忆ECAT PoID Ford;MOV W2,W3;记忆ECAT POIDS FIIB。我编译并拥有了这个项目的DeaseGrime\EnguliCuxdSPIC30DSPARIGPROSTDSPICHRADIORROTROLYMPU6050V1,DSPRIGRADIROROTROMMPU6050V1.MCP'开始。语言工具版本:XC16-AS.EXE V1.24,XC16-GCC.EXE V1.24,XC16-LD.EXE V1.24,XC16-AR.EXE V1.24FRI Jun 02 12:05:12 2017 -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------微芯片xC16v1.24bin xx16gcc.exe“-OFF= COFP- MCPU= 30F4013-C”dSPICRIGRIROROTROMMPU6050V1.S“-O”dPicroRicroroTropMPU6050V1.O.-瓦城,-GdSPicro-DrRyroTropMp606050V1.S::9:29:警告:在末尾的额外令牌包括DrimiVictDicroroTropMPU6050V1.1.S:201:29:警告:额外令牌:(X)S的末尾包含了TrimivdDigiRoRoTryMp606050V1.S:汇编语言消息:DSPICHYPRORIROROTROMMPU6050V1.S: 1396:错误:本地标签“9”(FB标签的实例号5)不被定义为在第一次失败时按要求建立。发布项目“D”:DSPICE30DSPARIGPROSTDSPICHRADIOR50TROIMPUP5050YV1,DSPICRIGRIPRROTROYMMPU5050V1.MCP'失败。语言工具版本:XC16-AS.EXV1.24,XC16-GC.EXE V1.24,XC16-LD.EXE V1.24,XC16-AR.EXE V1.24FRI Jun 02 12:05:15 2017 ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------BuffeldDigRixRyRoTrORMMPU6050V1.S. 1396:它是程序的结束行,在那里有最后一条指令。结束消息似乎没有与“9”标签的PB有关系。……我已经删除了所有这段程序,编译。E和我有相同的消息删除了这个程序中的程序,编译它和我有相同的消息删除了我所有的程序!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!编译它,我有相同的消息重新启动我的电脑,重新安装一个新的项目,所有的文件再试一次…总是有问题我会很高兴如果有人能帮我解决这个问题,我不发现任何发行。
以上来自于百度翻译 以下为原文 Hello I use dsPIC4013 program in ASM16 MPLAB IDE V8.92 My program was always running very well. I have made a modification and delete it after that it's impossible compiling it Ive always this message first I add some instructions in asm ........... ............ clr w0 ;pour memorisation signe mov w4,w5 ;memorisation ecart poids ford mov w2,w3 ;memorisation ecart poids faible ........... ............ ............ after that because not usfull I have not deleted these instructions , but I have made a jump bra 9f ........... ............ ............ clr w0 ;pour memorisation signe mov w4,w5 ;memorisation ecart poids ford mov w2,w3 ;memorisation ecart poids faible ........... ............ ............ 9: I compile the program no problem And know seeing that this piece af program wasn't usefull I delete it with semicolon ; bra 9f ; ........... ; ............ ; ............ ; clr w0 ;pour memorisation signe ; mov w4,w5 ;memorisation ecart poids ford ; mov w2,w3 ;memorisation ecart poids faible ; ........... ; ............ ; ............ ; 9: I compile and have this message Release build of project `D:ElectroniqueMICROCONTROLEURdsPIC30dsPIC_ProgrammedsPIC_QUADRIROTOR_MPU6050_V1dsPIC_Quadrirotor_MPU6050_V1.mcp' started. Language tool versions: xc16-as.exe v1.24, xc16-gcc.exe v1.24, xc16-ld.exe v1.24, xc16-ar.exe v1.24 Fri Jun 02 12:05:12 2017 ---------------------------------------------------------------------- Make: The target "D:ElectroniqueMICROCONTROLEURdsPIC30dsPIC_ProgrammedsPIC_QUADRIROTOR_MPU6050_V1dsPIC_Quadrirotor_MPU6050_V1.o" is out of date. Executing: "C:Program Files (x86)Microchipxc16v1.24binxc16-gcc.exe" -omf=coff -mcpu=30F4013 -c "dsPIC_Quadrirotor_MPU6050_V1.S" -o"dsPIC_Quadrirotor_MPU6050_V1.o" -Wa,-g dsPIC_Quadrirotor_MPU6050_V1.S:199:29: warning: extra tokens at end of #include directive dsPIC_Quadrirotor_MPU6050_V1.S:201:29: warning: extra tokens at end of #include directive dsPIC_Quadrirotor_MPU6050_V1.S: Assembler messages: dsPIC_Quadrirotor_MPU6050_V1.S:1396: Error: local label `"9" (instance number 5 of a fb label)' is not defined Halting build on first failure as requested. ---------------------------------------------------------------------- Release build of project `D:ElectroniqueMICROCONTROLEURdsPIC30dsPIC_ProgrammedsPIC_QUADRIROTOR_MPU6050_V1dsPIC_Quadrirotor_MPU6050_V1.mcp' failed. Language tool versions: xc16-as.exe v1.24, xc16-gcc.exe v1.24, xc16-ld.exe v1.24, xc16-ar.exe v1.24 Fri Jun 02 12:05:15 2017 ---------------------------------------------------------------------- BUILD FAILED dsPIC_Quadrirotor_MPU6050_V1.S:1396 it's the end line of the program, where there is the last instruction .end The message seems not have a relation with pb of label "9" ............. I have deleted ALL THE this piece of program, compile it and I have the same message I have deleted THE PROGRAM in wich was this piece of program, compile it and I have the same message I have deleted ALL THE MY PROGRAM !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!, compile it and I have the same message I restart my computer, reinstall a new projet ,with all files try again....always the problem I woud be very happy if some one can help me to solve this problem, I don(t find any issu |
|
相关推荐
9个回答
|
|
|
你不应该有直接的数字作为标签,它是L9(本地标签),但是使用一个专有的名称:Ligeloop:一个字符名称不好,它不是1980个基本的。它会使你的代码难以阅读,没有混淆。1微秒1*MOV10*NOP10*DE2020BRA胸罩1*胸罩=42个周期1.05微秒@ fCy为40MHz。
以上来自于百度翻译 以下为原文 You shouldn't have straight numberals as labels, It is l9 (local label) but use a proper name like loop: A Single character name is not good, it's not 1980 basic. It will make your code hard to read. No confusion. 1 micro-second mov #10,w0 loop_delay: nop dec w0,w0 bra nz,loop_delay 1*mov 10*nop 10*dec 20*bra 1*bra =42 cycles 1.05 micro-seconds @fcy of 40MHz. |
|
|
|
|
|
非常感谢您的回答,这对我来说是个问题。我在ASM表中看到,我必须只使用9标签1, 2…3。9它不是非常好的标签,但是在宏重复使用的时候,使用相同的标签,ASM不喜欢它。!!!例如:宏非交互式……胸罩Z,Goice…………………恩,我的程序,我想用这个奇妙的宏数次…………………………………………………………………………汇编好这个包含这些宏的程序时,我会收到一个信息,就像已经用了标签1,…9,我没有,奇怪。我刚刚发现我的问题2天后,我重新启动一个新的项目和插入程序一个接一个……我发现,我确定的起源,它是一个文件,包括XXXX.INC没有宏或功能在这个时候在主程序中使用(XXX.INC是没有必要的!!!!!!!!!!)之后,我把XXX..c包括在3个其他的…X1.CN X2.CN,X3.CN中。这个动作可能清理了我的问题。这些unness文件在编译时没有问题,之后我可以使用这些文件中包含的函数和宏……标签没有重复。非常感谢你的回答。
以上来自于百度翻译 以下为原文 Thanks very much for your answer It's a problem for me I have seen in the sheet of asm that I must only use 9 label 1, 2 3....9 it 's not very much I prefere explicit label but in a macro repeted several time the same label is used and asm do not like it !!! example: .macro NotInteressant ... ... bra Z, GoHere ..... ..... GoHere: .... .... .endm In my program I woud like to use this wonderful macro several times .............. NotInteressant .......... ........ NotInteressant ............. When compiling this excellent program containing these macros I will have a message like that GoHere already used with label 1,..9 I haven't , strange I have just find my problem after 2 days I have restart a new project and insert program one after the other ....I have found and I identify the origin, it was a file #include xxxx.inc were no macro or functions were used at this time in the main program (xxx.inc was not necessary !!!!!!!) After that I cut #include xxxx.inc in 3 others ....x1.inc x2.inc , x3.inc this action has probably clean my problem. These unnessaries files at this time have created no problem at compilation, after that I could use functions and macros included in these files..... The label wasn't not repeated ...... A big thank for your answer |
|
|
|
|
|
HeloIT不是解决方案,编译是好的,但是程序不工作,我已经运行了一个运行良好的旧程序,我重建它,现在项目“D:EnguloCMICROLYLULDSPIC30DSPARIGPROSTDSPICHYPRORIROROTROMMPU6050V1DSPICHYPRODR”的问题发布版本语言工具版本:XC16-AS.EXE V1.24,XC16-GC.EXE V1.24,XC16-LD.EXE V1.24,XC16-AR.EXE V1.24FRI Jun 02 19:13:33 2017 -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------6050V1.DSPICRIXRIPROTROLYMPU6050V1.O“过时”执行:“C:程序芯片(x86)xC16VC24BIxC16Gcc.exe”-OFF=COFF -MCPU=30F4013 -C“dSPICRIXRIROROTROMMPU6050V1.S”-O“DSPICRIXRIROROTROMMPU6050V1.O 1.-瓦城,-GDSPICRIGRIGRIROROTROMMPU6050V1.1.S:1990:29:警告:E香蒲XTRA令牌在结束时包含了TrimixDigiRoRoType MPU6050YV1.S:201:29:警告:在末尾的额外令牌包括DrimiVestPrsigDigiRotoRyMp6050V1.V. S:汇编消息:DSPICHRADIORROROTURMMPU6050V1.S: 1396:错误:本地标签“9”(FB标签的实例号5)不确定终止B。在第一次失败的要求下,-------------------------------------------Dea:EnguloCyMcCyrBuffdSPIC30DSPICH Project DSPICH-DRIRROROTROMIPUP5050V1,DSPICRIXPRIROROTROMMPU6050V1.MCP''版本失败。语言工具版本:XC16-AS.EXE V1.24,XC16-GC.EXE V1.24,XC16-LD.EXE V1.24,XC16-AR.EXE V1.24FRI Jun 02 19:13:37 2017 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
以上来自于百度翻译 以下为原文 Hello It wasn't the solution , the compilation was ok but the program do not work I have taken an old program which was running very well , I rebuild it , and now the same problem Release build of project `D:ElectroniqueMICROCONTROLEURdsPIC30dsPIC_ProgrammedsPIC_QUADRIROTOR_MPU6050_V1dsPIC_Quadrirotor_MPU6050_V1.mcp' started. Language tool versions: xc16-as.exe v1.24, xc16-gcc.exe v1.24, xc16-ld.exe v1.24, xc16-ar.exe v1.24 Fri Jun 02 19:13:33 2017 ---------------------------------------------------------------------- Make: The target "D:ElectroniqueMICROCONTROLEURdsPIC30dsPIC_ProgrammedsPIC_QUADRIROTOR_MPU6050_V1dsPIC_Quadrirotor_MPU6050_V1.o" is out of date. Executing: "C:Program Files (x86)Microchipxc16v1.24binxc16-gcc.exe" -omf=coff -mcpu=30F4013 -c "dsPIC_Quadrirotor_MPU6050_V1.S" -o"dsPIC_Quadrirotor_MPU6050_V1.o" -Wa,-g dsPIC_Quadrirotor_MPU6050_V1.S:199:29: warning: extra tokens at end of #include directive dsPIC_Quadrirotor_MPU6050_V1.S:201:29: warning: extra tokens at end of #include directive dsPIC_Quadrirotor_MPU6050_V1.S: Assembler messages: dsPIC_Quadrirotor_MPU6050_V1.S:1396: Error: local label `"9" (instance number 5 of a fb label)' is not defined Halting build on first failure as requested. ---------------------------------------------------------------------- Release build of project `D:ElectroniqueMICROCONTROLEURdsPIC30dsPIC_ProgrammedsPIC_QUADRIROTOR_MPU6050_V1dsPIC_Quadrirotor_MPU6050_V1.mcp' failed. Language tool versions: xc16-as.exe v1.24, xc16-gcc.exe v1.24, xc16-ld.exe v1.24, xc16-ar.exe v1.24 Fri Jun 02 19:13:37 2017 ---------------------------------------------------------------------- BUILD FAILED There is an other problem unknown .... If any can help me it will be very nice Thank you |
|
|
|
|
|
你可以把你的函数放在单独的文件中,只要它们不是全局的,重复的标签就可以了。如果你的宏代码不跳远,那么手工计算分支没有任何标签。NOP - 2BRA + 8 0GOTO XXX 2CN W1,W1 6CN W1,W1 8 & LT;
以上来自于百度翻译 以下为原文 You can put your functions into separate files then repeated labels will be ok as long as they are not made global. If your macro code does not jump far then calculate the branches manually without any labels. nop -2 bra $+8 0 goto xxx 2 inc w1,w1 6 inc w1,w1 8 <------ |
|
|
|
|
|
谁告诉你那个***?去阅读ASM30/AS16关于本地标签NF[OrWord]和NB[AkWord]的手册,其中n是从0到9的数字!
以上来自于百度翻译 以下为原文 Who told you that bulls***? Go read the ASM30/AS16 manual about local labels Nf[orward] and Nb[ackward] where N is a number from 0 to 9! |
|
|
|
|
|
Maelia,如果你添加了一个最小化错误的代码片段,那将是非常有用的。
以上来自于百度翻译 以下为原文 MAELIA, It would be useful if you attach the minimized piece of code which throws that error. |
|
|
|
|
|
嗯,我记不清格式了,只是我从来没有用过的东西。
以上来自于百度翻译 以下为原文 @mbedder Yes, I couldn't remember the format, just something I never use. |
|
|
|
|
|
你好,你的答案很好,我读过这个关于ASM30/AS16的关于本地标签NF[OrWord]和NB[AkWord]的手册,其中n是从0到9的数字!这就是为什么我只使用5F或2B的标签,但我一次尝试10F它是好的,大多数时候我只有标签从0到9(F或B)在文件中加入宏“宏,Pid ConsigneAngle,角,陀螺仪,收货人,OCxRS,OCyRS,签署,KP,KI,Kd”你会看到一部分代码与SigCiOLUBR;胸罩9F;……:9:当跳动为Actuf==& gt时,没有编译半Calm==& gt问题的问题吗?????????????程序的所有这部分删除= = & gt;问题????????????????我也知道这样做跳,但很容易!!!!!!!!!!!!!!!!NOP -2BRA $+0GOTO XXX 2CN W1,W1 6CN W1,W1 8 & lt;-----这似乎是一个标签问题,因为在过去我没有任何问题,在这里我发现LA解决方案,但非常同意的另一种方式使标签不到8到9A,非常感谢您的帮助。
以上来自于百度翻译 以下为原文 Hello Wonderfull your answers I have read this "ASM30/AS16 manual about local labels Nf[orward] and Nb[ackward] where N is a number from 0 to 9!" it's the reason why I use only label like 5f or 2b , but one time I try 10f it was ok ,Most of the time I have only label from 0 to 9 ( f or b) In the file joined find the macro " .macro Pid ConsigneAngle,Angle,Gyro,ConsignePuissance,OCxRS,OCyRS,Signe,Kp,Ki,Kd" you will see a part of code with semicolum ;bra 9f ;.... :... ;9: When the jump was actif ==>no problem of compilation With semi colum ==>problem ?????????? All this part of program deleted ==> problem ??????????? I know also this way to do a jump but very easy !!!!!!!!!!! nop -2 bra $+8 0 goto xxx 2 inc w1,w1 6 inc w1,w1 8 <------ It seems that it is nit a problem of label, because in the past I haven't any problem, where cab I find la solution But a agree very much an other way to make label not with 0 to 9 A amazing thank for your help |
|
|
|
|
|
没有附加文件。除此之外,我的笔记不是为了你,而是为了GoT2015。
以上来自于百度翻译 以下为原文 There is no attached file. Besides, my note above was not for you but for Gort2015. |
|
|
|
|
只有小组成员才能发言,加入小组>>
MPLAB X IDE V6.25版本怎么对bootloader和应用程序进行烧录
501 浏览 0 评论
5808 浏览 9 评论
2350 浏览 8 评论
2237 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3543 浏览 3 评论
1155浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
1119浏览 1评论
我是Microchip 的代理商,有PIC16F1829T-I/SS 技术问题可以咨询我,微信:A-chip-Ti
887浏览 1评论
MPLAB X IDE V6.25版本怎么对bootloader和应用程序进行烧录
501浏览 0评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-12 05:53 , Processed in 0.826637 second(s), Total 90, Slave 73 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
3171