HLI
谢谢指点AN89610。
我已经阅读an89610本身修改后的链接脚本文件的初步设想。
重新阅读an89610后(特别是在23页),我的另一个解决方案,复制生成的链接脚本文件,修改它,在需要添加自定义的EEPROM的地址段。重命名链接器文件。它存储在项目源的根文件夹添加到项目中。如在AN89610中提到的:
“注意,链接器脚本文件是由
PSoC Creator在项目建设时间,并改变你
使这些文件可能被覆盖在未来建设。
你可以指示PSoC Creator使用一个自定义的脚本文件,
利用PSoC Creator的菜单项目的生成设置> >;
链接>;一般>;自定义链接脚本。
如果你使用一个自定义的链接脚本文件,是一个很好的实践
添加到项目(菜单项目>;现有项目…),
它保存在项目文件夹中。”
这解决了在编写链接脚本文件。
但我不是海湾合作委员会的专家。阅读文档和创建完全自定义的gcc链接脚本文件是不容易的。我会请有经验的人来验证我的解决方案,但它是这个项目的工作。
当做,
维奈
以上来自于百度翻译
以下为原文
HLI,
Thanks for pointing AN89610.
I have got the initial idea of modifying linker script file after reading AN89610 itself.
After re-reading AN89610, (specially around page 23), My another work around solution is, copy generated linker script file, modify it to add custom EEPROM section at needed address. Rename the linker file. Store it in project source root folder and add it back to project. As mentioned in AN89610 :
"
Note Linker script files are automatically generated by
PSoC Creator at project build time, and changes that you
make to those files may be overwritten on the next build.
You can instruct PSoC Creator to use a custom script file,
using the PSoC Creator menu Project > Build Settings >
Linker > General > Custom Linker Script.
If you use a custom linker script file, it is a best practice to
add it to the project (menu Project > Existing Item…) and
save it in the project folder."
This solves issue of over written linker script file.
But I am not a GCC expert. And reading GCC documentation and creating fully custom linker script file is not easy. I would request experienced people to validate my solution, though it is working with this project.
Regards,
Vinay
HLI
谢谢指点AN89610。
我已经阅读an89610本身修改后的链接脚本文件的初步设想。
重新阅读an89610后(特别是在23页),我的另一个解决方案,复制生成的链接脚本文件,修改它,在需要添加自定义的EEPROM的地址段。重命名链接器文件。它存储在项目源的根文件夹添加到项目中。如在AN89610中提到的:
“注意,链接器脚本文件是由
PSoC Creator在项目建设时间,并改变你
使这些文件可能被覆盖在未来建设。
你可以指示PSoC Creator使用一个自定义的脚本文件,
利用PSoC Creator的菜单项目的生成设置> >;
链接>;一般>;自定义链接脚本。
如果你使用一个自定义的链接脚本文件,是一个很好的实践
添加到项目(菜单项目>;现有项目…),
它保存在项目文件夹中。”
这解决了在编写链接脚本文件。
但我不是海湾合作委员会的专家。阅读文档和创建完全自定义的gcc链接脚本文件是不容易的。我会请有经验的人来验证我的解决方案,但它是这个项目的工作。
当做,
维奈
以上来自于百度翻译
以下为原文
HLI,
Thanks for pointing AN89610.
I have got the initial idea of modifying linker script file after reading AN89610 itself.
After re-reading AN89610, (specially around page 23), My another work around solution is, copy generated linker script file, modify it to add custom EEPROM section at needed address. Rename the linker file. Store it in project source root folder and add it back to project. As mentioned in AN89610 :
"
Note Linker script files are automatically generated by
PSoC Creator at project build time, and changes that you
make to those files may be overwritten on the next build.
You can instruct PSoC Creator to use a custom script file,
using the PSoC Creator menu Project > Build Settings >
Linker > General > Custom Linker Script.
If you use a custom linker script file, it is a best practice to
add it to the project (menu Project > Existing Item…) and
save it in the project folder."
This solves issue of over written linker script file.
But I am not a GCC expert. And reading GCC documentation and creating fully custom linker script file is not easy. I would request experienced people to validate my solution, though it is working with this project.
Regards,
Vinay
举报