Forum Discussion

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

Is .text data not located in flash memory?

HELP!

When I down my program to the My board---ep2c35, I set .text and .rodata into flash memory in System Library Page.Built project.............OK! RUN AS HARDWARE...................Verify failed! SO I set .text and .rodata into SSRAM,all is fine.

why?why I can not place .text data into flash?Anyone have some advice?Thanks!

1 Reply

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

    You can only set these segments to 'flash' if you actually burn them to flash. The normal download step tries to simply write the contents of the segments as if the destination was RAM.

    If you are planning to burn your program to flash and run out of flash you need to run FlashProgrammer first, then you can run the program. I'm not sure what to suggest for the download portion, you could try letting it download and see if the verify works since the correct stuff should be in flash at that point.

    One thing to be aware of is that you won't be able to run out of a flash chip and write data to it from the same program, at least not in general. I fell into that trap before.

    If you are planning to burn your program to flash and run out of SRAM you don't have to do anything, just run flash programmer, set your reset address to flash and you're good to go.