Closed achieve-dream1221 closed 9 months ago
I solved the problem using the following configuration.
$<$<COMPILE_LANGUAGE:ASM>:
# -v0
-D__CORE__=1 # 1: plain, 2: extended1, 3: extended2
-D__CODE_MODEL__=2 # 1: near, 2: banked, 3: far, 4: banked extend2
-D__DATA_MODEL__=2 # 0:tiny, 1: small, 2: large, 3: Generic 4: far 5: far generic
-D__CALLING_CONVENTION__=4 # 0: data overlay, 1: idata overlay , 2: idata reentrant, 3: r pdata reentrant, 4: xdata reentrant, 5:extended stack reentrant
-D__NUMBER_OF_DPTRS__=1
>
I have incorporated the .s51 files into the compile list. Nevertheless, I am unable to compile these files into .r51 files. I received the error: "Error[e46]: Undefined external 'osalMcuDivide31By16To16' referred in OSAL_Clock". Below is the CMakeLists.txt file I've been using: