Zynq UltraScale+ MPSoC - Debugging FSBL application does not show source code

https://china.xilinx.com/support/answers/69269.html
https://china.xilinx.com/support/answers/71671.html

I am debugging my FSBL on a Zynq UltraScale+ MPSoC and I cannot see the source code when debugging, only assembly. 


 

解决方案

The default settings of the FSBL application includes the standard link optimization. 

In order to debug the code, remove the "-flto" flag from the Miscellaneous compiler options.

https://china.xilinx.com/support/answers/71671.html

描述

FSBL 应用上的 Xilinx 系统调试器 (XSDB) 不允许进行 c 代码调试,也不允许在 FSBL 代码中存放断点。

这是因为设置了用于优化代码量的标志。

解决方案

要解决该问题,请打开 FSBL 应用的 C/C++ 设置。

在“ARM v8 gcc 编译器”-> 其它 -> 其它标志下,请注意以下设置:

-c -fmessage-length=0 -MT"$@" -Os -flto -ffat-lto-objects

移除优化和链接时间优化的标志,如下:

-c -fmessage-length=0 -MT"$@"

在重新编译并重启调试会话之后,应该会出现 C 符号,而且存放断点的作用应该和预期的一样。
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值