Altera_Forum
Honored Contributor
14 years agoMicro C stops and does not resume
Hello,
I have a problem using Micro C in Nios EDS. I do not have a wide experience working with Nios EDS and I am sorry if my problem is basic but I have not been able to find the solution. I download the .sof in Quartus II and then I create a new BSP with Hello world Micro C template in Nios EDS. The design compile with no problems but when I click in Run As --> Nios II Hardware, it does not work as I expected. It would have to display every three seconds "Hello from task1" and "Hello from task2" and I only get Hello from task1 once... It is quite strange, it seems as if the program stops and does not resume any more without create task2 and I am not able to understand why. If I work without Micro C (a single threaded design) everything works well. I attached the code but it is the example from Altera (I only added a printf("Hello") in the int main). I will be very grateful if anyone can help me with this problem. Any help will be welcome;) Many thanks!