Open dasudiy opened 3 months ago
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 STC8G1K08A
also bothered me and I found that the build_flags in the comment of file /demo/spi/max7219/max7219_8x8led_stc8g1k08.c
in this repo works fine. You can try it out.
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
STC8G1K08A
also bothered me and I found that the build_flags in the comment of file/demo/spi/max7219/max7219_8x8led_stc8g1k08.c
in this repo works fine. You can try it out.
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:
Processing stc8g1k08 (platform: intel_mcs51; board: stc8g1k08)
----------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via `-v, --verbose` option
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.40400.0 (4.4.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
Building in release mode
Compiling .pio\build\stc8g1k08\src\main.rel
Compiling .pio\build\stc8g1k08\lib637\FwLib_STC8\fw_adc.rel
Compiling .pio\build\stc8g1k08\lib637\FwLib_STC8\fw_i2c.rel
Compiling .pio\build\stc8g1k08\lib637\FwLib_STC8\fw_mem.rel
Compiling .pio\build\stc8g1k08\lib637\FwLib_STC8\fw_spi.rel
Compiling .pio\build\stc8g1k08\lib637\FwLib_STC8\fw_sys.rel
Compiling .pio\build\stc8g1k08\lib637\FwLib_STC8\fw_tim.rel
Compiling .pio\build\stc8g1k08\lib637\FwLib_STC8\fw_uart.rel
Compiling .pio\build\stc8g1k08\lib637\FwLib_STC8\fw_usb.rel
Compiling .pio\build\stc8g1k08\lib637\FwLib_STC8\fw_util.rel
Archiving .pio\build\stc8g1k08\lib637\libFwLib_STC8.lib
*** [.pio\build\stc8g1k08\lib637\libFwLib_STC8.lib] Error 3221225781
=================================================== [FAILED] Took 5.03 seconds ===================================================
* The terminal process "C:\Users\User\.platformio\penv\Scripts\platformio.exe 'run'" terminated with exit code: 1.
* Terminal will be reused by tasks, press any key to close it.
My platformio.ini:
[env:stc8g1k08]
platform = intel_mcs51
board = stc8g1k08
build_flags =
-D__CONF_FOSC=36864000UL
-D__CONF_MCU_MODEL=MCU_MODEL_STC8G1K08
-D__CONF_CLKDIV=0x00
-D__CONF_IRCBAND=0x01
-D__CONF_VRTRIM=0x20
-D__CONF_IRTRIM=0xA3
-D__CONF_LIRTRIM=0x03
upload_protocol = custom
upload_port = /dev/ttyUSB0
upload_speed = 115200
upload_flags =
-p$UPLOAD_PORT
-s$UPLOAD_SPEED
-e
upload_command = ${platformio.packages_dir}/tool-stc8prog/stc8prog $UPLOAD_FLAGS -f $SOURCE
include "fw_hal.h"后编译空的main()报错
platformio.ini
main.c
terminal output