cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Scholar
Scholar
951 Views
Registered: ‎04-27-2010

SDK cant set a breakpoint in a Xilinx file

Jump to solution

I am trying to debug a serial flash file in SDK 2018.1. When I place a breakpoint I get the error shown below. Does anyone know how to resolve this? Thanks

 

Untitled.png

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Xilinx Employee
Xilinx Employee
1,070 Views
Registered: ‎10-21-2010

回复: SDK cant set a breakpoint in a Xilinx file

Jump to solution

The code you're referring to is part of BSP, which is built with optimizations enabled. To debug this code, you need to disable optimizations. In BSP settings dialog, click on the CPU driver from left side pane, and add "-O0 -g3" to extra_compiler_flags. Rebuild the BSP, and then you should be able to debug the code you're referring to

View solution in original post

3 Replies
Highlighted
Explorer
Explorer
938 Views
Registered: ‎07-17-2014

回复: SDK cant set a breakpoint in a Xilinx file

Jump to solution

hi @beandigital
i've had a similar problem. I don't know how to solve this problem.

But you can print out the data that you want to see through the serial port so as to avoid the above problem.

0 Kudos
Highlighted
Scholar
Scholar
928 Views
Registered: ‎04-27-2010

回复: SDK cant set a breakpoint in a Xilinx file

Jump to solution
Thanks for the info. But it would be good to be able to debug the code!
0 Kudos
Highlighted
Xilinx Employee
Xilinx Employee
1,071 Views
Registered: ‎10-21-2010

回复: SDK cant set a breakpoint in a Xilinx file

Jump to solution

The code you're referring to is part of BSP, which is built with optimizations enabled. To debug this code, you need to disable optimizations. In BSP settings dialog, click on the CPU driver from left side pane, and add "-O0 -g3" to extra_compiler_flags. Rebuild the BSP, and then you should be able to debug the code you're referring to

View solution in original post