FPGA, SoC, And CPLD Boards And Kits
FPGA Evaluation and Development Kits
5925 Discussions

How to update the console view (in DS-5) for software running on de10 nano linux OS?

RAgui2
Beginner
2,185 Views

Currently I'm following the "Debug Hello World" tutorial (https://software.intel.com/en-us/node/720361) to debug the C code inside the de10 nano linux OS. However when I want to modify my code lets say by changing the print statement the console output doesn't update with the newly written statements and thus displays the previous one. How can I fix this problem?

 

Thanks,

 

Rolando

0 Kudos
5 Replies
RAgui2
Beginner
635 Views

I just realize the object file doesn't update with newly written statements. Why is so?

0 Kudos
Fawaz_Al-Jubori
Employee
635 Views

Hello,

Did you build your C code before you run?

I have tried printing "hello world", and was able to see it on console. Then, I edited the message to "from ARM", and built the project, and was able to see it on console as well.

 

0 Kudos
RAgui2
Beginner
635 Views

More updates of what is going on:

  • When I close and open DS-5 and compile (for the first time), I am able to see the expected output in the App Console (No Problem)
  • Once I've compiled and edit the printf and recompile, the App console won't update and display the previous output I had. Apparently I'm just able to change the output when I compile for the first time.

I believe I shouldn't close each time the IDE whenever I want to recompile.

 

Still not able to get this? I need more help...

 

0 Kudos
RAgui2
Beginner
635 Views

Now I'm kind of fixing the issue, but still not a clean solution. I am closing and opening the project every time I want to recompile (doing this will update the App Console)

0 Kudos
Fawaz_Al-Jubori
Employee
635 Views

Hello,

You might try to clean the build before you re-compile.

This can be done if you right-click on the project folder > clean project > then build again.

 

I havent face this case, and and I am able to change the code and build many times without cleaning/closing the tool.

 

I suggest either:

1- the tool is corrupted, you might try to re-install.

2- turn-off any anti-virus software you have on your machine.

 

 

thanks

0 Kudos
Reply