Nios II Classic Software Developer’s Handbook

ID 683282
Date 5/14/2015
Public
Document Table of Contents

11.4.3. Initializing the Stack

Before you initialize the stack, start the MicroC/OS-II scheduler by calling OSStart() from main(). Perform stack initialization in a high priority task, to ensure that your code does not attempt further initialization until the RTOS is running and I/O drivers are available.

To initialize the stack, call the functions alt_iniche_init() and netmain(). Global variable iniche_net_ready is set true when stack initialization is complete.

Note: Ensure that your code does not use the sockets interface before iniche_net_ready is set to true.