Nios® II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
12455 Discussions

Starting a user program from the Pre-loader.

Honored Contributor II



I had generated the preloader image by following the steps given in  

I had programmed the preloader file using hps.exe software. 


and after power-on reset the Preloader is working fine. That is I could able to receive the serail communication comments through UART. 


My query is .., 


I have run an user code to blink the LED. I had written the code and compiled using ARMDs-5 IDE.  


How to load the user written code after the preloader and start executing it ????? 


Could you please give me suggestion or tips to execute the usercode from the preloader.
0 Kudos
2 Replies
Honored Contributor II

There is common way right? You may bring the path and application name to the kernel as a boot parameter for init, then kernel will only start the init process itself  

try look at this(see: Traditionally this application then handles starting daemons, geTTYs, etc. 


Most boot loaders allow you to specify a path for the init app as part of the configuration for where to find the kernel. 


as example:- /boot/vmlinuz-n.n.n init=/path/to/theapp
Honored Contributor II

there are quite number of example for this, bare metal is part of the example... that located in the Altera installation folder it self for reference.