Segment BANKED_CODE must be defined in a segment definition option (-Z, -b or -P)

是链接(Link)时出错:
Fatal Error[e72]: Segment BANKED_CODE must be defined in a segment definition option (-Z, -b or -P)

原因是IAR新版本使用旧版本文件


解决方法:
打开project->options->linker->config->override default
选择文件C:Program Files (x86)IAR SystemsEmbedded Workbench 6.0 Evaluation8051configdevicesTexas Instrumentslnk51ew_cc2530F256_banked.xcl


选择banked的xcl文件即可,具体的文件可根据所用的芯片型号来选择。

转载自:https://www.cnblogs.com/killer-xc/p/4764826.html

原文地址:https://www.cnblogs.com/2020zxc/p/13872769.html