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

Unhosted BareMetal ld choice

Altera_Forum
Honored Contributor II
960 Views

Hey all 

 

A bit confused about the choosing of the linker script for the unhosted baremetal. 

At all the examples with the EDS its clearly written : 

" Derived from file "armulator-ram-hosted.ld"" 

 

but if I look at the first .text section : 

 

PROVIDE(__cs3_reset = __cs3_reset_generic); 

 

If I look at the objdump I see that the __cs3_reset function jumpes to __cs3_start_asm_sim 

 

if I change to "PROVIDE(__cs3_reset = __cs3_reset_armulator_ram);" the "__cs3_start_asm_sim" becomes just "_start" 

this bothers me because "__cs3_start_asm_sim" contains "svc 0x00123456 " instruction even if I link it with the unhosted option(which I suspect being problematic) 

 

If I look at the codesourcery documentation I dont see common startup code sequence for cyclone 5 (only for cyclone 3)
0 Kudos
0 Replies
Reply