06-28-2019 07:53 AM
I am using a ZCU104 board. When i try to debug via JTAG a program of mine using XSDK, the debugger cannot do any instruction step nor run, and it hangs whenever i select any element of the Debug view (APU or any core).
Then, if i kill hw_server process, the debugger loses the connection and XSDK stops hanging. If instead of debugging, i run the program, it will not hang.
Is this problem related to hw_server? How can i solve this? This is really frustrating because i want to debug the program but i can't (a week ago, there was no problem related to the debugger but from then on it stopped working).
06-30-2019 09:04 PM
Can you provide some additional details
Debug and run, both use xsdb/hw_server. The only difference b/w debug and run from GUI's perspective is that a breakpoint is planted at main(), before its resumed from start address
07-02-2019 07:33 AM
Hello, thanks for the answer!
The error occurs during a debug session right when i click on debug window in debug’s perspective (either it can be selecting a core or a cpu), otherwise the xsdk doesn’t crash. Also, i cannot run the program when debugging (the run/pause button appears colored but when i click it doesn’t do anything) so it doesn’t reach main neither program entry.
Since a week ago, nothing has changed in the program. I started to have another problems like, i had to terminate hw_server process to be able to connect again to target, because when the program crashed when launching debug, i had to terminate xsdk, and when i opened xsdk again to connect to the target, as hw_server would remain active between xsdk sessions, it would not let me connect again to the target.
07-02-2019 08:54 AM
07-05-2019 04:00 AM
I'm able to run a simple freertos app with your design, but your script is downloading other bin files. What are these files? Would you be able to send them? Or, is this problem reproducible with any other simple test/app? Also, you're running osa command with one of the elf files. osa is supported only for Linux, but it shouldn't cause issues with other images
07-08-2019 04:29 AM
The code that i'm running on the board is an hypervisor. The bins that i am loading are the hypervisor and the guest image. Unfortunately, i cannot send you the code as it is confidential.
But, even when i use other code, the debug gets stuck.
07-10-2019 10:15 PM