Chcę skompilować na ESP z 8MB ram / 16MB flash.
Instalowałem nowy Visual Studio Code, potem PlatformIO, potem Espressif w wersji 3.4.0.
Nie instalowałem githuba, ale to chyba nie gra roli.
Otrzymuję taki błąd:
FileNotFoundError: [WinError 2] Nie można odnaleźć określonego pliku:
File "C:\Users\user\.platformio\penv\lib\site-packages\platformio\builder\main.py", line 186:
env.SConscript(item, exports="env")
File "C:\Users\user\.platformio\packages\tool-scons\scons-local-4.4.0\SCons\Script\SConscript.py", line 597:
return _SConscript(self.fs, *files, **subst_kw)
File "C:\Users\user\.platformio\packages\tool-scons\scons-local-4.4.0\SCons\Script\SConscript.py", line 285:
exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
File "C:\Users\user\Documents\Workspace\fujinet-platformio-master\build_version.py", line 11:
elif len(subprocess.check_output(["git", "diff", "--name-only"], universal_newlines=True)) == 0:
File "C:\Users\user\.platformio\python3\lib\subprocess.py", line 424:
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "C:\Users\user\.platformio\python3\lib\subprocess.py", line 505:
with Popen(*popenargs, **kwargs) as process:
File "C:\Users\user\.platformio\python3\lib\subprocess.py", line 951:
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Users\user\.platformio\python3\lib\subprocess.py", line 1420:
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
Mój platform.ini wygląda tak:
;FujiNet PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
; Uncomment the platform you are building for below
[fujinet]
;build_platform = NOT_SET
build_platform = BUILD_ATARI
;build_platform = BUILD_CBM
;build_platform = BUILD_ADAM
;build_platform = BUILD_APPLE
[platformio]
description = FujiNet retro computer to ESP32 WiFi Multifunction Firmware
; Change this to target hardware you use from the list of [env:xxx] sections below
default_envs = fujinet-v1
data_dir = $PROJECT_DIR/data/${fujinet.build_platform}
[env]
; Common settings for all enivornments
platform = espressif32
framework = espidf
extra_scripts = pre:build_version.py
lib_ldf_mode = deep+
upload_speed = 921600
upload_port = COM12 ; Windows
;upload_port = /dev/ttyUSB0 ; Linux
;upload_port = /dev/tty.SLAB_USBtoUART ; Mac
monitor_speed = 921600
monitor_port = COM12 ; Windows
;monitor_port = /dev/ttyUSB0 ; Linux
;monitor_port = /dev/tty.SLAB_USBtoUART ; Mac
monitor_filters = time, esp32_exception_decoder
build_flags =
-D ${fujinet.build_platform}
-D CMAKE_EXPORT_COMPILE_COMMANDS=ON
-D DEBUG_SPEED=921600
;-D NO_BUTTONS ; if your hardware has no physical buttons
;-D JTAG ; enable use with JTAG debugger
;-D BLUETOOTH_SUPPORT ; enable BlueTooth support
;-D FN_HISPEED_INDEX=0
;-D VERBOSE_SIO
;-D VERBOSE_TNFS
;-D VERBOSE_DISK
;-D VERBOSE_ATX
;-D DEBUG_TIMING
;-D DATA_STREAM
;-D NO_VIRTUAL_KEYBOARD
; ESP32 WROVER (16MB Flash, 8MB PSRAM) based FujiNet
[env:fujinet-v1]
board = fujinet-v1
build_type = debug
; ESP32 WROVER (8MB Flash, 8MB PSRAM) based FujiNet
[env:fujinet-v1-8mb]
board = fujinet-v1-8mb
build_type = debug
; ESP32 WROVER (4MB Flash, 8MB PSRAM) based FujiNet
[env:fujinet-v1-4mb]
board = fujinet-v1-4mb
build_type = debug