cancel
Showing results for 
Search instead for 
Did you mean: 

@svlreg missing function error

voneparte
Associate

Hello,

I am trying to rebuild STM8A discovery project(AN4101). After building I got the error ''#error clnk Debug\stm8af_discover.lkf:1 @svlreg missing for function f_CAN_RX_IRQHandler''. Similar post about this issue were answered as write '@svlreg' before interrupt function but the code I run belongs to ST and I don't know where to find interrupt function to write @svlreg before it.

Thanks for attention.

3 REPLIES 3
voneparte
Associate

Solved.

Hello Voneparte

Could you let me share the solution resolved ?

I'm in the similar problem, " #error clnk Debug\eeorc_0_8_pjt.lkf:1 @svlreg missing for function f_TIM2_UPD_OVF_TRG_BRK_USART2_TX_IRQHandler"

I checked and just guess the error is caused as a result whether the function specified (like size ...) is inserted(called) or not in the Handler. 

Thanks in advance

--------------------------------------------------------------------------------------

INTERRUPT_HANDLER(TIM2_UPD_OVF_TRG_BRK_USART2_TX_IRQHandler, 19)

{

switch (SYS_Mode) 

{

case SYS_RUN:

this function is cause -> Sys_Run_ftn(); // this function is blocked, no error,

break;

case SYS_TEST:

Sys_Test_ftn(); // This is always OK.

break;

default:

break;

}

 TIM2_ClearITPendingBit(TIM2_IT_Update);

enableInterrupts();

}

I had fixed this issue with converting from 32 bits parameter to 16 bits the length of some parameters used in sub-function (second depth in my case ). But there's alternative solution , just adding "@svlreg" in the front of the function name.