本帖最后由 ygoss 于 2010-3-20 14:24 编辑
我用的编译器是COSMIC。程序一旦超过32K就会提示以下错误。之前有网友遇到过此问题,但贴子总是不了了之,不知有没有解决。我将所有的函数都加了@far,依然会出错。
怀疑是LINK程序问题,但又不知如何设置。
Running Linker
clnk -l"C:\Program Files\COSMIC\CXSTM8\Lib" -o Debug\stm8.sm8 -mDebug\stm8.map Debug\stm8.lkf
#error clnk Debug\stm8.lkf:84 Debug\stm8_interrupt_vector.o: section 0 expected (.text:0000)
#error clnk Debug\stm8.lkf:84 Debug\stm8_interrupt_vector.o: section 0 expected (.text:0000)
#error clnk Debug\stm8.lkf:84 Debug\stm8_interrupt_vector.o: section 0 expected (.text:0000)
#error clnk Debug\stm8.lkf:84 Debug\stm8_interrupt_vector.o: section 0 expected (.text:0000)
#error clnk Debug\stm8.lkf:84 Debug\stm8_interrupt_vector.o: section 0 expected (.text:0000)
#error clnk Debug\stm8.lkf:84 Debug\stm8_interrupt_vector.o: section 0 expected (.text:0000)
#error clnk Debug\stm8.lkf:84 Debug\stm8_interrupt_vector.o: section 0 expected (.text:0000)
#error clnk Debug\stm8.lkf:84 Debug\stm8_interrupt_vector.o: section 0 expected (.text:0000)
#error clnk Debug\stm8.lkf:84 Debug\stm8_interrupt_vector.o: section 0 expected (.text:0000)
#error clnk Debug\stm8.lkf:84 Debug\stm8_interrupt_vector.o: section 0 expected (.text:0000)
#error clnk Debug\stm8.lkf:84 Debug\stm8_interrupt_vector.o: section 0 expected (.text:0000)
#error clnk Debug\stm8.lkf:84 Debug\stm8_interrupt_vector.o: section 0 expected (.text:0000)
#error clnk Debug\stm8.lkf:84 Debug\stm8_interrupt_vector.o: section 0 expected (.text:0000)
#error clnk Debug\stm8.lkf:84 Debug\stm8_interrupt_vector.o: section 0 expected (.text:0000)
#error clnk Debug\stm8.lkf:84 Debug\stm8_interrupt_vector.o: section 0 expected (.text:0000)
#error clnk Debug\stm8.lkf:84 Debug\stm8_interrupt_vector.o: section 0 expected (.text:0000)
#error clnk Debug\stm8.lkf:84 Debug\stm8_interrupt_vector.o: section 0 expected (.text:0000)
#error clnk Debug\stm8.lkf:84 Debug\stm8_interrupt_vector.o: section 0 expected (.text:0000)
#error clnk Debug\stm8.lkf:84 Debug\stm8_interrupt_vector.o: section 0 expected (.text:0000)
#error clnk Debug\stm8.lkf:84 Debug\stm8_interrupt_vector.o: section 0 expected (.text:0000)
#error clnk Debug\stm8.lkf:84 Debug\stm8_interrupt_vector.o: section 0 expected (.text:0000)
#error clnk Debug\stm8.lkf:84 Debug\stm8_interrupt_vector.o: section 0 expected (.text:0000)
#error clnk Debug\stm8.lkf:84 Debug\stm8_interrupt_vector.o: section 0 expected (.text:0000)
#error clnk Debug\stm8.lkf:84 Debug\stm8_interrupt_vector.o: section 0 expected (.text:0000)
#error clnk Debug\stm8.lkf:84 Debug\stm8_interrupt_vector.o: section 0 expected (.text:0000)
#error clnk Debug\stm8.lkf:84 Debug\stm8_interrupt_vector.o: section 0 expected (.text:0000)
The command: "clnk -l"C:\Program Files\COSMIC\CXSTM8\Lib" -o Debug\stm8.sm8 -mDebug\stm8.map Debug\stm8.lkf " has failed, the returned value is: 1
exit code=1.
stm8.elf - 28 error(s), 0 warning(s) |