2012年12月3日 星期一

[Zigbee][CC2531] make USB firmware with IAR

In order to change CC2531 USB dongle to USB CDC device, I downloaded swrc088c.zip (The Texas Instruments LPRF USB Firmware Library (Rev. B) ) and tried to make a CDC firmware of it.

the first problem I met is that the IAR project file (\ide\rfusb_cc2531\iar\rf_modem.eww) was made by  older IAR version so my IAR (8.10.3) asked me to convert it to this version. After doing so, the make operation still didn't go through because of [ Error[e12]: Unable to open file 'lnk51ew_cc2531b.xcl' ].

After quick searching at e2e, the thread IAR 7.6 linker error did provide solution of it.


-Right click on the top level project file in the 'Workspace' window
-Select 'Options'
-From the 'Category' box on the left, select 'Linker'
-Select the 'Config' tab
-In the 'Linker command file' box, make sure 'Override defaults' is checked
-Choose the proper linker file


in my case, the file is IAR Systems\Embedded Workbench 6.0\8051\config\devices\Texas Instruments\lnk51ew_cc2531F256.xcl

After reboot the dongle and installing the device driver (swrc088c\driver\usb_cdc_driver_cc2511.inf), the CC2531 CDC was successfully running.


沒有留言:

張貼留言