I can no longer compile my projects for LGT8F because of the “platform” is unknown.
Following output is generated after I deleted “,platformio/platforms/lgt8f” directory and tried to compile the project:
> Processing LGT8F328P (platform: lgt8f; board: LGT8F328P; framework: arduino)
> --------------------------------------------------------------------------------------------------------------------Platform Manager: Installing lgt8f
> Unpacking [####################################] 100%
> Platform Manager: lgt8f@1.0.1 has been installed!
> Verbose mode can be enabled via `-v, --verbose` option
> UnknownPlatform: Unknown development platform 'lgt8f':
> File "C:\Users\MiKo\.platformio\penv\lib\site-packages\platformio\builder\main.py", line 158:
> env.LoadPioPlatform()
> File "C:\Users\MiKo\.platformio\packages\tool-scons\scons-local-4.5.2\SCons\Util\envs.py", line 242:
> return self.method(*nargs, **kwargs)
> File "C:\Users\MiKo\.platformio\penv\lib\site-packages\platformio\builder\tools\pioplatform.py", line 66:
> p = env.PioPlatform()
> File "C:\Users\MiKo\.platformio\packages\tool-scons\scons-local-4.5.2\SCons\Util\envs.py", line 242:
> return self.method(*nargs, **kwargs)
> File "C:\Users\MiKo\.platformio\penv\lib\site-packages\platformio\builder\tools\pioplatform.py", line 40:
> return _PioPlatform()
> File "C:\Users\MiKo\.platformio\penv\lib\site-packages\platformio\util.py", line 56:
> self.cache[key] = (time.time(), func(*args, **kwargs))
> File "C:\Users\MiKo\.platformio\penv\lib\site-packages\platformio\builder\tools\pioplatform.py", line 36:
> return PlatformFactory.from_env(env["PIOENV"], targets=COMMAND_LINE_TARGETS)
> File "C:\Users\MiKo\.platformio\penv\lib\site-packages\platformio\platform\factory.py", line 100:
> p = cls.new(spec, autoinstall=autoinstall)
> File "C:\Users\MiKo\.platformio\penv\lib\site-packages\platformio\platform\factory.py", line 70:
> raise UnknownPlatform(pkg_or_spec)
> ============================================ [FAILED] Took 1.99 seconds ============================================
platformio.ini
framework = arduino
board_build.f_cpu = 16000000L
;board_build.f_cpu = 32000000L
platform_packages = darkautism/framework-lgt8fx@^1.0.6
board_build.clock_source = 1
lib_deps =
jgromes/RadioLib@^6.0.0
adafruit/Adafruit BMP280 Library@^2.6.8
adafruit/Adafruit Si7021 Library@^1.5.1
adafruit/Adafruit Unified Sensor@^1.1.9
;sparkfun/SparkFun Si7021 Humidity and Temperature Sensor@^1.0.5
;martinl1/BMP280_DEV@^1.0.21
[platformio]
description = LoRa Sensor Node
platform.json (manifest)
{
"name": "lgt8f",
"title": "Logic Green boards",
"description": "Board Package for Logic Green",
"url": "https://github.com/darkautism/pio-lgt8fx",
"homepage": "https://github.com/darkautism/pio-lgt8fx",
"license": "Apache-2.0",
"engines": {
"platformio": "^5"
},
"repository": {
"type": "git",
"url": "https://github.com/darkautism/pio-lgt8fx.git"
},
"version": "1.0.1",
"frameworks": {
"arduino": {
"package": "framework-lgt8fx",
"script": "builder/frameworks/arduino.py"
}
},
"packages": {
"toolchain-atmelavr": {
"type": "toolchain",
"version": ">=1.70300.191015"
},
"framework-lgt8fx": {
"type": "framework",
"optional": true,
"version": ">=1.0.5"
},
"tool-avrdude": {
"type": "uploader",
"optional": true,
"version": "~1.60300.0"
}
}
}
The problem started after I tried to update the LGT8F environment, because an empty “sketch” used up more than 26K of program memory???