Forum Discussion

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

BSP Editor Problem

I am trying to program my bootstrap code into on-chip memory and I am having serious problem with BSP editor.

1. In Quartus I am setting cpu to:

reset vector memory onchip-memory offset 0x00

exception vector memory onchip-memory offset 0x20

2. Generate SOPC

3. Going to NIOS II - Eclipse platform and open BSP editor.

4. BSP editor displays a message:

[Error] altera_linkerx_generator: The section mapping ".entry" mapped device "cfi_flash" is not the same as the SOPC Design specified device "onchip_memory"

How can I change in BSP Editor linker script to map ".entry" to "onchip_memory"?

Thanks!

1 Reply

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

    If the following doesn't work...

    nios2-bsp-generate-files --settings=<settings file> --bsp-dir=<target bsp files directory>
    ...you might have to generate a new BSP. You could also manually edit the settings.bsp file (XML format), but you'd have to know what you were doing.

    I've seen cases where some of the linker-related XML content in settings.bsp doesn't get properly updated when nios2-bsp-generate is run or causes it to crash.

    Good Luck!

    -slacker