- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I have successfully managed to boot Linux on Cyclone 5 SoC with SD card. I also run 2 applications (hello & led_blink) which were already present in the prebuilt sd card image taken off rocketboards webpage. However, now I need to run my own application on the board. How do I do that? For example I have a C code, so I build it using DS-5 and write the application (only) on SD card? Would that work? How do I compile/run a project on the board? Also, are the apps led_blink & hello a part of the image file on the sd card? Because when I look at the contents of the card on windows I do not see those apps or file names. Thank you, SurabhiLink Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You will need to create a Makefile to build your application. See the DS-5 documentation for some examples. Once you have built your application, the easiest way to transfer it to the SD card is to mount it on a Linux system. I had a virtual CentOs Linux machine running under VMware player (free version) on my windows PC, so that's what I use.
You can also connect your board with Ethernet and set up DS-5 to automatically copy the application, but the setup is more complicated.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for your suggestion Galfonz.
It took me a while to understand that I could edit and debug the apps present in the prebuilt image file on the SD card. The learning curve is steep! I eventually setup Ethernet and use DS-5 to debug & run my application on Linux. Anybody looking to do something similar can refer to this tutorial I came across https://www.youtube.com/watch?v=zcgqejkywoc Thanks :)
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