I see you use the UB library
, i have get allot of problem for convert the Coocox 'model' to Keil , Cx must probably consider variable as global because in some
case i just add 'extern' in front of some declaration in the '*.h' and then redeclare the variable into the corresponding '*.c' file and it's OK ...
But ! , recently i found the 'TM' library
it's like the UB in the difference that is yet for my cheer Keil
Info on the GitHub and main page link in the txt.