-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PlatformIO编译问题 #21
Comments
I also tried this on ubuntu and got more detailed logs. It seems I don't have enough ram for it. So I'd like to know if this project is capable with STC8G1K08 or not. Any help will be appreciated. * Executing task: platformio run --verbose --environment STC8G1K08
Processing STC8G1K08 (platform: intel_mcs51; board: STC8G1K08; build_flags: -D__SDCC_SYNTAX_FIX, -D__CONF_FOSC=26000000UL, -D__CONF_MCU_MODEL=MCU_MODEL_STC8G1K08, -D__CONF_IRCBAND=0x03, -D__CONF_VRTRIM=0x19, -D__CONF_IRTRIM=0x28, -D__CONF_LIRTRIM=0x00)
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
CONFIGURATION: https://docs.platformio.org/page/boards/intel_mcs51/STC8G1K08.html
PLATFORM: Intel MCS-51 (8051) (2.2.0) > Generic STC8G1K08
HARDWARE: STC8G1K08 11MHz, 1.25KB RAM, 8KB Flash
PACKAGES:
- toolchain-sdcc @ 1.40100.12072 (4.1.0)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 1 compatible libraries
Scanning dependencies...
Dependency Graph
|-- FwLib_STC8 @ 1.0 (License: Unknown, Path: /home/asuka/Documents/PlatformIO/Projects/HelloWorld/lib/FwLib_STC8)
Building in release mode
sdcc -o .pio/build/STC8G1K08/src/main.rel -c --std-sdcc11 --opt-code-size --peep-return -mmcs51 -DF_CPU=11059200L -DHEAP_SIZE=128 -DPLATFORMIO=60115 -DSTC8G1KXX -DSTC8G1K08 -DNAKED_ARCH_MCS51 -DNAKED_MCS51_STC8G1KXX -D__SDCC_SYNTAX_FIX -D__CONF_FOSC=26000000UL -D__CONF_MCU_MODEL=MCU_MODEL_STC8G1K08 -D__CONF_IRCBAND=0x03 -D__CONF_VRTRIM=0x19 -D__CONF_IRTRIM=0x28 -D__CONF_LIRTRIM=0x00 -Iinclude -Isrc -Ilib/FwLib_STC8/include -Ilib/FwLib_STC8/src src/main.c
In file included from lib/FwLib_STC8/include/fw_reg_stc8g.h:4,
from lib/FwLib_STC8/include/fw_conf.h:155,
from lib/FwLib_STC8/include/fw_hal.h:18,
from src/main.c:1:
lib/FwLib_STC8/include/fw_reg_base.h:21:7: warning: #warning unrecognized compiler
sdcc -o .pio/build/STC8G1K08/libd91/FwLib_STC8/fw_adc.rel -c --std-sdcc11 --opt-code-size --peep-return -mmcs51 -DF_CPU=11059200L -DHEAP_SIZE=128 -DPLATFORMIO=60115 -DSTC8G1KXX -DSTC8G1K08 -DNAKED_ARCH_MCS51 -DNAKED_MCS51_STC8G1KXX -D__SDCC_SYNTAX_FIX -D__CONF_FOSC=26000000UL -D__CONF_MCU_MODEL=MCU_MODEL_STC8G1K08 -D__CONF_IRCBAND=0x03 -D__CONF_VRTRIM=0x19 -D__CONF_IRTRIM=0x28 -D__CONF_LIRTRIM=0x00 -Ilib/FwLib_STC8/include -Ilib/FwLib_STC8/src lib/FwLib_STC8/src/fw_adc.c
sdcc -o .pio/build/STC8G1K08/libd91/FwLib_STC8/fw_i2c.rel -c --std-sdcc11 --opt-code-size --peep-return -mmcs51 -DF_CPU=11059200L -DHEAP_SIZE=128 -DPLATFORMIO=60115 -DSTC8G1KXX -DSTC8G1K08 -DNAKED_ARCH_MCS51 -DNAKED_MCS51_STC8G1KXX -D__SDCC_SYNTAX_FIX -D__CONF_FOSC=26000000UL -D__CONF_MCU_MODEL=MCU_MODEL_STC8G1K08 -D__CONF_IRCBAND=0x03 -D__CONF_VRTRIM=0x19 -D__CONF_IRTRIIn file included from lib/FwLib_STC8/include/fw_reg_stc8g.h:4,
M=0x28 -D__CONF_LIRTRIM=0x00 -Ilib/FwLib from lib/FwLib_STC8/include/fw_conf.h:155,
from lib/FwLib_STC8/include/fw_adc.h:18,
from lib/FwLib_STC8/src/fw_adc.c:15:
lib/FwLib_STC8/include/fw_reg_base.h:21:7: warning: #warning unrecognized compiler
_STC8/include -Ilib/FwLib_STC8/src lib/FwLib_STC8/src/fw_i2c.c
In file included from lib/FwLib_STC8/include/fw_reg_stc8g.h:4,
from lib/FwLib_STC8/include/fw_conf.h:155,
sdcc -o .pio/build/STC8G1K08/libd91/FwLib_STC8/fw_mem.rel -c --std-sdcc11 --opt-code-size --peep-return -mmcs51 -DF_CPU=11059200L -DHEAP_SIZE=128 -DPLATFORMIO=60115 -DSTC8G1KXX -DSTC8G1K08 -DNAKED_ARCH_MCS51 -DNAKED_MCS51_STC8G1KXX -D__SDCC_SYNTAX_FIX -D__CONF_FOSC=260000 from lib/FwLib_STC8/include/fw_i2c.h:18,
00U from lib/FwLib_STC8/src/fw_i2c.c:15:
Llib/FwLib_STC8/include/fw_reg_base.h:21:7: warning: #warning unrecognized compiler
-D__CONF_MCU_MODEL=MCU_MODEL_STC8G1K08 -D__CONF_IRCBAND=0x03 -D__CONF_VRTRIM=0x19 -D__CONF_IRTRIM=0x28 -D__CONF_LIRTRIM=0x00 -Ilib/FwLib_STC8/include -Ilib/FwLib_STC8/src lib/FwLib_STC8/src/fw_mem.c
lib/FwLib_STC8/src/fw_i2c.c:21: warning 88: cast of LITERAL value to 'generic' pointer
from type 'const-unsigned-int literal'
to type 'volatile-unsigned-char generic* fixed'
lib/FwLib_STC8/src/fw_i2c.c:22: warning 88: cast of LITERAL value to 'generic' pointer
from type 'const-unsigned-int literal'
to type 'volatile-unsigned-char generic* fixed'
lib/FwLib_STC8/src/fw_i2c.c:23: warning 88: cast of LITERAL value to 'generic' pointer
from type 'const-unsigned-int literal'
to type 'volatile-unsigned-char generic* fixed'
lib/FwLib_STC8/src/fw_i2c.c:24: warning 88: cast of LITERAL value to 'generic' pointer
from type 'const-unsigned-int literal'
to type 'volatile-unsigned-char generic* fixed'
lib/FwLib_STC8/src/fw_i2c.c:25: warning 88: cast of LITERAL value to 'generic' pointer
from type 'const-unsigned-int literal'
to type 'volatile-unsigned-char generic* fixed'
lib/FwLib_STC8/src/fw_i2c.c:28: warning 88: cast of LITERAL value to 'generic' pointer
from type 'const-unsigned-int literal'
to type 'volatile-unsigned-char generic* fixed'
lib/FwLib_STC8/src/fw_i2c.c:29: warning 88: cast of LITERAL value to 'generic' pointer
from type 'const-unsigned-int literal'
to type 'volatile-unsigned-char generic* fixed'
lib/FwLib_STC8/src/fw_i2c.c:31: warning 88: cast of LITERAL value to 'generic' pointer
from type 'const-unsigned-int literal'
to type 'volatile-unsigned-char generic* fixed'
In file included from lib/FwLib_STC8/include/fw_reg_stc8g.h:4,
from lib/FwLib_STC8/include/fw_conf.h:155,
from lib/FwLib_STC8/include/fw_mem.h:18,
from lib/FwLib_STC8/src/fw_mem.c:15:
lib/FwLib_STC8/include/fw_reg_base.h:21:7: warning: #warning unrecognized compiler
sdcc -o .pio/build/STC8G1K08/libd91/FwLib_STC8/fw_spi.rel -c --std-sdcc11 --opt-code-size --peep-return -mmcs51 -DF_CPU=11059200L -DHEAP_SIZE=128 -DPLATFORMIO=60115 -DSTC8G1KXX -DSTC8G1K08 -DNAKED_ARCH_MCS51 -DNAKED_MCS51_STC8G1KXX -D__SDCC_SYNTAX_FIX -D__CONF_FOSC=26000000UL -D__CONF_MCU_MODEL=MCU_MODEL_STC8G1K08 -D__CONF_IRCBAND=0x03 -D__CONF_VRTRIM=0x19 -D__CONF_IRTRIM=0x28 -D__CONF_LIRTRIM=0x00 -Ilib/FwLib_STC8/include -Ilib/FwLib_STC8/src lib/FwLib_STC8/src/fw_spi.c
In file included from lib/FwLib_STC8/include/fw_reg_stc8g.h:4,
from lib/FwLib_STC8/include/fw_conf.h:155,
from lib/FwLib_STC8/include/fw_spi.h:18,
from lib/FwLib_STC8/src/fw_spi.c:15:
lib/FwLib_STC8/include/fw_reg_base.h:21:7: warning: #warning unrecognized compiler
sdcc -o .pio/build/STC8G1K08/libd91/FwLib_STC8/fw_sys.rel -c --std-sdcc11 --opt-code-size --peep-return -mmcs51 -DF_CPU=11059200L -DHEAP_SIZE=128 -DPLATFORMIO=60115 -DSTC8G1KXX -DSTC8G1K08 -DNAKED_ARCH_MCS51 -DNAKED_MCS51_STC8G1KXX -D__SDCC_SYNTAX_FIX -D__CONF_FOSC=26000000UL -D__CONF_MCU_MODEL=MCU_MODEL_STC8G1K08 -D__CONF_IRCBAND=0x03 -D__CONF_VRTRIM=0x19 -D__CONF_IRTRIM=0x28 -D__CONF_LIRTRIM=0x00 -Ilib/FwLib_STC8/include -Ilib/FwLib_STC8/src lib/FwLib_STC8/src/fw_sys.c
sdcc -o .pio/build/STC8G1K08/libd91/FwLib_STC8/fw_tim.rel -c --std-sdcc11 --opt-code-size --peep-return -mmcs51 -DF_CPU=11059200L -DHEAP_SIZE=128 -DPLATFORMIO=60115 -DSTC8G1KXX -DSTC8G1K08 -DNAKED_ARCH_MCS51 -DNAKED_MCS51_STC8G1KXX -D__SDCC_SYNTAX_FIX -D__CONF_FOSC=26000000UL -D__CONF_MCU_MODEL=MCU_MODEL_STC8G1K08 -D__CONF_IRCBAND=0x03 -D__CONF_VRTRIM=0x19 -D_In file included from lib/FwLib_STC8/include/fw_reg_stc8g.h:4,
_ from lib/FwLib_STC8/include/fw_conf.h:155,
CO from lib/FwLib_STC8/include/fw_sys.h:18,
NF_IRTR from lib/FwLib_STC8/src/fw_sys.c:15:
IM=0x28 -D__CONF_LIRTRIM=0x00 -Ilib/FwLib_STC8/includelib/FwLib_STC8/include/fw_reg_base.h:21:7: warning: #warning unrecognized compiler
-Ilib/FwLib_STC8/src lib/FwLib_STC8/src/fw_tim.c
lib/FwLib_STC8/src/fw_sys.c:45: warning 88: cast of LITERAL value to 'generic' pointer
from type 'const-unsigned-int literal'
to type 'volatile-unsigned-char generic* fixed'
lib/FwLib_STC8/src/fw_sys.c:47: warning 88: cast of LITERAL value to 'generic' pointer
from type 'const-unsigned-int literal'
to type 'volatile-unsigned-char generic* fixed'
In file included from lib/FwLib_STC8/include/fw_reg_stc8g.h:4,
from lib/FwLib_STC8/include/fw_conf.h:155,
from lib/FwLib_STC8/include/fw_tim.h:18,
from lib/FwLib_STC8/src/fw_tim.c:15:
lib/FwLib_STC8/include/fw_reg_base.h:21:7: warning: #warning unrecognized compiler
sdcc -o .pio/build/STC8G1K08/libd91/FwLib_STC8/fw_uart.rel -c --std-sdcc11 --opt-code-size --peep-return -mmcs51 -DF_CPU=11059200L -DHEAP_SIZE=128 -DPLATFORMIO=60115 -DSTC8G1KXX -DSTC8G1K08 -DNAKED_ARCH_MCS51 -DNAKED_MCS51_STC8G1KXX -D__SDCC_SYNTAX_FIX -D__CONF_FOSC=26000000UL -D__CONF_MCU_MODEL=MCU_MODEL_STC8G1K08 -D__CONF_IRCBAND=0x03 -D__CONF_VRTRIM=0x19 -D__CONF_IRTRIM=0x28 -D__CONF_LIRTRIM=0x00 -Ilib/FwLib_STC8/include -Ilib/FwLib_STC8/src lib/FwLib_STC8/src/fw_uart.c
In file included from lib/FwLib_STC8/include/fw_reg_stc8g.h:4,
from lib/FwLib_STC8/include/fw_conf.h:155,
from lib/FwLib_STC8/include/fw_uart.h:18,
from lib/FwLib_STC8/src/fw_uart.c:15:
lib/FwLib_STC8/include/fw_reg_base.h:21:7: warning: #warning unrecognized compiler
sdcc -o .pio/build/STC8G1K08/libd91/FwLib_STC8/fw_usb.rel -c --std-sdcc11 --opt-code-size --peep-return -mmcs51 -DF_CPU=11059200L -DHEAP_SIZE=128 -DPLATFORMIO=60115 -DSTC8G1KXX -DSTC8G1K08 -DNAKED_ARCH_MCS51 -DNAKED_MCS51_STC8G1KXX -D__SDCC_SYNTAX_FIX -D__CONF_FOSC=26000000UL -D__CONF_MCU_MODEL=MCU_MODEL_STC8G1K08 -D__CONF_IRCBAND=0x03 -D__CONF_VRTRIM=0x19 -D__CONF_IRTRIM=0x28 -D__CONF_LIRTRIM=0x00 -Ilib/FwLib_STC8/include -Ilib/FwLib_STC8/src lib/FwLib_STC8/src/fw_usb.c
sdcc -o .pio/build/STC8G1K08/libd91/FwLib_STC8/fw_util.rel -c --std-sdcc11 --opt-code-size --peep-return -mmcs51 -DF_CPU=11059200L -DHEAP_SIZE=128 -DPLATFORMIO=60115 -DSTC8G1KXX -DSTC8G1K08 -DNAKED_ARCH_MCS51 -DNAKED_MCS51_STC8G1KXX -D__SDCC_SYNTAX_FIX -D__CONF_FOSC=26000000UL -D__CONF_MCU_MODEL=MCU_MODEL_STC8G1K08 -D__CONF_IRCBAND=0x03 -D__CONF_VRTRIM=0x19 -D__CONF_IRTRIM=0x28 -D__CONF_LIRTRIM=0x00 -Ilib/FwLib_STC8/include -Ilib/FwLib_STC8/src lib/FwLib_STC8/src/fw_util.c
In file included from lib/FwLib_STC8/include/fw_reg_stc8g.h:4,
from lib/FwLib_STC8/include/fw_conf.h:155,
from lib/FwLib_STC8/include/fw_usb.h:18,
from lib/FwLib_STC8/src/fw_usb.c:1:
lib/FwLib_STC8/include/fw_reg_base.h:21:7: warning: #warning unrecognized compiler
lib/FwLib_STC8/src/fw_tim.c:97: warning 88: cast of LITERAL value to 'generic' pointer
from type 'const-unsigned-int literal'
to type 'volatile-unsigned-char generic* fixed'
lib/FwLib_STC8/src/fw_tim.c:106: warning 88: cast of LITERAL value to 'generic' pointer
from type 'const-unsigned-int literal'
to type 'volatile-unsigned-char generic* fixed'
lib/FwLib_STC8/src/fw_tim.c:116: warning 88: cast of LITERAL value to 'generic' pointer
from type 'const-unsigned-int literal'
to type 'volatile-unsigned-char generic* fixed'
In file included from lib/FwLib_STC8/include/fw_reg_stc8g.h:4,
from lib/FwLib_STC8/include/fw_conf.h:155,
from lib/FwLib_STC8/include/fw_util.h:18,
from lib/FwLib_STC8/src/fw_util.c:15:
lib/FwLib_STC8/include/fw_reg_base.h:21:7: warning: #warning unrecognized compiler
lib/FwLib_STC8/src/fw_i2c.c:39: warning 88: cast of LITERAL value to 'generic' pointer
from type 'const-unsigned-int literal'
to type 'volatile-unsigned-char generic* fixed'
lib/FwLib_STC8/src/fw_i2c.c:40: warning 88: cast of LITERAL value to 'generic' pointer
from type 'const-unsigned-int literal'
to type 'volatile-unsigned-char generic* fixed'
lib/FwLib_STC8/src/fw_i2c.c:41: warning 88: cast of LITERAL value to 'generic' pointer
from type 'const-unsigned-int literal'
to type 'volatile-unsigned-char generic* fixed'
lib/FwLib_STC8/src/fw_i2c.c:42: warning 88: cast of LITERAL value to 'generic' pointer
from type 'const-unsigned-int literal'
to type 'volatile-unsigned-char generic* fixed'
lib/FwLib_STC8/src/fw_i2c.c:43: warning 88: cast of LITERAL value to 'generic' pointer
from type 'const-unsigned-int literal'
to type 'volatile-unsigned-char generic* fixed'
lib/FwLib_STC8/src/fw_i2c.c:44: warning 88: cast of LITERAL value to 'generic' pointer
from type 'const-unsigned-int literal'
to type 'volatile-unsigned-char generic* fixed'
lib/FwLib_STC8/src/fw_i2c.c:45: warning 88: cast of LITERAL value to 'generic' pointer
from type 'const-unsigned-int literal'
to type 'volatile-unsigned-char generic* fixed'
lib/FwLib_STC8/src/fw_i2c.c:46: warning 88: cast of LITERAL value to 'generic' pointer
from type 'const-unsigned-int literal'
to type 'volatile-unsigned-char generic* fixed'
lib/FwLib_STC8/src/fw_i2c.c:49: warning 88: cast of LITERAL value to 'generic' pointer
from type 'const-unsigned-int literal'
to type 'volatile-unsigned-char generic* fixed'
lib/FwLib_STC8/src/fw_i2c.c:50: warning 88: cast of LITERAL value to 'generic' pointer
from type 'const-unsigned-int literal'
to type 'volatile-unsigned-char generic* fixed'
lib/FwLib_STC8/src/fw_i2c.c:53: warning 88: cast of LITERAL value to 'generic' pointer
from type 'const-unsigned-int literal'
to type 'volatile-unsigned-char generic* fixed'
lib/FwLib_STC8/src/fw_i2c.c:57: warning 88: cast of LITERAL value to 'generic' pointer
from type 'const-unsigned-int literal'
to type 'volatile-unsigned-char generic* fixed'
lib/FwLib_STC8/src/fw_i2c.c:60: warning 88: cast of LITERAL value to 'generic' pointer
from type 'const-unsigned-int literal'
to type 'volatile-unsigned-char generic* fixed'
lib/FwLib_STC8/src/fw_i2c.c:68: warning 88: cast of LITERAL value to 'generic' pointer
from type 'const-unsigned-int literal'
to type 'volatile-unsigned-char generic* fixed'
lib/FwLib_STC8/src/fw_i2c.c:69: warning 88: cast of LITERAL value to 'generic' pointer
from type 'const-unsigned-int literal'
to type 'volatile-unsigned-char generic* fixed'
lib/FwLib_STC8/src/fw_i2c.c:70: warning 88: cast of LITERAL value to 'generic' pointer
from type 'const-unsigned-int literal'
to type 'volatile-unsigned-char generic* fixed'
lib/FwLib_STC8/src/fw_i2c.c:71: warning 88: cast of LITERAL value to 'generic' pointer
from type 'const-unsigned-int literal'
to type 'volatile-unsigned-char generic* fixed'
lib/FwLib_STC8/src/fw_i2c.c:72: warning 88: cast of LITERAL value to 'generic' pointer
from type 'const-unsigned-int literal'
to type 'volatile-unsigned-char generic* fixed'
lib/FwLib_STC8/src/fw_i2c.c:73: warning 88: cast of LITERAL value to 'generic' pointer
from type 'const-unsigned-int literal'
to type 'volatile-unsigned-char generic* fixed'
lib/FwLib_STC8/src/fw_i2c.c:74: warning 88: cast of LITERAL value to 'generic' pointer
from type 'const-unsigned-int literal'
to type 'volatile-unsigned-char generic* fixed'
lib/FwLib_STC8/src/fw_i2c.c:77: warning 88: cast of LITERAL value to 'generic' pointer
from type 'const-unsigned-int literal'
to type 'volatile-unsigned-char generic* fixed'
lib/FwLib_STC8/src/fw_i2c.c:78: warning 88: cast of LITERAL value to 'generic' pointer
from type 'const-unsigned-int literal'
to type 'volatile-unsigned-char generic* fixed'
lib/FwLib_STC8/src/fw_i2c.c:80: warning 88: cast of LITERAL value to 'generic' pointer
from type 'const-unsigned-int literal'
to type 'volatile-unsigned-char generic* fixed'
lib/FwLib_STC8/src/fw_i2c.c:88: warning 88: cast of LITERAL value to 'generic' pointer
from type 'const-unsigned-int literal'
to type 'volatile-unsigned-char generic* fixed'
lib/FwLib_STC8/src/fw_i2c.c:89: warning 88: cast of LITERAL value to 'generic' pointer
from type 'const-unsigned-int literal'
to type 'volatile-unsigned-char generic* fixed'
lib/FwLib_STC8/src/fw_i2c.c:90: warning 88: cast of LITERAL value to 'generic' pointer
from type 'const-unsigned-int literal'
to type 'volatile-unsigned-char generic* fixed'
lib/FwLib_STC8/src/fw_i2c.c:91: warning 88: cast of LITERAL value to 'generic' pointer
from type 'const-unsigned-int literal'
to type 'volatile-unsigned-char generic* fixed'
lib/FwLib_STC8/src/fw_i2c.c:92: warning 88: cast of LITERAL value to 'generic' pointer
from type 'const-unsigned-int literal'
to type 'volatile-unsigned-char generic* fixed'
lib/FwLib_STC8/src/fw_i2c.c:93: warning 88: cast of LITERAL value to 'generic' pointer
from type 'const-unsigned-int literal'
to type 'volatile-unsigned-char generic* fixed'
lib/FwLib_STC8/src/fw_i2c.c:94: warning 88: cast of LITERAL value to 'generic' pointer
from type 'const-unsigned-int literal'
to type 'volatile-unsigned-char generic* fixed'
lib/FwLib_STC8/src/fw_i2c.c:95: warning 88: cast of LITERAL value to 'generic' pointer
from type 'const-unsigned-int literal'
to type 'volatile-unsigned-char generic* fixed'
lib/FwLib_STC8/src/fw_i2c.c:96: warning 88: cast of LITERAL value to 'generic' pointer
from type 'const-unsigned-int literal'
to type 'volatile-unsigned-char generic* fixed'
lib/FwLib_STC8/src/fw_i2c.c:97: warning 88: cast of LITERAL value to 'generic' pointer
from type 'const-unsigned-int literal'
to type 'volatile-unsigned-char generic* fixed'
lib/FwLib_STC8/src/fw_i2c.c:100: warning 88: cast of LITERAL value to 'generic' pointer
from type 'const-unsigned-int literal'
to type 'volatile-unsigned-char generic* fixed'
lib/FwLib_STC8/src/fw_i2c.c:101: warning 88: cast of LITERAL value to 'generic' pointer
from type 'const-unsigned-int literal'
to type 'volatile-unsigned-char generic* fixed'
lib/FwLib_STC8/src/fw_i2c.c:104: warning 88: cast of LITERAL value to 'generic' pointer
from type 'const-unsigned-int literal'
to type 'volatile-unsigned-char generic* fixed'
lib/FwLib_STC8/src/fw_i2c.c:108: warning 88: cast of LITERAL value to 'generic' pointer
from type 'const-unsigned-int literal'
to type 'volatile-unsigned-char generic* fixed'
lib/FwLib_STC8/src/fw_i2c.c:111: warning 88: cast of LITERAL value to 'generic' pointer
from type 'const-unsigned-int literal'
to type 'volatile-unsigned-char generic* fixed'
sdar rc .pio/build/STC8G1K08/libd91/libFwLib_STC8.lib .pio/build/STC8G1K08/libd91/FwLib_STC8/fw_adc.rel .pio/build/STC8G1K08/libd91/FwLib_STC8/fw_i2c.rel .pio/build/STC8G1K08/libd91/FwLib_STC8/fw_mem.rel .pio/build/STC8G1K08/libd91/FwLib_STC8/fw_spi.rel .pio/build/STC8G1K08/libd91/FwLib_STC8/fw_sys.rel .pio/build/STC8G1K08/libd91/FwLib_STC8/fw_tim.rel .pio/build/STC8G1K08/libd91/FwLib_STC8/fw_uart.rel .pio/build/STC8G1K08/libd91/FwLib_STC8/fw_usb.rel .pio/build/STC8G1K08/libd91/FwLib_STC8/fw_util.rel
sdcc -o .pio/build/STC8G1K08/firmware.hex -mmcs51 --iram-size 256 --xram-size 1024 --code-size 8192 --out-fmt-ihx .pio/build/STC8G1K08/src/main.rel -L.pio/build/STC8G1K08 .pio/build/STC8G1K08/libd91/libFwLib_STC8.lib
?ASlink-Error-Could not get 226 consecutive bytes in internal RAM for area DSEG.
*** [.pio/build/STC8G1K08/firmware.hex] Error 1
=================================================================================================================================== [FAILED] Took 1.08 seconds ===================================================================================================================================
* The terminal process "platformio 'run', '--verbose', '--environment', 'STC8G1K08'" terminated with exit code: 1.
* Terminal will be reused by tasks, press any key to close it. |
You should not add "-D__SDCC_SYNTAX_FIX" to the flags for building environment as document mentioned that. (Read the English Manual rather than Chinese version) BTW the building issue for my model |
Thanks for the advice. I gave the build_flags from the demo code you mentioned a shot, but didn't have any luck. I'm still getting the same error on Windows. I'll try it on Ubuntu later. |
I also have a similar error:
My platformio.ini:
|
include "fw_hal.h"后编译空的main()报错
platformio.ini
main.c
terminal output
The text was updated successfully, but these errors were encountered: