I'm trying to run the Segger demo application for the Renesas M32C (Start_M32C) with the IAR tools and I'm having some problems.
Since our eval board isn't here yet, I'm using the PC simulator as a target (Cspy-Sim build).
The basic problem is that the tasks never run again after calling the OS_Delay function (i.e. it successfully runs through main, calls each of the two tasks once, and falls into the idle loop - and then stays there forever). I looked at the OS_Time variable with the watch window and it is incrementing as it should be.
A few extra bits of information that could be a part of the problem:
1) When I open the Start_M32C.ewp workspace, it tells me that this file is in an old format and must be converted to work with the current version fo IAR.
2) The code builds fine, but when I hit the debug button I get a message that says "Warning: Marco __orderInterrupt not possible to execute due to the following reason: No device description file selected. Interrupt simulation is unavailable". I can hit OK on this popup and run the code - and I get the behavior I described above.
3) I can get rid of the error from #2 above if I go into the project options and select the specific device I'm intending to use (M30873FH) instead of the 'Generic M32C' that it starts out with - but the behavior of only calling the tasks once each is the same. I do get a new error in the debug log, though: Thu Oct 02 16:45:37 2008: The stack pointer for stack 'CSTACK' (currently Memory:0x816) is outside the stack range (Memory:0x400 to Memory:0x500)
Any advice? It's troubling that I can't even get the basic demo to work!
Since our eval board isn't here yet, I'm using the PC simulator as a target (Cspy-Sim build).
The basic problem is that the tasks never run again after calling the OS_Delay function (i.e. it successfully runs through main, calls each of the two tasks once, and falls into the idle loop - and then stays there forever). I looked at the OS_Time variable with the watch window and it is incrementing as it should be.
A few extra bits of information that could be a part of the problem:
1) When I open the Start_M32C.ewp workspace, it tells me that this file is in an old format and must be converted to work with the current version fo IAR.
2) The code builds fine, but when I hit the debug button I get a message that says "Warning: Marco __orderInterrupt not possible to execute due to the following reason: No device description file selected. Interrupt simulation is unavailable". I can hit OK on this popup and run the code - and I get the behavior I described above.
3) I can get rid of the error from #2 above if I go into the project options and select the specific device I'm intending to use (M30873FH) instead of the 'Generic M32C' that it starts out with - but the behavior of only calling the tasks once each is the same. I do get a new error in the debug log, though: Thu Oct 02 16:45:37 2008: The stack pointer for stack 'CSTACK' (currently Memory:0x816) is outside the stack range (Memory:0x400 to Memory:0x500)
Any advice? It's troubling that I can't even get the basic demo to work!