Forum Discussion
Altera_Forum
Honored Contributor
21 years agoHow can i run program in sdram?
I generate a CPU with Onchipram and sdram, and i new a project in NIOS II IDE with template hello_led,
when i build this project in onchipram, it works good,and i can access sdram correct, and then i build in sdram,when i run as hardware in NIOS IDE II, it also can works, but when i complilation in quartusII and download with jtag, it can not work, i change the program`s memory options in hellow_led_syslib properties, set all three part to onchipram or sdram. reset location is in onchipram! anyone can tell me what`s wrong?6 Replies
- Altera_Forum
Honored Contributor
<div class='quotetop'>QUOTE </div>
--- Quote Start --- then i build in sdram,when i run as hardware in NIOS IDE II, it also can works,[/b] --- Quote End --- Is it works? <div class='quotetop'>QUOTE </div> --- Quote Start --- but when i complilation in quartusII and download with jtag[/b] --- Quote End --- Run as hardware is download by jtag,too. So what's your real problem? Is it after you recompiling in Quartus, that the system works not properly? - Altera_Forum
Honored Contributor
when i use quartusii->tools->programer->JTAG to download&run, it did not works, atfer do that,nothing happened.
so you say the run as hardware is run with jtag, i do not know the difference with the two ways. - Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by hugeant@Sep 1 2005, 10:15 AM when i use quartusii->tools->programer->jtag to download&run, it did not works, atfer do that,nothing happened.so you say the run as hardware is run with jtag, i do not know the difference with the two ways. --- Quote End --- Hey dude You just download the Hardware Image using the Quartus . You need to download the Code using NIOS. Programming using Quartus & Nios are two completely different things. Both need to be done!!! Please go through the Getting started Guide. regards Pavan
- Altera_Forum
Honored Contributor
Thanks ppk031000.
i`m new to NIOS, bought a board, then according the document with the board build my first CPU, i only use the board not more than 24 hours in my free times. You are right,i should first read the Guide, even my jod`s so busy and most of my sleep time of a day is less than 5 hours recently. so sorry for a dude` question! but i`m not a dude :-) i thought the sof or pof file is include the Code which i wrote in NIOD IDE, now i know it is not, maybe the code store in onchipram is in the sof ot pof file. but sdram not. Thanks! - Altera_Forum
Honored Contributor
hey,friends
I have a question to ask. When NiosII IDE run code,I know it downloads file via the JTAG cable,but which file? -------------Is it in hex format or bin format or something else? -------------Is it located in the code project (where my original code is)or ----------------------------in the hardware project (where *.sof *.pof is)? thanks - Altera_Forum
Honored Contributor
Hi,
here are some of the basics: usually IDE creates a folder in your project directory, called software\software_project_name. the source code is stored there. the file for download can be found under software\software_project_name\debug\ and it has the file extension .elf.