Forum Discussion

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

hello

hello

I would like your help I am new to the Nios II environment alters need to create a new SOPC the code you get is this and create a new nios 2 application and bsp# include <stdio.h># include "system.h"# define switches (volatile char *) 0x0003000# define leds (char *) 0x0003010

int main()

{ while (1)

*leds = *switches;

}

The errors I get are these

luces.elf: section. exceptions lma 0x1020 overlaps previous sections

luces.elf: section. 0x11b4 lma text overlaps previous sections

make: *** [luces.elf] Error 1

onchip_memory2_0 region is full (luces.elf section. text)

section. exceptions [00001020 -> 000011b3] overlaps section. Rodata [00001020 -> 00001053]

section. rwdata [00002368 -> 0000367b] overlaps section. text [000011b4 -> 00003403]

6 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Your onchip_memory is too small to contain your code. Either increase the sive of that memory, use an external memory, or reduce your code size by enabling the optimizations and using the small C library.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Thanks and fixed the memory that I collapsed but now I get these errors

    make: *** [../haber/-recurs-make-lib]

    make[1]: *** [public.mk]
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Sorry, I have no idea then...

    Try to clean your project and rebuild it, or check that you don't have any spaces in your project path (this is a persistent bug)
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hello and solved the problem now gives me the error when I pass a plate says you can not download the file. Elf

    The error I get is

    nios2-download: error: dog wrapper script only download one file at a time

    But first give me the run configuration failure Target connection