Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
21325 Discussions

Altera Wiki C bootloader linker question

Altera_Forum
Honored Contributor II
1,108 Views

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
0 Kudos
0 Replies
Reply