Topic : Parameter out of range

Forum : ST7/STM8

Original Post
Post Information Post
November 26, 2009 - 12:33am
Guest

When I compile I have the following error
*** ERROR C058 IN LINE 414 OF \\.psf\Home\Documents\My Documents\actuator\Joerns\Firmware\Control Box\joerns_stm8s_it.c : Parameter out of range

The error is referencing the following code
#ifdef _COSMIC_
@far @interrupt void TIM2_CAP_COM_IRQHandler(void)
#else /* _RAISONANCE_ */
void TIM2_CAP_COM_IRQHandler(void) interrupt 14
#endif /* _COSMIC_ */
{ // ************************* this is the error reference line ***************************
/* In order to detect unexpected events during development,
it is recommended to set a breakpoint on the following instruction.
*/
}
#endif /*STM8S903*/

The project priorities: Advanced ST7/ST8 option: Processor: STM8S105S4
The STM8s header file is set for a 105 as well.

- I receive this error for 9 interrupts - the first is 14
- If I change the interrupt 14 in the error above to call out 13 it does not error

I am missing something and need help. Thanks in advance

Jimbow

Replies
Post Information Post
+1
0
-1
November 26, 2009 - 10:56am
Raisonance Support Team

Hi Jimbow,

Do you have the latest RKit-STM8 installed? It looks like you are compiling as an ST7 project instead of STM8. This may occur if you are compiling a project which is built with a too recent version of RKit-STM8.

Check that you have the STM8(SMALL) directive on the compiler command-line. If this is not the case, try to change the device you are using and check the results.

Regards,
Bruno

+1
0
-1
November 27, 2009 - 9:42pm
Guest

Bruno,

Thanks for the advice - it was helpful in leading to a solution
1) I was running version 2.22.09.0203 - this was updated but did not fix the problem
2) You comment about compiling a project with different versions directed me to the following
* I had taken this code from one project directory and transferred it to another computer - same directory structure
* Ride 7 located the project and opened it but as already discussed the compile was failing
3) I deleted everything in the project directory except the .c & .h files for the project
* I rebuilt the project and the compile is functioning correctly

Conclusion:
When transferring a project between computers take 30 seconds to rebuild the project - do not just start editing from the project and recompile. I am not sure this is the proper conclusion for all cases but it solved this specific question. Thanks again for the fast support.