Forum Discussion

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

UCOSII without flash

Hello

I am tryin to run the web server example, with UCOS II on a board without a flash chip (but with an EPCS). Can it be done ? When I try to configure the LWIP stack in the project library properties I get an error saying that there is no flash in the system. I would lke to know if there is a way around this.

Thanks in advance

Nir

2 Replies

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

    Your problem is that the web server example stores the MAC address (ethernet address) in flash, you will need to re-write the get_mac_addr function chapter 9 of the Nios II Sofwtare Developers Handbook shoudl help you out.

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

    Hi:

    Yes, you could make your nios-2 boot-up from the EPCS and also have aplication data there, IF your code and data are small enough to feet in the EPCS space not used for FPGA configuration data.

    Using the flash drivers in the HAL your will be able of reading/writing from/to the EPCS. Determine a free location in EPCS, read the content of the entire block and reprogram with the content that must not be modified and the new data.

    There has been a lot of discussion on the booting from EPCS subject on the general discussions forum, take a look at there.

    Good luck!