hello, everyone
I want compile 8051 MCU with medium model in platformio,but link fail.please help me and think very much.
my platfromio.ini is list as follow:
[env:ch552]
platform = intel_mcs51
board = ch552
build_flags =
--model-medium
--LC:/Users/caoyf/.platformio/packages/toolchain-sdcc/lib/medium
-IC:/Users/caoyf/Documents/PlatformIO/Projects/ch552_gpio/src/Driver/inc
-Isrc/PLAT/inc
link errors is list as follow:
Linking .pio\build\ch552\firmware.hex
?ASlink-Warning-Conflicting sdcc options:
"-mmcs51 --model-medium" in module "main" and
"-mmcs51 --model-small" in module "_divulong".
?ASlink-Warning-Conflicting sdcc options:
"-mmcs51 --model-medium" in module "main" and
"-mmcs51 --model-small" in module "_moduint".
?ASlink-Warning-Conflicting sdcc options:
"-mmcs51 --model-medium" in module "main" and
"-mmcs51 --model-small" in module "_divuint".
?ASlink-Warning-Conflicting sdcc options:
"-mmcs51 --model-medium" in module "main" and
"-mmcs51 --model-small" in module "_gptrget".
?ASlink-Warning-Conflicting sdcc options:
"-mmcs51 --model-medium" in module "main" and
"-mmcs51 --model-small" in module "_modsint".
?ASlink-Warning-Conflicting sdcc options:
"-mmcs51 --model-medium" in module "main" and
"-mmcs51 --model-small" in module "_divsint".
?ASlink-Warning-Conflicting sdcc options:
"-mmcs51 --model-medium" in module "main" and
"-mmcs51 --model-small" in module "_startup".
*** [.pio\build\ch552\firmware.hex] Error 1
it seems that linker use the lib file in .platformio\packages\toolchain-sdcc\lib\small not the link file in .platformio\packages\toolchain-sdcc\lib\medium,how can i correct it?