Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
18 years ago

Debugging eCos

Hello Community,

I have some problems with eCos and debugging! I use the Altera Stratix Development Board. There are a JTAG Interface. Now I want to develop an application for eCos but I can´t debug any application with the JTAG interface. If I want to debug an internal eCos function there occurs an "no sources found" error! What I have to reconfig in my ConfigTool to debug applications and eCos functions with the JTAG interface? Or I have to debug with RedBoot? When I build a RedBoot Library I got an global pointer exception! I trying with the Linke -G0 Flag but it does´t work! Can anybody help me?

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hello,

    I have found my failture! I had the "Build common GDB stub ROM image" enabled. This are Global Build options:

    - Global Compiler settings: -g -G0 -O0 ...

    - Global Linker settings: -g -G0 ...

    - Build common GDB stub ROM image: disabled

    regards,

    neowork
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Quote:- What I have to reconfig in my ConfigTool to debug applications and eCos functions with the JTAG interface?

    Ans :- In the Nios2ConfigTool, eCos HAL -> Nios2 architecture ->Debug Device

    Make it /dev/uart1

    Similarly select the console device also based on your need.

    Hope this is what u meant!

    Thanks

    Akhil