- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
when i try to build my project it fails and i get the message below. what should i do?
--- Quote Start --- make -s all includes Compiling hello_world.c... Linking pwm_nios_ii.elf... /cygdrive/c/Users/user/Altera/TER/pwm_nios_ii_syslib/Debug/libpwm_nios_ii_syslib.a(alt_main.o)(.text+0x3c): In function `alt_main': /cygdrive/c/altera/10.1/nios2eds/components/altera_hal/HAL/src/alt_main.c:155: warning: warning: close is not implemented and will always fail Info: (pwm_nios_ii.elf) 2396 Bytes program size (code + initialized data). Info: 1700 Bytes free for stack + heap. Creating generated_app.sh... Post-processing to create onchip_memory.hex Hardware simulation is not enabled for the target SOPC Builder system. Skipping creation of hardware simulation model contents and simulation symbol files. (Note: This does not affect the instruction set simulator.) Build completed in 22.953 seconds --- Quote End ---Link Copied
6 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I see a warning but I see no errors in this post. Sure it fails? Now you should be able to download it to the board.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
i used alt_main instead of main in my C code and that solved the problem but i still can't connect to the processor... everytime i try to download the binary code by using run as NIOS II hardware It fails and I got the same message :
--- Quote Start --- Using cable "USB-Blaster [USB-0]", device 1, instance 0x00 Pausing target processor: not responding. Resetting and trying again: FAILED Leaving target processor paused --- Quote End --- I will never finish this project on time :(- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
No reason for this error,sometimes it happens.
So clean the project and again compile in nios II or create new project in nios II and add your .ptf file in that.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- i used alt_main instead of main in my C code and that solved the problem but i still can't connect to the processor... everytime i try to download the binary code by using run as NIOS II hardware It fails and I got the same message : --- Quote End --- Ok, now you have a real error message. This happens to me when I fail checking the following issue: all reset signals must be connected with a signal with correct polarity. For example: when using a DDR2 Memory controller based on altmemphy, you should have a reset_n signal on the SOPC Builder. If this reset is connected to an active high signal, the controller is kept in reset (can not remember if all system is kept in reset). Check if you have some reset_request or debug_request options activated on your nios 2 instantiation. If so, check to what they are connected. --- Quote Start --- I will never finish this project on time :( --- Quote End --- Are you on a university project? I managed to finish a university project on a Xilinx board in which the only thing that was in output from that board was a stream of zeroes, changing the board.... This happens in Italy, I hope that other universities have better instruments. Regards, Gabriele
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I also have noticed problems with the eclipse for nios2 (SBT or nios2-ide) last month on a machine in my office. Try using
nios2-download -g <elf file> in a command shell and see if the problem persists.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
it 's finally working ! here's what i did:
i was using the NIOS IDE so i switched to NIOS SBT it was easier to handle . i did exactly like this tutorial: http://www.altera.com/literature/tt/tt_my_first_nios_sw.pdf but i still had connections problems so after some searching it turns out that it's very important to fix your rest_n on vcc (and of course to use a system ID in your block) if not you won't be able to download your software . 10x everybody :)
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