Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

SW loader issues

Altera_Forum
Honored Contributor II
1,103 Views

Hello nios users, 

 

I am trying to write a code that enables to load SW image (in S-REC format) to the flash via UART. 

 

I have encountered several issuse: 

 

1. the altera default set the SW flash image (created from .elf) directly after HW image (.sof). I believe I can place it whereever I want, but what should I do so the boot loader will know from where to start loading image to RAM after reset? 

 

2. To accelerate the process, I want to use an existing UART set to slow baud rate. can I change the baud rate of an UART during SW run-time without the need of creating new .ptf and rebuild with it? 

 

thanks a lot for your help, 

 

A.G.
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
406 Views

You will probably need to customise the boot loader. There is an Altera Application Note, AN458, which might prove helpful. 

 

You can alter the baud rate of the UART at runtime as long as you enabled the option in SOPC Builder (make the clock divisor register writeable).
0 Kudos
Reply