Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
16 years ago

SW loader issues

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.

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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).