关于ST Visual Develop环境编译出现bad addressing mode是怎么回事

2019-03-23 17:33发布

最近在IAR上做的一个关于STM8S208MB的一个功能模块,移植到ST Visual Develop环境编译出现bad addressing mode是怎么回事。具体错误信息如下:
#error castm8 C:DOCUME~1OwnerLOCALS~1Temps570.cx1:1531 bad addressing mode
....src adio.c:
The command: "cxstm8 +modsl +debug -pxp +compact +split -pp -l -i....inc -i......librariesstm8s_stdperiph_driverinc -i"C:Program FilesCOSMICCXSTM8Hstm8"  -clDebug -coDebug ....src adio.c" has failed, the returned value is: 1
exit code=1.
求大侠解救,在线等待中。。。 此帖出自小平头技术问答
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
3条回答
tinaliang
2019-03-24 00:35
是不是这块配置有问题了。现在问题全变成变量重定义了。
clnk -l"C:Program FilesCOSMICCXSTM8Lib"  -o Debugproject.sm8 -mDebugproject.map Debugproject.lkf
#error clnk Debugproject.lkf:33 Debugadc.o: symbol _STFlag multiply defined (Debugacc.o)
#error clnk Debugproject.lkf:33 Debugadc.o: symbol _STNum multiply defined (Debugacc.o)
#error clnk Debugproject.lkf:33 Debugadc.o: symbol _RadioPreviw_6second multiply defined (Debugacc.o)
#error clnk Debugproject.lkf:33 Debugadc.o: symbol _Radiostation_count_Preview multiply defined (Debugacc.o)
#error clnk Debugproject.lkf:33 Debugadc.o: symbol _SeekCondition_FM_USN multiply defined (Debugacc.o)
#error clnk Debugproject.lkf:33 Debugadc.o: symbol _FM2 multiply defined (Debugacc.o)
#error clnk Debugproject.lkf:33 Debugadc.o: symbol _n multiply defined (Debugacc.o)
#error clnk Debugproject.lkf:33 Debugadc.o: symbol _Radio_Previewcount multiply defined (Debugacc.o)
#error clnk Debugproject.lkf:33 Debugadc.o: symbol _SeekCondition_Ifcount multiply defined (Debugacc.o)
#error clnk Debugproject.lkf:33 Debugadc.o: symbol _RADIO_weaksingnal multiply defined (Debugacc.o)
#error clnk Debugproject.lkf:33 Debugadc.o: symbol _high_frq multiply defined (Debugacc.o)
#error clnk Debugproject.lkf:33 Debugadc.o: symbol _low_frq multiply defined (Debugacc.o)
#error clnk Debugproject.lkf:33 Debugadc.o: symbol _SeekCondition_FM_WAM multiply defined (Debugacc.o)
#error clnk Debugproject.lkf:33 Debugadc.o: symbol _FMVocLevel multiply defined (Debugacc.o)
#error clnk Debugproject.lkf:33 Debugadc.o: symbol _SeekCondition_AM_Level multiply defined (Debugacc.o)
#error clnk Debugproject.lkf:33 Debugadc.o: symbol _SeekCondition_FM_Level multiply defined (Debugacc.o)
#error clnk Debugproject.lkf:34 Debugaud_main.o: symbol _STFlag multiply defined (Debugacc.o)
#error clnk Debugproject.lkf:34 Debugaud_main.o: symbol _STNum multiply defined (Debugacc.o)
#error clnk Debugproject.lkf:34 Debugaud_main.o: symbol _RadioPreviw_6second multiply defined (Debugacc.o)
#error clnk Debugproject.lkf:34 Debugaud_main.o: symbol _Radiostation_count_Preview multiply defined (Debugacc.o)

一周热门 更多>