- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Good Morning everybody http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/biggrin.gif
I tried working with custom instructions under the Nios IDE .. but how to use them under uClinux ..?? will the nios gcc be changed .. ?? What will be the name of the new instruction ?? same as in IDE ? I'm totally lost when trying to figure out the solution http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/huh.gif ================= another quick question please:: can any1 gimme a quick guide to using DMA under uCLinux ? Many many thanks in advance http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif Yours, TarekLink Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Tarek,
I just added the bitswap custom instruction to a nios II system. Then I opened the IDE and compiled a hello_world program targeted to this system in order to generate the system.h file. I copied the system.h file over to the linux environment where I do my uClinux software development, and wrote a little C program that uses the bitswap CI (just like the program in the CI user guide, but with additional printf statements to show the value before and after the bitswap). When I compiled I used the elf2flt flag, like hippo shows in his hello world document on the wiki, rebuilt the kernel and zImage, and it works perfectly. -jason
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