Skip to main content
voneparte
Associate
August 22, 2019
Question

@svlreg missing function error

  • August 22, 2019
  • 3 replies
  • 2862 views

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.

    This topic has been closed for replies.

    3 replies

    voneparte
    voneparteAuthor
    Associate
    August 22, 2019

    Solved.

    Junpapa
    Associate
    January 9, 2020

    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();

    }

    Junpapa
    Associate
    January 10, 2020

    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.