Forum Discussion
Altera_Forum
Honored Contributor
19 years agoThe ROM configuration is not of much interest to us as our target board does not have executable flash, I was simply running through the example guide to check that things worked. I have not looked into the internal workings of program_flash and whatever tinkering it is doing.
I can confirm that a ROMRAM configuration of redboot, converted to srec format using nios2-elf-objcopy and then downloaded to our target using the GERMS monitor does work - but that's about as far as I have got at the moment. Info for the ROM configuration:- Elf file type is EXEC (Executable file) Entry point 0x20 There are 5 program headers, starting at offset 52 Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align LOAD 0x0000d4 0x00000000 0x00000000 0x229b8 0x229b8 R E 0x1 LOAD 0x022a8c 0x01000020 0x000229b8 0x0002c 0x0002c R E 0x1 LOAD 0x022ab8 0x0100004c 0x000229e8 0x00000 0x00108 RW 0x1 LOAD 0x022ab8 0x01000154 0x00022af0 0x00e08 0x00e08 RWE 0x1 LOAD 0x0238c0 0x01000f5c 0x01000f5c 0x00000 0x08814 RW 0x1 Section to Segment mapping: Segment Sections... 00 .entry .text .rodata 01 .exceptions 02 .rom_monitor_rwdata 03 .rwdata 04 .bss There are 19 section headers, starting at offset 0x8bff4: Section Headers: [Nr] Name Type Addr Off Size ES Flg Lk Inf Al [ 0] NULL 00000000 000000 000000 00 0 0 0 [ 1] .entry PROGBITS 00000000 0000d4 000020 00 AX 0 0 4 [ 2] .text PROGBITS 00000020 0000f4 01e054 00 AX 0 0 4 [ 3] .rodata PROGBITS 0001e074 01e148 004944 00 A 0 0 4 [ 4] .exceptions PROGBITS 01000020 022a8c 00002c 00 AX 0 0 4 [ 5] .rom_monitor_rwda NOBITS 0100004c 022ab8 000108 00 WA 0 0 1 [ 6] .rwdata PROGBITS 01000154 022ab8 000e08 00 WAX 0 0 4 [ 7] .bss NOBITS 01000f5c 0238c0 008814 00 WA 0 0 4 [ 8] .debug_aranges PROGBITS 00000000 0238c0 0016c8 00 0 0 8 [ 9] .debug_pubnames PROGBITS 00000000 024f88 002db6 00 0 0 1 [10] .debug_info PROGBITS 00000000 027d3e 024c7c 00 0 0 1 [11] .debug_abbrev PROGBITS 00000000 04c9ba 007ad0 00 0 0 1 [12] .debug_line PROGBITS 00000000 05448a 0295fd 00 0 0 1 [13] .debug_frame PROGBITS 00000000 07da88 003014 00 0 0 4 [14] .debug_str PROGBITS 00000000 080a9c 00776e 01 MS 0 0 1 [15] .debug_ranges PROGBITS 0000776e 08820a 003d20 00 0 0 1 [16] .shstrtab STRTAB 00000000 08bf2a 0000c8 00 0 0 1 [17] .symtab SYMTAB 00000000 08c2ec 002f40 10 18 153 4 [18] .strtab STRTAB 00000000 08f22c 002e15 00 0 0 1 Key to Flags: W (write), A (alloc), X (execute), M (merge), S (strings) I (info), L (link order), G (group), x (unknown) O (extra OS processing required) o (OS specific), p (processor specific)