H
huylong
Guest
Chào các anh chi trên diễn đàn, em đã tải code mẫu điều khiển LCD 1202 về cho chạy trên IAR và CCS nhưng cả 2 đều không chạy được, vậy anh chị cho em xin code mẫu trên IAR nhé. cảm ơn anh chị.
Tiện thể anh chị cho em biết cách tạo file thư viện .h trên IAR với ạ
Đây là lỗi khi em nạp code trên IAR: ( khi dịch thì không có lỗi gì hết )
Building configuration: LCD1 - Debug
Updating build tree...
Linking
xlink.exe C:\Documents and Settings\Admin\Desktop\STE2007_driver_msp430\Debug\Obj\main.r43 -o C:\Documents
and Settings\Admin\Desktop\STE2007_driver_msp430\Debug\Exe\LCD1.d43 -l C:\Documents and Settings\Admin\
Desktop\STE2007_driver_msp430\Debug\List\LCD1.map -xms -IC:\Program Files\IAR Systems\Embedded Workbench
6.0 Evaluation\430\LIB\ -f C:\Program Files\IAR Systems\Embedded Workbench 6.0 Evaluation\430\CONFIG\
lnk430G2452.xcl -D_STACK_SIZE=50 -rt C:\Program Files\IAR Systems\Embedded Workbench 6.0 Evaluation\430\LIB\
DLIB\dl430fn.r43 -e_PrintfLarge=_Printf -e_ScanfLarge=_Scanf -D_DATA16_HEAP_SIZE=50 -s __program_start
-D_DATA20_HEAP_SIZE=50
IAR Universal Linker V5.2.1.11
Copyright 1987-2011 IAR Systems AB.
Error[e46]: Undefined external "lcd_init" referred in main ( C:\Documents and Settings\Admin\Desktop\
STE2007_driver_msp430\Debug\Obj\main.r43 )
Error[e46]: Undefined external "lcd_clear" referred in main ( C:\Documents and Settings\Admin\Desktop\
STE2007_driver_msp430\Debug\Obj\main.r43 )
Error[e46]: Undefined external "lcd_write" referred in main ( C:\Documents and Settings\Admin\Desktop\
STE2007_driver_msp430\Debug\Obj\main.r43 )
Error[e46]: Undefined external "lcd_gotoxy" referred in main ( C:\Documents and Settings\Admin\Desktop\
STE2007_driver_msp430\Debug\Obj\main.r43 )
Error[e46]: Undefined external "lcd_puts" referred in main ( C:\Documents and Settings\Admin\Desktop\
STE2007_driver_msp430\Debug\Obj\main.r43 )
146 bytes of CODE memory
80 bytes of DATA memory (+ 6 absolute )
829 bytes of CONST memory
Errors: 5
Warnings: none
Error while running Linker
Total number of errors: 5
Total number of warnings: 0
Tiện thể anh chị cho em biết cách tạo file thư viện .h trên IAR với ạ
Đây là lỗi khi em nạp code trên IAR: ( khi dịch thì không có lỗi gì hết )
Building configuration: LCD1 - Debug
Updating build tree...
Linking
xlink.exe C:\Documents and Settings\Admin\Desktop\STE2007_driver_msp430\Debug\Obj\main.r43 -o C:\Documents
and Settings\Admin\Desktop\STE2007_driver_msp430\Debug\Exe\LCD1.d43 -l C:\Documents and Settings\Admin\
Desktop\STE2007_driver_msp430\Debug\List\LCD1.map -xms -IC:\Program Files\IAR Systems\Embedded Workbench
6.0 Evaluation\430\LIB\ -f C:\Program Files\IAR Systems\Embedded Workbench 6.0 Evaluation\430\CONFIG\
lnk430G2452.xcl -D_STACK_SIZE=50 -rt C:\Program Files\IAR Systems\Embedded Workbench 6.0 Evaluation\430\LIB\
DLIB\dl430fn.r43 -e_PrintfLarge=_Printf -e_ScanfLarge=_Scanf -D_DATA16_HEAP_SIZE=50 -s __program_start
-D_DATA20_HEAP_SIZE=50
IAR Universal Linker V5.2.1.11
Copyright 1987-2011 IAR Systems AB.
Error[e46]: Undefined external "lcd_init" referred in main ( C:\Documents and Settings\Admin\Desktop\
STE2007_driver_msp430\Debug\Obj\main.r43 )
Error[e46]: Undefined external "lcd_clear" referred in main ( C:\Documents and Settings\Admin\Desktop\
STE2007_driver_msp430\Debug\Obj\main.r43 )
Error[e46]: Undefined external "lcd_write" referred in main ( C:\Documents and Settings\Admin\Desktop\
STE2007_driver_msp430\Debug\Obj\main.r43 )
Error[e46]: Undefined external "lcd_gotoxy" referred in main ( C:\Documents and Settings\Admin\Desktop\
STE2007_driver_msp430\Debug\Obj\main.r43 )
Error[e46]: Undefined external "lcd_puts" referred in main ( C:\Documents and Settings\Admin\Desktop\
STE2007_driver_msp430\Debug\Obj\main.r43 )
146 bytes of CODE memory
80 bytes of DATA memory (+ 6 absolute )
829 bytes of CONST memory
Errors: 5
Warnings: none
Error while running Linker
Total number of errors: 5
Total number of warnings: 0