- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I am trying to run an application on HPS. I looked at the Altera example 'altera-socfpga-helloworld-baremetal-armcc' to start off. I run this application just fine. However when I add an additional line of printf("message"); I do not see this output on the console. Why does this happen? (I do build the project with no errors. Is there something additional I am supposed to do?) On similar lines, after building the GHRD design, I went through the preloader code using DS-5. What I do not understand is, where does my custom application program code fits into the whole picture. If I want to for example, blink led's using delay (in C), where would I write this line of code? I''m having a tough time figuring out how GHRD designs can be modified to fit custom designs/application. Any pointers would be of help! Thank you.Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- However when I add an additional line of printf("message"); I do not see this output on the console. Why does this happen? --- Quote End --- Try add "\n" to end of out string, as this:
printf("message\n");
Line Feed or Carriage Return chars usually must be in output text to see it in console. --- Quote Start --- If I want to for example, blink led's using delay (in C), where would I write this line of code? --- Quote End --- Debugger in DS-5 help you find this place -- where LEDs make one blink step, there may insert dummy loop like: for (int loo = 0; loo < 1000*1000; loo++) ;
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page