最近在写ILI9325的驱动程序,单片机是MSP430F149,程序是从51单片机上拿过来改的,51单片机上可以正常工作,但是用IAR编译的时候,却出现了下面的错误:
Building configuration: 彩屏驱动 - Debug
Updating build tree...
ILI9325.c
main.c
Linking
Error[e16]: Segment DATA16_I (size: 0xe04 align: 0x1) is too long for segment definition. At least 0x604 more bytes needed. The problem occurred while
processing the segment placement command "-Z(DATA)DATA16_I,DATA16_Z,DATA16_N,DATA16_HEAP+_DATA16_HEAP_SIZE=0200-09FF", where
at the moment of placement the available memory ranges were "CODE:200-9ff"
Reserved ranges relevant to this placement:
200-9ff DATA16_I
Error while running Linker
Total number of errors: 1
Total number of warnings: 0
不知道这是什么错误,希望高手可以指点一下!附件是程序,希望高手可以帮忙看一下,谢谢了!
彩屏驱动程序.rar
(126.14 KB)
|