- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I have created a min nios2 system(Nios2, OnChipRam, Uart) and want to test if it can run Hello_world.c in my Dev.Board. So I do the following: (My Dev.Board is Micortronix Cyclone Dev.Board) 1. Open IDE and choose File > New C/C++ Application. 2. Choose the .ptf file and select Hello World in the Project Templates. 3. Build Project. When in the building process, there has a error. It is described "make -s all Compiling hello_world.c... Linking hello_world_0.elf... /cygdrive/d/Altera/kits/nios2/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc-lib/nios2-elf/3.3.3/../../../../nios2-elf/bin/ld: region OnChipRam is full (hello_world_0.elf section .text) /cygdrive/d/Altera/kits/nios2/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc-lib/nios2-elf/3.3.3/../../../../nios2-elf/bin/ld: section .rodata [00004020 -> 0000451f] overlaps section .exceptions [00004020 -> 00004327] /cygdrive/d/Altera/kits/nios2/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc-lib/nios2-elf/3.3.3/../../../../nios2-elf/bin/ld: section .rwdata [00004520 -> 00004f9f] overlaps section .text [00004328 -> 0000f5e7] collect2: ld returned 1 exit status make: *** [hello_world_0.elf] Error 1 Build completed." I do not know what is wrong and how to correct it. Can someone help me? Thank you.Link Copied
7 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Your 'Hello World' code is too big to fit into the OnChip Memory you selected.
You can: 1) optimize your code footprint (view this thread (http://www.niosforum.com/forum/index.php?act=st&f=2&t=371&hl=optimization)) 2) use a bigger OnChipRam (default is 4 Kb, you could select a 64 Kb) Bye!- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you.
I do as you say and the project can be built. I only change the properties of the project, not enlarge my OnChipRam size. But when I am running the project, another problem occur. Please see the description below. (1) I choose Run>Run... in the IDE window. (2) Double click on Nios II Hardware in Configurations. A new item display with "hello_world_0 Nios II HW configuration" automatically. (3) I make others by system default and click "Run". (4) The console appears and display with two command line. nios2-terminal: connected to hardware target using UART on /dev/com1 at 115200 baud nios2-terminal: starting in terminal mode only (Control-C exits) (5) And console stays here, no other information is displayed and "Hello from Nios II!" was also not displayed. What is the problem? (I use the Microtronix Cyclone Dev.Board) Please help me. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
At one point, I used to experience "race conditions" where the output from the development board would come out faster than nios2-terminal could start up. In which case, the output would be lost.
I would try having nios2-terminal open and running before you upload the program.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Well, but I need to test if NiosII is running properly on my Microtronix Dev.board.
If you have some example which can be used to test my min-sys(NiosII+OnChipRam(16K)+uart) on Dev.board, please email to me. My email is heekee@sohu.net. Thank you!- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, Ken
Because I use Mtx Cyclone Dev.Board, so I want to know something. 1. The Getting Started Guide.PDF says that the Software Requirements are Nios Development Kit 3.0 and QuartusII 2.2. But I once installed the Quartus2.2 SP2 and Nios Development Kit 2.11(Nios 2.1). I wanted to compile your provided reference design "Kitchen_Sink", but error occured. And I generated a nios system, when I compiled, the same error occured. The error I will paste later, its error seems "cpu_....... undefined". What is wrong with it? 2. With the Dev.board, there have Mtx Linux Developer CD / V1.1, but there has not telnet application in installed Linux. Where can I find telnet app and add it to file system. 3. I now have Quartus4.1 SP2 and Nios II Development Kit V1.0. Can I use them to build a nios2 system which could directly run in my Mtx Cyclone Dev.board without any changes in software and hardware? If you have some simple nios2 renference design used in Cyclone Dev.board, please give me. I want to study and test how to getting started. I am a student and I just study nios for about one and a half months. Now I am working my paper, it is a application based nios. But I have so many things unknowed and confused, it bothers me very much. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif Give some advice and guide. I look forward to nios2 can run on my board earlier. Thank you.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
So did you try to keep nios2-terminal (or some other communication program listening on your com port) up and running before uploading your program to your development board first? That will definitely guarantee that if anything comes out on the UART from the dev board it'll be noticed.
As per your other questions. I'm sorry, but I can't help you with# 1 until I have more information. For# 2 We don't provide a telnet application. I would suggest that you take a look inside the busybox application that we do ship. I believe it might have a telnet client that work under Nios II. For more info, take a look inside the reference guide for Nios II Linux. It contains all the info you need to build busybox and upload it to your linux system. For# 3, the Mtx Cyclone Board's Kitchen Sink example design is capable of running Linux. There are a number of example designs that come on the Microtronix Cyclone Board Development Board... those are all the ones we provide. If you have any specific hardware questions we might be able to help you.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you Ken.
I will read reference guide carefully and do my project step by step. If I have questions, I will paste on the forum.
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