Altera_Forum
Honored Contributor
20 years agoInitialization of on chip memories
Hi all,
Take a "fast" example, and add an additional on-chip memory, let's call it "common_ram". Then, from the Nios II IDE, create a helloworld project, and add a C variable definition like the following one: <div class='quotetop'>QUOTE </div> --- Quote Start --- int foobar __attribute__ ((section (".common_ram"))) = 57;[/b] --- Quote End --- Then, compile the project and debug it. the "foobar" variable has value 0 and not 57! is that related to the fact that crt0.S in altera_nios2 do not initialize the onchip memories? bye Paolo