Altera_Forum
Honored Contributor
16 years agoStrange problem after changing reset vector
Hi,
I've been struggling for about one day around a strange problem which appeared after some changes in sopc system. Apart a few minor changes (added 2 pio ports, changed ethernet mac isr priority), the major one was moving the Nios I reset vector from flash to epcs, since I want to boot from this device. However, I'm still not booting from epcs; I load and start the program with usb blaster. When I run the Nios code on the new system, program starts (I can see printf output in the console) then hangs. I use Quartus 9.0sp2. My Nios program runs with uC OS and NicheStack. After several hours of tests, placing breakpoints here and there, I discovered the main OS timer was not initialized. Then, I inserted a few instructions to initialize it manually and almost everything begun to work again. I still can't operate TCP/IP interface, so I suppose something else is still not initialized (I think on Nichestack side, since raw Ethernet frames rx/tx is working) Have you any ideas? Regards Cris