1. project->create new project
Tool chain:8051
Project_template:Empty_project
2.file->Save Workspace
3.file->New->file
4.project->add files
5.工程設定
project->options:
General Options->target:
Device:選擇Texas Instrument檔案夾下CC2530F256.i51(其中F256表示晶片的型号,我的型号是256)
Data model:選擇Large
General Options->Stack/Heap : 修改XDAT的值為0x1FF;
Linker->Output : 勾選Overidedefault,輸入***.hex;勾選Allow C-SPF-specific extra output file;
Linker->Config:勾選Overidedefault,點選右側省略号,選擇lnk51ew_cc2530F256_banked.xcl。(注意:此處如果選擇lnk51ew_cc2530F256.xcl可能導緻
CC2530編譯出現 Fatal Error[e72]: Segment BANKED_CODE must be defined in a segment definition option (-Z, -b or -P)
,原因是 IAR新版本使用舊版本檔案)
Debugger->Setup : 選擇Driver下拉框為Texas Instruments;勾選Device Description file的OveRide default,選擇ioCC2530F256.ddf(其中F256表示晶片信号)