AnsweredAssumed Answered

uint32_t problem with STVD + Cosmic FSE

Question asked by Radim Bajak on Aug 14, 2017
Latest reply on Sep 19, 2017 by Alexis Hernandez

Hello, I use STM8AF52xx, STVD and cosmic FSE, when I try to use  STM8S_StdPeriph_Lib and CAN example I encounter this error:

#error clnk Debug\stm8af52ax.lkf:1 @svlreg missing for function f_CAN_RX_IRQHandler

(I have deleted LCD and LED functions just to have pure CAN because there was similar error concerning LCD/LED).

 

This is part of code that is responsible for error:

it is can_recieve() routine

 

can problem

 

As it seems error is caused by uint32_t variables, more precisely with data manipulations.

I was able to assign pure numerical value, but combined statement (assign value from other variable and for example shifting left ) throws error.

I can compile stm8s_can.c without problem, but if try to I build whole project I got error as stated at beginning.

If I comment code with uint32_t variables project would build without errors.

Workspace is available in attachment. 

 

What is causing this error?

best regards,

Radim.

Attachments

Outcomes