Altera_Forum
Honored Contributor
15 years agoDownload NIOS_Software from FLASH to SDRAM with Bootloader on On-Chip-Memory
Hi all,
i have a problem with downloading a nios-software (c-program) from flash-memory to an sdram with help of a bootloader lies on on-chip-ram general requirements: NIOSII CPU --> BASE_ADR 0x00080800 END 0x00080FFF ONCHIP-MEMORY -> BASE_ADR 0x00080200 END 0x000803FF FLASH-MEM --> BASE_ADR 0x11000000 END 0x11FFFFFF SDRAM-Controller --> BASE_ADR 0x08000000 END 0x0FFFFFFF alignment (http://dict.leo.org/ende?lp=ende&p=ci4ho3kmaa&search=alignment&trestr=0x801): - NIOSII/s o RESET_VECTOR --- ONCHIP-MEMORY --- OFFSET 0x0 (0x00080200) o EXCEPTION_VECTOR --- SDRAM_0 --- OFFSET 0x20 (0x08000020) - On-Chip-Memory o ROM o Data Width 32 o MEM-Size 512 Bytes o .hex – file with is load boot_rom.hex § This file is the example “small_boot_copier” BOOTLOADER from ALTERA (http://www.altera.com/literature/an/an458.pdf) accomplishment (http://dict.leo.org/ende?lp=ende&p=ci4ho3kmaa&search=accomplishment&trestr=0x8001) in NIOSII command shell (9.1): 1) make all FLASH_BASE=0x11000000 BOOT_IMAGE_OFFSET=0x00600000 CODE_BASE=0x080000000 BOOT_IMAGE_OFFSET: it is right or 0x11600000 ??? CODE_BASE: means it, that it is the address on SDRAM where the NIOS C-Software lies ? 2) To program the flash, I use the following command Nios2-falsh-programmer –cable=”Usb-Blaster [USB-0]” –base=0x11000000 nios_software.flash Both commands run fine. BUT: when I reset the nios-processor, the software don’t run Can somebody help me please, to cancel my mistakes? Thank you