Altera_Forum
Honored Contributor
10 years agoaltera_avalon_tse.h and _TIMEOUT_THRESHOLD #defines
Hello,
We are using NIOS2 with uCOS2 and the NicheStack and need to be able to run our embedded app even if we don't have a network connection. We noticed with the below default altera_avalon_tse.h settings, the processor hangs up and seems to hold interrupts causing the app to have issues loading. # define ALTERA_AUTONEG_TIMEOUT_THRESHOLD 250000# define ALTERA_CHECKLINK_TIMEOUT_THRESHOLD 1000000# define ALTERA_NOMDIO_TIMEOUT_THRESHOLD 1000000# define ALTERA_DISGIGA_TIMEOUT_THRESHOLD 5000000 I tried these settings and it allowed to progress without a network connection fine, but this seems like overkill. Is there another Altera# define or code block that would allow obtaining the IP in a lower priority task/thread ? # define ALTERA_AUTONEG_TIMEOUT_THRESHOLD 2500# define ALTERA_CHECKLINK_TIMEOUT_THRESHOLD 1000# define ALTERA_NOMDIO_TIMEOUT_THRESHOLD 10000# define ALTERA_DISGIGA_TIMEOUT_THRESHOLD 50000