Nios® V Embedded Processor Design Handbook

ID 726952
Date 1/27/2025
Public
Document Table of Contents

4.5.2. Nios® V Processor Application Execute-In-Place from UFM

The Execute-In-Place from UFM solution is suitable for Nios® V processor applications which require limited on-chip memory usage. The alt_load() function operates as a mini boot copier that copies the data sections (.rodata, .rwdata, or .exceptions) from boot memory to RAM based on the BSP settings. The code section (.text), which is a read only section, remains in the MAX® 10 On-chip Flash memory region. This setup minimizes the RAM usage but may limit the code execution performance as access to the flash memory is slower than the on-chip RAM.

The Nios® V processor application is programmed into the UFM sector. The Nios® V processor's reset vector points to the UFM base address to execute code from the UFM after the system resets.

If you are using the source-level debugger to debug your application, you must use a hardware breakpoint. This is because the UFM does not support random memory access, which is necessary for soft breakpoint debugging.
Note: You cannot erase or write UFM while performing execute-in-place in the MAX® 10. Sswitch to boot copier approach if you need to erase or write the UFM.
Figure 18.  Nios® V Processor Application XIP from UFM