Forum Discussion

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

Altera Wiki C bootloader linker question

Hello,

I want to change the C bootloader posted on the Altera Wiki web-site so that it automatically detects the length of the SOF-file and as a result the beginning of my user-program.

I have created a NIOS II processor and made a project (both bsp and application) to compile the source-files.

The bootloader compiles fine but the start of my program is at 0x00000020 and not like I expect at 0x00000000.

I have set the reset-vector of the NIOS II processor in Quartus to 0x00000000 (EPCS-memory) and the exception-vector to 0x000000020 (also EPCS-memory).

In the BSP editor I have set the Linker sections: .bss, .exceptions, .heap, rodata, rwdata and .text to epcs_controller and .entry to reset. Can someone explain to me what could be wrong and how I can set the bootloader-start to 0x00000000.

Thank you and best regards,

Wamor
No RepliesBe the first to reply