- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
Hi all,
I am trying to debug a simple nios-v C++ app but I am getting an error while debugging. The problem is when I create a project with the following commands
niosv-bsp -c -p=niosv.qpf -s=niosv.qsys -t=hal software/bsp/settings.bsp
niosv-app -b=software/bsp -a=software/app -s=software/app/hello.cpp
it gives an error as "Launching app Default has encountered a problem. Error in services launch sequence GDB prompt not read." However, when I execute the following commands to create a project
niosv-bsp -c -p=niosv.qpf -s=niosv.qsys -t=hal software/bsp/settings.bsp
niosv-app -b=software/bsp -a=software/app -s=software/app/hello.c
I can debug it without a problem.
Could you please help me about how to debug a cpp application?
Thanks, Balerion
Link copiado
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
Hi Balerion,
Sorry to hear you are having issues. Can you help provide me some additional details?
What version of Quartus are you using?
What OS are you using?
Does the error occur when you are running niosv-app, or is it from the debugger?
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
Hi,
I am using Quartus 24.3 Pro and Windows 10. I added some ss to the attachment. The first one c.png shows the app project that is created with niosv-app command and hello.c. It is working I can debug it. However the second one cpp.png is not working I am not able to debug it. I created that with same command niosv-app but the source file was hello.cpp. I need to debug a cpp project. Could you please help me?
Thanks,
Balerion
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
Hi Balerion,
Can you confirm that when you build your C++ App it has compiled correctly to generate an .elf and .hex file? Here I'm just looking to confirm that your CMake file correctly identifies c++ as the language, but also that your settings.bsp file was configured to enable c++.
Thanks.
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
Hi,
I just verified that my .elf file and .out file generated successfully. It says "Build Finished. 0 errors, 0 warnings. (took 10s.598ms). İt didn't generate .hex by default. It generated a .out and a .elf file.
Thanks, Balerion
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
Hi,
Any news? I couldn't find anything. I just couldn't debug a cpp project and no idea about how to solve it.
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
Hi Balerion,
Sorry for the delay in getting back to you.
Thanks for confirming you were able to generate the ELF for both your projects. I've asked a colleague Nios V team to help join us on this issue to debug this further.
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
Hi Balerion,
I spoke with a colleague and there is apparently a known issue in the Ashling Debugger for C++. As a work around, could you rename the file to .c but then in your CMAKE set the file property to set the language to C++?
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
Hi again,
I tried what you said but it still didn't work. I will be adding the files that I am trying. Could you please tell me what to change in my CMakeLists.txt. I added the lines below.
set_source_files_properties(
main.c
PROPERTIES LANGUAGE CXX
)
*********************************************************
Thanks,
Balerion

- Subscrever fonte RSS
- Marcar tópico como novo
- Marcar tópico como lido
- Flutuar este Tópico para o utilizador atual
- Marcador
- Subscrever
- Página amigável para impressora