Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

UCOSII without flash

Altera_Forum
Honored Contributor II
1,016 Views

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
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
258 Views

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.

0 Kudos
Altera_Forum
Honored Contributor II
258 Views

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!
0 Kudos
Reply