Project Options->Linker->Input->Raw binary image

选择文件,填变量名,段名,对齐,如 symbol_0, .text, 4

还要在Keep symbols中填上对应的变量名 

symbol_0

 

然后就可以在 源文件 中使用此变量

extern unsigned int symbol_0;

extern unsigned char symbol_0[128];

 

IAR 链接外部二进制文件的实现

 

如果需要包含多个文件, 需要使用命令行实现

IAR 链接外部二进制文件的实现

 

相关文章:

  • 2022-12-23
  • 2022-03-07
  • 2022-01-20
  • 2023-02-17
  • 2022-12-23
  • 2022-12-23
  • 2021-06-21
  • 2021-05-29
猜你喜欢
  • 2022-12-23
  • 2021-12-27
  • 2022-01-19
  • 2021-11-20
  • 2021-12-27
  • 2022-01-01
相关资源
相似解决方案