Git Product home page Git Product logo

oatfwgui's People

Contributors

julianneswinoga avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

oatfwgui's Issues

Unable to Upload FW on MKS Gen L V2.1 board

Hi, got a new MKS Gen l V2.1 clone board and tried to upload FW, with Arduino V1.11.5 FW and having same trouble with time out error on AMD Windows 11 PC and INTEL N95 Windows 11. tried USB 3.0 and 2.0 ports same behavior, then using Arduino IDE i managed to upload a sketch working on Arduino MEGA 2560 and it works on the MKS V2.1. On the other hand was able to upload the FW with same configuration as before on the Arduino ATEMEGA 2560 board , and it works. i just want to add the Focuser but no way to upload it on MKS ... Any ideas ?

2024-01-22 17:23:26,864:INFO:         Using Port                    : COM3 
2024-01-22 17:23:26,864:INFO:         Using Programmer              : wiring 
2024-01-22 17:23:26,864:INFO:         Overriding Baud Rate          : 115200 
2024-01-22 17:23:26,864:ERROR:avrdude stk500v2_recv() error: timeout 
2024-01-22 17:23:26,864:ERROR:avrdude stk500v2_recv() error: timeout 
2024-01-22 17:23:26,864:ERROR:avrdude stk500v2_recv() error: timeout 
2024-01-22 17:23:26,864:ERROR:avrdude stk500v2_recv() error: timeout 
2024-01-22 17:23:26,864:ERROR:avrdude stk500v2_recv() error: timeout 
2024-01-22 17:23:26,864:ERROR:avrdude stk500v2_recv() error: timeout 
2024-01-22 17:23:26,864:ERROR:avrdude stk500v2_getsync() error: timeout communicating with programmer 
2024-01-22 17:23:26,864:ERROR:avrdude main() error: unable to open programmer wiring on port COM3 
2024-01-22 17:23:26,864:INFO: 
2024-01-22 17:23:26,864:INFO:avrdude done.  Thank you. 
2024-01-22 17:23:26,864:INFO: 
2024-01-22 17:23:26,864:ERROR:*** [upload] Error 1 
2024-01-22 17:23:26,974:ERROR:========================= [FAILED] Took 69.53 seconds ========================= 
2024-01-22 17:23:26,990:INFO: 
2024-01-22 17:23:26,990:ERROR:Environment    Status    Duration 
-------------  --------  ------------ 
ramps          IGNORED 
mksgenlv21     FAILED    00:01:09.532 
mksgenlv2      IGNORED 
mksgenlv1      IGNORED 
esp32          IGNORED 
native         IGNORED 
==================== 1 failed, 0 succeeded in 00:01:09.532 ==================== 
2024-01-22 17:23:27,037:INFO:platformio upload finished 
2024-01-22 17:23:27,037:ERROR:Did not exit normally 
2024-01-22 17:23:27,037:INFO:NOT uploading anonymous usage statistics 
2024-01-22 17:43:24,795:DEBUG:Setting GUI log level to INFO 
2024-01-22 17:23:26,860:INFO:         System wide configuration file is C:\Users\Lenovo\AppData\Local\Temp\.pioOATFWGUI1.0.5-release+b849ae\packages\tool-avrdude\avrdude.conf
2024-01-22 17:23:26,860:INFO:
2024-01-22 17:23:26,864:INFO:         Using Port                    : COM3
2024-01-22 17:23:26,864:INFO:         Using Programmer              : wiring
2024-01-22 17:23:26,864:INFO:         Overriding Baud Rate          : 115200
2024-01-22 17:23:26,864:ERROR:avrdude stk500v2_recv() error: timeout
2024-01-22 17:23:26,864:ERROR:avrdude stk500v2_recv() error: timeout
2024-01-22 17:23:26,864:ERROR:avrdude stk500v2_recv() error: timeout
2024-01-22 17:23:26,864:ERROR:avrdude stk500v2_recv() error: timeout
2024-01-22 17:23:26,864:ERROR:*** [upload] Error 1
2024-01-22 17:23:26,864:ERROR:avrdude stk500v2_recv() error: timeout
2024-01-22 17:23:26,864:ERROR:avrdude stk500v2_recv() error: timeout
2024-01-22 17:23:26,864:ERROR:avrdude stk500v2_getsync() error: timeout communicating with programmer
2024-01-22 17:23:26,864:ERROR:avrdude main() error: unable to open programmer wiring on port COM3
2024-01-22 17:23:26,864:INFO:
2024-01-22 17:23:26,864:INFO:avrdude done.  Thank you.
2024-01-22 17:23:26,864:INFO:
2024-01-22 17:23:26,974:ERROR:========================= [FAILED] Took 69.53 seconds =========================
2024-01-22 17:23:26,990:INFO:
2024-01-22 17:23:26,990:ERROR:Environment    Status    Duration
-------------  --------  ------------
ramps          IGNORED
mksgenlv21     FAILED    00:01:09.532
mksgenlv2      IGNORED
mksgenlv1      IGNORED
esp32          IGNORED
native         IGNORED
==================== 1 failed, 0 succeeded in 00:01:09.532 ====================
2024-01-22 17:23:27,037:DEBUG:C:\0.0 Open Astro ASCOM Mount\0.0.1 Firmware\OATFWGUI_1.0.5-release+b849ae_Windows\.python_local\python.exe:State changed: Not running
2024-01-22 17:23:27,037:INFO:platformio upload finished
2024-01-22 17:23:27,037:DEBUG:Cleaning up logged external file C:\Users\Lenovo\AppData\Local\Temp\tmpb2i5yb1t_avrdude_log
2024-01-22 17:23:27,037:ERROR:Did not exit normally
2024-01-22 17:23:27,037:INFO:NOT uploading anonymous usage statistics
2024-01-22 17:23:27,037:DEBUG:Cleaning up external process: C:\0.0 Open Astro ASCOM Mount\0.0.1 Firmware\OATFWGUI_1.0.5-release+b849ae_Windows\.python_local\python.exe. Exited with 1
2024-01-22 17:43:10,733:DEBUG:Setting GUI log level to ERROR
2024-01-22 17:43:17,725:DEBUG:Setting GUI log level to DEBUG
2024-01-22 17:43:24,795:DEBUG:Setting GUI log level to INFO
2024-01-22 17:43:50,538:DEBUG:Setting GUI log level to WARNING
2024-01-22 17:43:55,436:DEBUG:Setting GUI log level to ERROR

AVR PIO upload is logged as errors

When uploading, the status logs all show as errors:
avrdude_errors

Perhaps we could do some heuristics on these logs and specially redirect them as INFO?

avrdude has a flag to redirect output to a file instead of stderr: https://manpages.ubuntu.com/manpages/bionic/man1/avrdude.1.html
Perhaps we could output to a temp file and then monitor?

PIO has the ability to pass flags to the uploader: https://docs.platformio.org/en/latest/projectconf/sections/env/options/upload/upload_flags.html so we wouldn't need to modify the .ini project file

Better `git` handling for Windows

There's an implicit dependency on git (from pio lib git+https://github.com/andre-stefanov/avr-interrupt-stepper @ 0.0.2). Maybe we can bundle a git binary with the Windows release?

Support Python3.11

Re #14, need to figure out the dependencies for PySide6-Essentials such that we can support 3.7 up to 3.11.
As part of this task there should also be CI checks for Linux that checks the install for all supported python versions.

Space in Windows path causes batch file to not launch python

C:\Users\USER NAME\Documents\OATFWGUI_1.0.0-release+f5e4f6_Windows_X64\OATFWGUI_1.0.0-release+f5e4f6_Windows_X64> .\OATFWGUI_Windows.bat

C:\Users\USER NAME\Documents\OATFWGUI_1.0.0-release+f5e4f6_Windows_X64\OATFWGUI_1.0.0-release+f5e4f6_Windows_X64>C:\Users\USER NAME\Documents\OATFWGUI_1.0.0-release+f5e4f6_Windows_X64\OATFWGUI_1.0.0-release+f5e4f6WindowsX64\.python_local\python.exe C:\Users\USER NAME\Documents\OATFWGUI_1.0.0-release+f5e4f6_Windows_X64\OATFWGUI_1.0.0-release+f5e4f6_Windows_X64\OATFWGUI\main.py
'C:\Users\USER' is not recognized as an internal or external command, operable program or batch file.
C:\Users\USER NAME\Documents\OATFWGUI_1.0.0-release+f5e4f6_Windows_X64\OATFWGUI_1.0.0-release+f5e4f6_Windows_X64>

Speed up Windows CI build

Since Windows CI artifacts are large (we package an entire install at once, vs Linux having an install-in-place script) the CI builds are large. The main problem is that actions/upload-artifact@v3 is so damn slow.
Known issue apparently: actions/upload-artifact#199
A possible workaround is to archive (zip) the project ourself and then tell upload-artifact to upload the zip? It adds another layer of complexity but it might be worth it.

Integrate FW configurator

Currently you need to generate configuration with https://config.openastrotech.com/, then import it into OATFWGUI. Ideally this would all be handled in the GUI.
We'd still want the ability to import a custom header configuration (for advanced users) but the majority of users would just need to click through some options.
As a part of this we would need to standardize a parsable configuration file so that users wouldn't need to re-input all their options every time they re-launched the GUI.

Visual "Download" checkmark bug

After clicking "Download" and selecting a config file, the "Download" checkmark glitches under the "Download" button:
visual_bug_after_board_select
Clicking the "Download" button again makes the checkmark appear in the right place:
visual_bug_download_again
Re-sizing the window makes the glitched checkmark go away.

UnicodeDecodeError when build FW

I have successfully downloaded the version, but when I click "Build FW", I get an error:

24-02-28 12:06:03,600:ERROR:In file included from src\../LocalConfiguration.hpp:20:0, 
2024-02-28 12:06:03,601:CRITICAL:Exception caught 
2024-02-28 12:06:03,609:CRITICAL:Traceback (most recent call last):
  File "C:\adb\OATF\OATFWGUI\external_processes.py", line 65, in handle_stderr
    stderr = bytes(data).decode("utf8")
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xee in position 176: invalid continuation byte 
2024-02-28 12:06:03,610:CRITICAL:
...

Win 10
oat_fw_gui_2024-02-28-12-01-49.log

Linux install doesn't work on Python3.11

Trying to run OATFWGUI_Linux.sh doesn't work if the Python version is 3.11:

Script dir: /home/julie/Downloads
~/Downloads ~/Downloads
LIBC version: ldd (GNU libc) 2.36
./.venv_OATFWGUI is not present, installing virtual environment
Python version: Python 3.11.2
Python command is /usr/bin/python3
Upgrading pip
Requirement already satisfied: pip in ./.venv_OATFWGUI/lib64/python3.11/site-packages (22.2.2)
Collecting pip
  Downloading pip-23.0.1-py3-none-any.whl (2.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 4.9 MB/s eta 0:00:00
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 22.2.2
    Uninstalling pip-22.2.2:
      Successfully uninstalled pip-22.2.2
Successfully installed pip-23.0.1
Installing requirements
Collecting platformio==6.1.4
  Using cached platformio-6.1.4.tar.gz (245 kB)
  Preparing metadata (setup.py) ... done
ERROR: Ignored the following versions that require a different python version: 6.3.0 Requires-Python <3.11,>=3.6; 6.3.1 Requires-Python <3.11,>=3.6; 6.3.2 Requires-Python <3.11
,>=3.6; 6.4.0 Requires-Python <3.11,>=3.6
ERROR: Could not find a version that satisfies the requirement PySide6-Essentials==6.3.2 (from versions: 6.4.0.1, 6.4.1, 6.4.2)
ERROR: No matching distribution found for PySide6-Essentials==6.3.2

Due to a dependency error with PySide6-Essentials==6.3.2

Add documentation for Windows Defender making things slow

Testing exclusions for Windows Defender, full build, no .pio folder:

Test Absolute Times Build time
No exclusions 11:42:27,290 -> 11:49:58,025 450.7s
Exclude app folder 11:51:29,055 -> 11:58:52,675 443.6s
Exclude both app and .pio folder 12:00:24,547 -> 12:03:11,351 166.8s
Exclude *.py extension 12:04:45,371 -> 12:11:42,312 416.9s
Exclude platformio.exe process 12:13:11,923 -> 12:20:13,813 422.0s
Exclude pio.exe process 12:21:58,938 -> 12:29:12,484 433.5s

Maybe there could be an automatic addition to Windows Defender exclusion lists? Might be a bit sketchy though 😦

Auto-clean temp files on Windows

Temporary files/directories are never automatically deleted on Windows 😦
https://superuser.com/a/296827

So we should do some work to automatically delete temporary folders created with an older version of OATFWGUI. Currently we only create f'.pioOATFWGUI{__version__}' in the temp dir (and only then because of a workaround for Windows path lengths)

Auto-update checker

It would be nice to automatically check for a new OATFWGUI version and notify the user

Using 8 microsteps for RA/DEC leads to compilation failure

[Probably a FW bug, not a GUI bug, I can't confirm]

Default microsteps for RA/DEC in OAT Firmware Configuration web V2.15 is 8.

// Unique ConfigKey: TR:OAT,FWT:L,SL:N,HS:N,BD:M21,RST:N9,RDO:TU,RATP1500:O90:A3000:V1800:S8:T256:,RTR:N,RT:1,DS:N9,DDT:TU,DATP1500:O90:A3000:V1800:S8:T256:,DT:1,DLIN90:D45:,STL:N,DY:LCD,GP:Y,LM:N,FC:N,APT:N,RAH:Y,RAHAP53:S10:

Compilation fails with this default setup. But it works changing it to 16.

2024-03-02 09:10:21,039:ERROR:In file included from .pio\libdeps\mksgenlv21\InterruptStepper\include/Stepper.h:25:0, 
2024-03-02 09:10:21,039:ERROR:                 from src\StepperConfiguration.hpp:13, 
                 from src\Mount.hpp:11, 
                 from src\HallSensorHoming.hpp:5, 
                 from src\Mount.cpp:5: 
.pio\libdeps\mksgenlv21\InterruptStepper\include/AccelerationRamp.h: In instantiation of 'class AccelerationRamp<256, 16000000, 314, 314>': 
.pio\libdeps\mksgenlv21\InterruptStepper\include/Stepper.h:306:65:   required from 'static uint32_t Stepper<INTERRUPT, DRIVER, RAMP>::distanceToGo() [with INTERRUPT = IntervalInterrupt<(Timer)4>; DRIVER = Driver<Pin<60>, Pin<61> >; RAMP = AccelerationRamp<256, 16000000, 314, 314>; uint32_t = long unsigned int]' 
src\InterruptAccelStepper.h:89:37:   required from 'uint32_t InterruptAccelStepper<STEPPER>::distanceToGo() [with STEPPER = Stepper<IntervalInterrupt<(Timer)4>, Driver<Pin<60>, Pin<61> >, AccelerationRamp<256, 16000000, 314, 314> >; uint32_t = long unsigned int]' 
src\Mount.cpp:1428:66:   required from here 
.pio\libdeps\mksgenlv21\InterruptStepper\include/AccelerationRamp.h:91:5: error: static assertion failed: Amount of steps per stair has to be at most 128 
     static_assert(STEPS_PER_STAIR <= 128, "Amount of steps per stair has to be at most 128"); 
     ^~~~~~~~~~~~~ 
.pio\libdeps\mksgenlv21\InterruptStepper\include/AccelerationRamp.h:92:5: error: static assertion failed: Amount of steps per stair has to be power of 2 
     static_assert(is_pow2(STEPS_PER_STAIR), "Amount of steps per stair has to be power of 2"); 
     ^~~~~~~~~~~~~ 

module `SCons.Script` has no attribute `main`

...
2023-11-26 15:06:11,270:INFO:Unpacking
2023-11-26 15:06:11,721:INFO:Library Manager: Embedded Template [email protected] has been installed!
2023-11-26 15:06:11,751:ERROR:Traceback (most recent call last):

  File "C:\Users\USER\AppData\Local\Temp\.pioOATFWGUI1.0.3-release+1291a6\packages\tool-scons\scons.py", line 97, in <module>

    SCons.Script.main()

AttributeError: module 'SCons.Script' has no attribute 'main'
2023-11-26 15:06:11,754:ERROR:========================= [FAILED] Took 18.57 seconds =========================

oat_fw_gui_2023-11-26-15-05-16.log

Download of the Arduino V1.11.5 failed

I selected the above mentioned fw and wanted to download it in the OAT Firmware GUI to create a firmware. After pressing the "Download" button, I got red error messages (also see logs attached):
oat_fw_gui_2024-01-23-22-42-30.log

2024-01-23 22:43:38,083:CRITICAL:Exception caught 
2024-01-23 22:43:38,083:CRITICAL:Traceback (most recent call last):
  File "shutil.py", line 815, in move
FileNotFoundError: [WinError 2] The system cannot find the file specified: 'C:\\Users\\mail\\Downloads\\OATFWGUI_1.0.5-release+b849ae_Windows\\OATFWGUI_1.0.5-release+b849ae_Windows\\OpenAstroTech-OpenAstroTracker-Firmware-d387d8d' -> 'C:\\Users\\mail\\Downloads\\OATFWGUI_1.0.5-release+b849ae_Windows\\OATFWGUI_1.0.5-release+b849ae_Windows\\OATFW'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\mail\Downloads\OATFWGUI_1.0.5-release+b849ae_Windows\OATFWGUI_1.0.5-release+b849ae_Windows\OATFWGUI\qt_extensions.py", line 44, in run
    raise e
  File "C:\Users\mail\Downloads\OATFWGUI_1.0.5-release+b849ae_Windows\OATFWGUI_1.0.5-release+b849ae_Windows\OATFWGUI\qt_extensions.py", line 39, in run
    result = self.fn(*self.args, **self.kwargs)
  File "C:\Users\mail\Downloads\OATFWGUI_1.0.5-release+b849ae_Windows\OATFWGUI_1.0.5-release+b849ae_Windows\OATFWGUI\gui_logic.py", line 196, in download_and_extract_fw
    self.logic_state.fw_dir = extract_fw(zipfile_name)
  File "C:\Users\mail\Downloads\OATFWGUI_1.0.5-release+b849ae_Windows\OATFWGUI_1.0.5-release+b849ae_Windows\OATFWGUI\gui_logic.py", line 85, in extract_fw
    shutil.move(extracted_dir, fw_dir)
  File "shutil.py", line 835, in move
  File "shutil.py", line 434, in copy2
  File "shutil.py", line 254, in copyfile
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\mail\\Downloads\\OATFWGUI_1.0.5-release+b849ae_Windows\\OATFWGUI_1.0.5-release+b849ae_Windows\\OpenAstroTech-OpenAstroTracker-Firmware-d387d8d' 
2024-01-23 22:43:38,083:CRITICAL:
This is a bug! Please click the 'Report a bug' button in the bottom right of the window
and attach the latest log file from the 'logs' directory (C:\Users\mail\Downloads\OATFWGUI_1.0.5-release+b849ae_Windows\OATFWGUI_1.0.5-release+b849ae_Windows\logs) 

Have an admin mode that allows me to use any branch

As a developer I'd like to deploy branches I'm working on instead of just develop. I realize this is not for a majority of users, so maybe it could be an advanced option or a parameter to the startup file....

Windows 260 character path length in `.pio` dir

The .pio directory under the downloaded firmware can possibly have path lengths longer than 260 characters:
C:/Users/USER/Downloads/OATFWGUI_1.0.0-release+f5e4f6_Windows_X64/OATFWGUI_1.0.0-release+f5e4f6_Windows_X64/OpenAstroTech-OpenAstroTracker-Firmware-38586ce/.pio/libdeps/mksgenlv21/U8g2/examples/mui/MUIInputVersatileRotaryEncoder/MUIInputVersatileRotaryEncoder.ino

Partially this is because of the extracted doubled folder structure (OATFWGUI_1.0.0-release+f5e4f6_Windows_X64/OATFWGUI_1.0.0-release+f5e4f6_Windows_X64) but there should still be automated mitigation for this.

Failed to build firmware OAM

Despite all of my efforts, it's impossible to build firmware for the OAM. I tried several times, but in vain.

2023-10-19 13:00:45,890:INFO:Adding portable git:N:\OATFWGUI_1.0.3-release+1291a6_Windows\OATFWGUI_1.0.3-release+1291a6_Windows\.portable_git\bin to PATH 
2023-10-19 13:00:45,893:INFO:Setting PLATFORMIO_CORE_DIR to C:\Users\PCI5~1\AppData\Local\Temp\.pioOATFWGUI1.0.3-release+1291a6 
2023-10-19 13:00:45,894:INFO:Running in embedded python 
2023-10-19 13:00:45,897:INFO:Starting N:\OATFWGUI_1.0.3-release+1291a6_Windows\OATFWGUI_1.0.3-release+1291a6_Windows\.python_local\python.exe with args: ['-m', 'platformio', 'system', 'info'] and env None 
2023-10-19 13:00:48,031:INFO:--------------------------  ------------------------------------------------------------------------------------------------------------------- 
PlatformIO Core             6.1.4 
Python                      3.10.7-final.0 
System Type                 windows_amd64 
Platform                    Windows-10 
File System Encoding        utf-8 
Locale Encoding             cp1252 
PlatformIO Core Directory   C:\Users\PCI5~1\AppData\Local\Temp\.pioOATFWGUI1.0.3-release+1291a6 
PlatformIO Core Executable  N:\OATFWGUI_1.0.3-release+1291a6_Windows\OATFWGUI_1.0.3-release+1291a6_Windows\.python_local\Scripts\platformio.exe 
Python Executable           N:\OATFWGUI_1.0.3-release+1291a6_Windows\OATFWGUI_1.0.3-release+1291a6_Windows\.python_local\python.exe 
Global Libraries            0 
Development Platforms       1 
Tools & Toolchains          4 
--------------------------  ------------------------------------------------------------------------------------------------------------------- 
2023-10-19 13:00:48,076:INFO:Starting N:\OATFWGUI_1.0.3-release+1291a6_Windows\OATFWGUI_1.0.3-release+1291a6_Windows\.python_local\python.exe with args: ['-m', 'platformio', 'settings', 'set', 'check_platformio_interval', '9999'] and env None 
2023-10-19 13:00:48,708:INFO:The new value for the setting has been set! 
2023-10-19 13:00:48,709:INFO:Name                       Current value [Default]    Description 
-------------------------  -------------------------  ------------------------------------------------- 
check_platformio_interval  9999 [7]                   Check for the new PlatformIO Core interval (days) 
2023-10-19 13:00:48,986:INFO:Starting N:\OATFWGUI_1.0.3-release+1291a6_Windows\OATFWGUI_1.0.3-release+1291a6_Windows\.python_local\python.exe with args: ['-m', 'platformio', 'settings', 'set', 'check_prune_system_threshold', '0'] and env None 
2023-10-19 13:00:49,449:INFO:The new value for the setting has been set! 
2023-10-19 13:00:49,451:INFO:Name                          Current value [Default]    Description 
----------------------------  -------------------------  -------------------------------------------------------- 
check_prune_system_threshold  0 [1024]                   Check for pruning unnecessary data threshold (megabytes) 
2023-10-19 13:00:49,775:INFO:Checking for new OATFWGUI release from https://api.github.com/repos/OpenAstroTech/OATFWGUI/releases 
2023-10-19 13:00:50,787:INFO:Grabbing available FW versions from https://api.github.com/repos/OpenAstroTech/OpenAstroTracker-Firmware/releases 
2023-10-19 13:00:51,238:INFO:Starting N:\OATFWGUI_1.0.3-release+1291a6_Windows\OATFWGUI_1.0.3-release+1291a6_Windows\.python_local\python.exe with args: ['-m', 'platformio', 'device', 'list', '--serial', '--json-output'] and env None 
2023-10-19 13:00:51,790:INFO:[{"port": "COM1", "description": "Communicatiepoort (COM1)", "hwid": "ACPI\\PNP0501\\1"}, {"port": "COM3", "description": "USB-SERIAL CH340 (COM3)", "hwid": "USB VID:PID=1A86:7523 SER= LOCATION=1-5"}] 
2023-10-19 13:00:52,073:INFO:platformio refresh ports finished 
2023-10-19 13:00:52,074:INFO:Normal exit 
2023-10-19 13:01:15,949:INFO:Downloading OAT FW from: https://api.github.com/repos/OpenAstroTech/OpenAstroTracker-Firmware/zipball/V1.13.5.beta 
2023-10-19 13:01:16,541:INFO:Extracting FW from N:\OATFWGUI_1.0.3-release+1291a6_Windows\OATFWGUI_1.0.3-release+1291a6_Windows\OATFW.zip 
2023-10-19 13:01:16,759:INFO:Rename N:\OATFWGUI_1.0.3-release+1291a6_Windows\OATFWGUI_1.0.3-release+1291a6_Windows\OpenAstroTech-OpenAstroTracker-Firmware-fb2e579 to N:\OATFWGUI_1.0.3-release+1291a6_Windows\OATFWGUI_1.0.3-release+1291a6_Windows\OATFW 
2023-10-19 13:01:16,761:INFO:Extracted FW to N:\OATFWGUI_1.0.3-release+1291a6_Windows\OATFWGUI_1.0.3-release+1291a6_Windows\OATFW 
2023-10-19 13:01:16,766:INFO:Found pio environments: ['ramps', 'mksgenlv21', 'mksgenlv2', 'mksgenlv1', 'esp32', 'native'] 
2023-10-19 13:01:40,159:INFO:Selected local config C:/Users/PC i5/Downloads/Configuration_local.hpp 
2023-10-19 13:01:51,501:INFO:Copying config file from C:/Users/PC i5/Downloads/Configuration_local.hpp -> N:\OATFWGUI_1.0.3-release+1291a6_Windows\OATFWGUI_1.0.3-release+1291a6_Windows\OATFW\Configuration_local.hpp 
2023-10-19 13:01:51,506:INFO:Building FW environment=mksgenlv1 dir=N:\OATFWGUI_1.0.3-release+1291a6_Windows\OATFWGUI_1.0.3-release+1291a6_Windows\OATFW 
2023-10-19 13:01:51,508:INFO:Starting N:\OATFWGUI_1.0.3-release+1291a6_Windows\OATFWGUI_1.0.3-release+1291a6_Windows\.python_local\python.exe with args: ['-m', 'platformio', 'run', '--environment', 'mksgenlv1', '--project-dir', 'N:\\OATFWGUI_1.0.3-release+1291a6_Windows\\OATFWGUI_1.0.3-release+1291a6_Windows\\OATFW', '--verbose'] and env None 
2023-10-19 13:01:52,059:INFO:Processing mksgenlv1 (extends: env:ramps; build_flags: -D ETL_NO_STL, -include ./src/macros/gcc/Macros.hpp, -O2, -D BOARD=BOARD_AVR_MKS_GEN_L_V1; platform: atmelavr; board: ATmega2560; upload_protocol: wiring; debug_tool: avr-stub; debug_build_flags: -Og, -g2, -D OAT_DEBUG_BUILD, -D AVR8_BREAKPOINT_MODE=1, -D AVR8_SWINT_SOURCE=7; lib_deps: mikalhart/TinyGPSPlus @ ^1.0.2, teemuatlut/TMCStepper @ ^0.7.1, waspinator/AccelStepper @ ^1.61, arduino-libraries/LiquidCrystal @ ^1.0.7, lincomatic/LiquidTWI2@^1.2.7, olikraus/U8g2@^2.28.8, jdolinay/avr-debugger @ 1.2, https://github.com/andre-stefanov/[email protected]; framework: arduino; monitor_speed: 115200; monitor_port: COM7; upload_speed: 115200; upload_port: COM10; test_ignore: test_native; src_filter: +<*> -<../.git/> -<../test/>, -<*/.pio/> -<*/.platformio/> -<libs/>; src_build_flags: -Werror, -Wall, -Wextra, -Wno-unused-parameter, -Wlogical-op, -Wuseless-cast, -Wshadow, -Wunknown-pragmas; debug_init_break: ; debug_load_mode: always; extra_scripts: pre:pre_script_patch_debug.py, post:post_script_remove_patched_files.py; build_unflags: -Os) 
2023-10-19 13:01:52,061:INFO:-------------------------------------------------------------------------------- 
2023-10-19 13:01:52,116:INFO:Library Manager: Installing mikalhart/TinyGPSPlus @ ^1.0.2 
2023-10-19 13:01:53,868:INFO:Unpacking 
2023-10-19 13:01:53,967:INFO:Library Manager: [email protected] has been installed! 
2023-10-19 13:01:53,972:INFO:Library Manager: Installing teemuatlut/TMCStepper @ ^0.7.1 
2023-10-19 13:01:55,769:INFO:Unpacking 
2023-10-19 13:01:56,069:INFO:Library Manager: [email protected] has been installed! 
2023-10-19 13:01:56,073:INFO:Library Manager: Installing waspinator/AccelStepper @ ^1.61 
2023-10-19 13:01:57,765:INFO:Unpacking 
2023-10-19 13:01:57,900:INFO:Library Manager: [email protected] has been installed! 
2023-10-19 13:01:57,905:INFO:Library Manager: Installing arduino-libraries/LiquidCrystal @ ^1.0.7 
2023-10-19 13:01:59,826:INFO:Unpacking 
2023-10-19 13:01:59,968:INFO:Library Manager: [email protected] has been installed! 
2023-10-19 13:01:59,974:INFO:Library Manager: Installing lincomatic/LiquidTWI2 @ ^1.2.7 
2023-10-19 13:02:01,834:INFO:Unpacking 
2023-10-19 13:02:01,908:INFO:Library Manager: [email protected] has been installed! 
2023-10-19 13:02:01,914:INFO:Library Manager: Installing olikraus/U8g2 @ ^2.28.8 
2023-10-19 13:02:04,119:INFO:Unpacking 
2023-10-19 13:02:05,927:INFO:Library Manager: [email protected] has been installed! 
2023-10-19 13:02:05,935:INFO:Library Manager: Installing jdolinay/avr-debugger @ 1.2 
2023-10-19 13:02:07,545:INFO:Unpacking 
2023-10-19 13:02:07,784:INFO:Library Manager: [email protected] has been installed! 
2023-10-19 13:02:07,792:INFO:Library Manager: Installing git+https://github.com/andre-stefanov/avr-interrupt-stepper @ 0.0.2 
2023-10-19 13:02:08,124:INFO:git version 2.41.0.windows.3 
2023-10-19 13:02:08,270:ERROR:Cloning into 'C:\Users\PCI5~1\AppData\Local\Temp\.pioOATFWGUI1.0.3-release+1291a6\.cache\tmp\pkg-installing-cf8l80bs'... 
2023-10-19 13:02:11,623:INFO:Library Manager: [email protected]+sha.85ba959 has been installed! 
2023-10-19 13:02:11,623:INFO:Library Manager: Resolving dependencies... 
2023-10-19 13:02:11,630:INFO:Library Manager: Installing etlcpp/Embedded Template Library @ 20.32.1 
2023-10-19 13:02:13,336:INFO:Unpacking 
2023-10-19 13:02:15,947:INFO:Library Manager: Embedded Template [email protected] has been installed! 
2023-10-19 13:02:17,115:INFO:pre_script_patch_debug.py: Found WInterrupts.c: C:\Users\PCI5~1\AppData\Local\Temp\.pioOATFWGUI1.0.3-release+1291a6\packages\framework-arduino-avr-megacore\cores\MegaCore\WInterrupts.c 
2023-10-19 13:02:17,121:INFO:CONFIGURATION: https://docs.platformio.org/page/boards/atmelavr/ATmega2560.html 
PLATFORM: Atmel AVR (4.2.0) > ATmega2560 
HARDWARE: ATMEGA2560 16MHz, 8KB RAM, 256KB Flash 
2023-10-19 13:02:17,122:INFO:DEBUG: Current (avr-stub) External (avr-stub, simavr) 
PACKAGES:  
 - framework-arduino-avr-megacore @ 2.2.3  
 - toolchain-atmelavr @ 1.70300.191015 (7.3.0) 
2023-10-19 13:02:17,142:INFO:pre_script_patch_debug.py: Patching C:\Users\PCI5~1\AppData\Local\Temp\.pioOATFWGUI1.0.3-release+1291a6\packages\framework-arduino-avr-megacore\cores\MegaCore\WInterrupts.c 
pre_script_patch_debug.py: Replacement path: C:\Users\PCI5~1\AppData\Local\Temp\tmp9rm3s9zm_patched_WInterrupts.c 
2023-10-19 13:02:17,143:INFO:pre_script_patch_debug.py: Build path: N:\OATFWGUI_1.0.3-release+1291a6_Windows\OATFWGUI_1.0.3-release+1291a6_Windows\OATFW\.pio\build\mksgenlv1\FrameworkArduino\WInterrupts.c 
2023-10-19 13:02:17,158:INFO:LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf 
2023-10-19 13:02:17,158:INFO:LDF Modes: Finder ~ chain, Compatibility ~ soft 
2023-10-19 13:02:17,292:INFO:Found 20 compatible libraries 
2023-10-19 13:02:17,294:INFO:Scanning dependencies... 
2023-10-19 13:02:19,800:INFO:Dependency Graph 
2023-10-19 13:02:19,801:INFO:|-- TinyGPSPlus @ 1.0.3 (License: Unknown, Path: N:\OATFWGUI_1.0.3-release+1291a6_Windows\OATFWGUI_1.0.3-release+1291a6_Windows\OATFW\.pio\libdeps\mksgenlv1\TinyGPSPlus) 
2023-10-19 13:02:19,803:INFO:|-- TMCStepper @ 0.7.3 (License: Unknown, Path: N:\OATFWGUI_1.0.3-release+1291a6_Windows\OATFWGUI_1.0.3-release+1291a6_Windows\OATFW\.pio\libdeps\mksgenlv1\TMCStepper) 
2023-10-19 13:02:19,807:INFO:|   |-- SoftwareSerial @ 1.1 (License: Unknown, Path: C:\Users\PCI5~1\AppData\Local\Temp\.pioOATFWGUI1.0.3-release+1291a6\packages\framework-arduino-avr-megacore\libraries\SoftwareSerial) 
|   |-- SPI @ 1.0 (License: Unknown, Path: C:\Users\PCI5~1\AppData\Local\Temp\.pioOATFWGUI1.0.3-release+1291a6\packages\framework-arduino-avr-megacore\libraries\SPI) 
2023-10-19 13:02:19,808:INFO:|-- AccelStepper @ 1.64.0 (License: Unknown, Path: N:\OATFWGUI_1.0.3-release+1291a6_Windows\OATFWGUI_1.0.3-release+1291a6_Windows\OATFW\.pio\libdeps\mksgenlv1\AccelStepper) 
2023-10-19 13:02:19,810:INFO:|-- LiquidCrystal @ 1.0.7 (License: Unknown, Path: N:\OATFWGUI_1.0.3-release+1291a6_Windows\OATFWGUI_1.0.3-release+1291a6_Windows\OATFW\.pio\libdeps\mksgenlv1\LiquidCrystal) 
2023-10-19 13:02:19,812:INFO:|-- LiquidTWI2 @ 1.2.7 (License: Unknown, Path: N:\OATFWGUI_1.0.3-release+1291a6_Windows\OATFWGUI_1.0.3-release+1291a6_Windows\OATFW\.pio\libdeps\mksgenlv1\LiquidTWI2) 
2023-10-19 13:02:19,814:INFO:|   |-- Wire @ 1.1 (License: Unknown, Path: C:\Users\PCI5~1\AppData\Local\Temp\.pioOATFWGUI1.0.3-release+1291a6\packages\framework-arduino-avr-megacore\libraries\Wire) 
2023-10-19 13:02:19,815:INFO:|-- U8g2 @ 2.35.7 (License: BSD-2-Clause, Path: N:\OATFWGUI_1.0.3-release+1291a6_Windows\OATFWGUI_1.0.3-release+1291a6_Windows\OATFW\.pio\libdeps\mksgenlv1\U8g2) 
2023-10-19 13:02:19,816:INFO:|   |-- SPI @ 1.0 (License: Unknown, Path: C:\Users\PCI5~1\AppData\Local\Temp\.pioOATFWGUI1.0.3-release+1291a6\packages\framework-arduino-avr-megacore\libraries\SPI) 
2023-10-19 13:02:19,817:INFO:|   |-- Wire @ 1.1 (License: Unknown, Path: C:\Users\PCI5~1\AppData\Local\Temp\.pioOATFWGUI1.0.3-release+1291a6\packages\framework-arduino-avr-megacore\libraries\Wire) 
2023-10-19 13:02:19,819:INFO:|-- avr-debugger @ 1.2.0 (License: Unknown, Path: N:\OATFWGUI_1.0.3-release+1291a6_Windows\OATFWGUI_1.0.3-release+1291a6_Windows\OATFW\.pio\libdeps\mksgenlv1\avr-debugger) 
2023-10-19 13:02:19,822:INFO:|-- InterruptStepper @ 0.0.2+sha.85ba959 (License: Unknown, URI: git+https://github.com/andre-stefanov/avr-interrupt-stepper, Path: N:\OATFWGUI_1.0.3-release+1291a6_Windows\OATFWGUI_1.0.3-release+1291a6_Windows\OATFW\.pio\libdeps\mksgenlv1\InterruptStepper) 
2023-10-19 13:02:19,825:INFO:|   |-- Embedded Template Library @ 20.32.1 (License: MIT, Path: N:\OATFWGUI_1.0.3-release+1291a6_Windows\OATFWGUI_1.0.3-release+1291a6_Windows\OATFW\.pio\libdeps\mksgenlv1\Embedded Template Library) 
|-- EEPROM @ 2.0 (License: Unknown, Path: C:\Users\PCI5~1\AppData\Local\Temp\.pioOATFWGUI1.0.3-release+1291a6\packages\framework-arduino-avr-megacore\libraries\EEPROM) 
2023-10-19 13:02:19,830:INFO:|-- MappedDict (License: Unknown, Path: N:\OATFWGUI_1.0.3-release+1291a6_Windows\OATFWGUI_1.0.3-release+1291a6_Windows\OATFW\src\libs\MappedDict) 
|-- Wire @ 1.1 (License: Unknown, Path: C:\Users\PCI5~1\AppData\Local\Temp\.pioOATFWGUI1.0.3-release+1291a6\packages\framework-arduino-avr-megacore\libraries\Wire) 
|-- TimerInterrupt (License: Unknown, Path: N:\OATFWGUI_1.0.3-release+1291a6_Windows\OATFWGUI_1.0.3-release+1291a6_Windows\OATFW\src\libs\TimerInterrupt) 
|-- SoftwareSerial @ 1.1 (License: Unknown, Path: C:\Users\PCI5~1\AppData\Local\Temp\.pioOATFWGUI1.0.3-release+1291a6\packages\framework-arduino-avr-megacore\libraries\SoftwareSerial) 
|-- SPI @ 1.0 (License: Unknown, Path: C:\Users\PCI5~1\AppData\Local\Temp\.pioOATFWGUI1.0.3-release+1291a6\packages\framework-arduino-avr-megacore\libraries\SPI) 
|-- Embedded Template Library @ 20.32.1 (License: MIT, Path: N:\OATFWGUI_1.0.3-release+1291a6_Windows\OATFWGUI_1.0.3-release+1291a6_Windows\OATFW\.pio\libdeps\mksgenlv1\Embedded Template Library) 
2023-10-19 13:02:19,961:INFO:Building in release mode 
2023-10-19 13:02:20,140:INFO:avr-g++ -o .pio\build\mksgenlv1\src\Core.cpp.o -c -fno-exceptions -fno-threadsafe-statics -fpermissive -std=gnu++17 -include src\macros\gcc\Macros.hpp -O2 -mmcu=atmega2560 -Wall -ffunction-sections -fdata-sections -flto -Werror -Wall -Wextra -Wno-unused-parameter -Wlogical-op -Wuseless-cast -Wshadow -Wunknown-pragmas -DPLATFORMIO=60104 -DARDUINO_AVR_ATmega2560 -DETL_NO_STL -DBOARD=BOARD_AVR_MKS_GEN_L_V1 -DF_CPU=16000000L -DARDUINO_ARCH_AVR -DARDUINO=10808 -I. -Isrc -Isrc\libs\TimerInterrupt -Isrc\libs\MappedDict -IC:\Users\PCI5~1\AppData\Local\Temp\.pioOATFWGUI1.0.3-release+1291a6\packages\framework-arduino-avr-megacore\libraries\EEPROM\src -I.pio\libdeps\mksgenlv1\InterruptStepper\include -I.pio\libdeps\mksgenlv1\InterruptStepper\src "-I.pio\libdeps\mksgenlv1\Embedded Template Library\include" "-I.pio\libdeps\mksgenlv1\Embedded Template Library" -I.pio\libdeps\mksgenlv1\avr-debugger\avr8-stub -I.pio\libdeps\mksgenlv1\U8g2\src -I.pio\libdeps\mksgenlv1\LiquidTWI2 -IC:\Users\PCI5~1\AppData\Local\Temp\.pioOATFWGUI1.0.3-release+1291a6\packages\framework-arduino-avr-megacore\libraries\Wire\src -I.pio\libdeps\mksgenlv1\LiquidCrystal\src -I.pio\libdeps\mksgenlv1\AccelStepper\src -I.pio\libdeps\mksgenlv1\TMCStepper\src -IC:\Users\PCI5~1\AppData\Local\Temp\.pioOATFWGUI1.0.3-release+1291a6\packages\framework-arduino-avr-megacore\libraries\SPI\src -IC:\Users\PCI5~1\AppData\Local\Temp\.pioOATFWGUI1.0.3-release+1291a6\packages\framework-arduino-avr-megacore\libraries\SoftwareSerial\src -I.pio\libdeps\mksgenlv1\TinyGPSPlus\src -IC:\Users\PCI5~1\AppData\Local\Temp\.pioOATFWGUI1.0.3-release+1291a6\packages\framework-arduino-avr-megacore\cores\MegaCore -IC:\Users\PCI5~1\AppData\Local\Temp\.pioOATFWGUI1.0.3-release+1291a6\packages\framework-arduino-avr-megacore\variants\100-pin-arduino-mega src\Core.cpp 
2023-10-19 13:02:20,151:INFO:avr-g++ -o .pio\build\mksgenlv1\src\DayTime.cpp.o -c -fno-exceptions -fno-threadsafe-statics -fpermissive -std=gnu++17 -include src\macros\gcc\Macros.hpp -O2 -mmcu=atmega2560 -Wall -ffunction-sections -fdata-sections -flto -Werror -Wall -Wextra -Wno-unused-parameter -Wlogical-op -Wuseless-cast -Wshadow -Wunknown-pragmas -DPLATFORMIO=60104 -DARDUINO_AVR_ATmega2560 -DETL_NO_STL -DBOARD=BOARD_AVR_MKS_GEN_L_V1 -DF_CPU=16000000L -DARDUINO_ARCH_AVR -DARDUINO=10808 -I. -Isrc -Isrc\libs\TimerInterrupt -Isrc\libs\MappedDict -IC:\Users\PCI5~1\AppData\Local\Temp\.pioOATFWGUI1.0.3-release+1291a6\packages\framework-arduino-avr-megacore\libraries\EEPROM\src -I.pio\libdeps\mksgenlv1\InterruptStepper\include -I.pio\libdeps\mksgenlv1\InterruptStepper\src "-I.pio\libdeps\mksgenlv1\Embedded Template Library\include" "-I.pio\libdeps\mksgenlv1\Embedded Template Library" -I.pio\libdeps\mksgenlv1\avr-debugger\avr8-stub -I.pio\libdeps\mksgenlv1\U8g2\src -I.pio\libdeps\mksgenlv1\LiquidTWI2 -IC:\Users\PCI5~1\AppData\Local\Temp\.pioOATFWGUI1.0.3-release+1291a6\packages\framework-arduino-avr-megacore\libraries\Wire\src -I.pio\libdeps\mksgenlv1\LiquidCrystal\src -I.pio\libdeps\mksgenlv1\AccelStepper\src -I.pio\libdeps\mksgenlv1\TMCStepper\src -IC:\Users\PCI5~1\AppData\Local\Temp\.pioOATFWGUI1.0.3-release+1291a6\packages\framework-arduino-avr-megacore\libraries\SPI\src -IC:\Users\PCI5~1\AppData\Local\Temp\.pioOATFWGUI1.0.3-release+1291a6\packages\framework-arduino-avr-megacore\libraries\SoftwareSerial\src -I.pio\libdeps\mksgenlv1\TinyGPSPlus\src -IC:\Users\PCI5~1\AppData\Local\Temp\.pioOATFWGUI1.0.3-release+1291a6\packages\framework-arduino-avr-megacore\cores\MegaCore -IC:\Users\PCI5~1\AppData\Local\Temp\.pioOATFWGUI1.0.3-release+1291a6\packages\framework-arduino-avr-megacore\variants\100-pin-arduino-mega src\DayTime.cpp 
2023-10-19 13:02:20,173:INFO:avr-g++ -o .pio\build\mksgenlv1\src\Declination.cpp.o -c -fno-exceptions -fno-threadsafe-statics -fpermissive -std=gnu++17 -include src\macros\gcc\Macros.hpp -O2 -mmcu=atmega2560 -Wall -ffunction-sections -fdata-sections -flto -Werror -Wall -Wextra -Wno-unused-parameter -Wlogical-op -Wuseless-cast -Wshadow -Wunknown-pragmas -DPLATFORMIO=60104 -DARDUINO_AVR_ATmega2560 -DETL_NO_STL -DBOARD=BOARD_AVR_MKS_GEN_L_V1 -DF_CPU=16000000L -DARDUINO_ARCH_AVR -DARDUINO=10808 -I. -Isrc -Isrc\libs\TimerInterrupt -Isrc\libs\MappedDict -IC:\Users\PCI5~1\AppData\Local\Temp\.pioOATFWGUI1.0.3-release+1291a6\packages\framework-arduino-avr-megacore\libraries\EEPROM\src -I.pio\libdeps\mksgenlv1\InterruptStepper\include -I.pio\libdeps\mksgenlv1\InterruptStepper\src "-I.pio\libdeps\mksgenlv1\Embedded Template Library\include" "-I.pio\libdeps\mksgenlv1\Embedded Template Library" -I.pio\libdeps\mksgenlv1\avr-debugger\avr8-stub -I.pio\libdeps\mksgenlv1\U8g2\src -I.pio\libdeps\mksgenlv1\LiquidTWI2 -IC:\Users\PCI5~1\AppData\Local\Temp\.pioOATFWGUI1.0.3-release+1291a6\packages\framework-arduino-avr-megacore\libraries\Wire\src -I.pio\libdeps\mksgenlv1\LiquidCrystal\src -I.pio\libdeps\mksgenlv1\AccelStepper\src -I.pio\libdeps\mksgenlv1\TMCStepper\src -IC:\Users\PCI5~1\AppData\Local\Temp\.pioOATFWGUI1.0.3-release+1291a6\packages\framework-arduino-avr-megacore\libraries\SPI\src -IC:\Users\PCI5~1\AppData\Local\Temp\.pioOATFWGUI1.0.3-release+1291a6\packages\framework-arduino-avr-megacore\libraries\SoftwareSerial\src -I.pio\libdeps\mksgenlv1\TinyGPSPlus\src -IC:\Users\PCI5~1\AppData\Local\Temp\.pioOATFWGUI1.0.3-release+1291a6\packages\framework-arduino-avr-megacore\cores\MegaCore -IC:\Users\PCI5~1\AppData\Local\Temp\.pioOATFWGUI1.0.3-release+1291a6\packages\framework-arduino-avr-megacore\variants\100-pin-arduino-mega src\Declination.cpp 
2023-10-19 13:02:20,182:INFO:avr-g++ -o .pio\build\mksgenlv1\src\EPROMStore.cpp.o -c -fno-exceptions -fno-threadsafe-statics -fpermissive -std=gnu++17 -include src\macros\gcc\Macros.hpp -O2 -mmcu=atmega2560 -Wall -ffunction-sections -fdata-sections -flto -Werror -Wall -Wextra -Wno-unused-parameter -Wlogical-op -Wuseless-cast -Wshadow -Wunknown-pragmas -DPLATFORMIO=60104 -DARDUINO_AVR_ATmega2560 -DETL_NO_STL -DBOARD=BOARD_AVR_MKS_GEN_L_V1 -DF_CPU=16000000L -DARDUINO_ARCH_AVR -DARDUINO=10808 -I. -Isrc -Isrc\libs\TimerInterrupt -Isrc\libs\MappedDict -IC:\Users\PCI5~1\AppData\Local\Temp\.pioOATFWGUI1.0.3-release+1291a6\packages\framework-arduino-avr-megacore\libraries\EEPROM\src -I.pio\libdeps\mksgenlv1\InterruptStepper\include -I.pio\libdeps\mksgenlv1\InterruptStepper\src "-I.pio\libdeps\mksgenlv1\Embedded Template Library\include" "-I.pio\libdeps\mksgenlv1\Embedded Template Library" -I.pio\libdeps\mksgenlv1\avr-debugger\avr8-stub -I.pio\libdeps\mksgenlv1\U8g2\src -I.pio\libdeps\mksgenlv1\LiquidTWI2 -IC:\Users\PCI5~1\AppData\Local\Temp\.pioOATFWGUI1.0.3-release+1291a6\packages\framework-arduino-avr-megacore\libraries\Wire\src -I.pio\libdeps\mksgenlv1\LiquidCrystal\src -I.pio\libdeps\mksgenlv1\AccelStepper\src -I.pio\libdeps\mksgenlv1\TMCStepper\src -IC:\Users\PCI5~1\AppData\Local\Temp\.pioOATFWGUI1.0.3-release+1291a6\packages\framework-arduino-avr-megacore\libraries\SPI\src -IC:\Users\PCI5~1\AppData\Local\Temp\.pioOATFWGUI1.0.3-release+1291a6\packages\framework-arduino-avr-megacore\libraries\SoftwareSerial\src -I.pio\libdeps\mksgenlv1\TinyGPSPlus\src -IC:\Users\PCI5~1\AppData\Local\Temp\.pioOATFWGUI1.0.3-release+1291a6\packages\framework-arduino-avr-megacore\cores\MegaCore -IC:\Users\PCI5~1\AppData\Local\Temp\.pioOATFWGUI1.0.3-release+1291a6\packages\framework-arduino-avr-megacore\variants\100-pin-arduino-mega src\EPROMStore.cpp 
2023-10-19 13:02:20,487:ERROR:In file included from src\../LocalConfiguration.hpp:20:0, 
2023-10-19 13:02:20,492:ERROR:                 from src\../Configuration.hpp:34, 
                 from src\Core.cpp:2: 
src\../Configuration_local.hpp:12:6: error: #error Selected PIO environment does not match this configuration 
     #error Selected PIO environment does not match this configuration 
      ^~~~~ 
In file included from src\../LocalConfiguration.hpp:20:0, 
                 from src\../Configuration.hpp:34, 
                 from src\DayTime.cpp:2: 
src\../Configuration_local.hpp:12:6: error: #error Selected PIO environment does not match this configuration 
     #error Selected PIO environment does not match this configuration 
      ^~~~~ 
In file included from src\../LocalConfiguration.hpp:20:0, 
                 from src\../Configuration.hpp:34, 
                 from src\Declination.cpp:2: 
src\../Configuration_local.hpp:12:6: error: #error Selected PIO environment does not match this configuration 
     #error Selected PIO environment does not match this configuration 
      ^~~~~ 
2023-10-19 13:02:20,509:ERROR:In file included from src\../LocalConfiguration.hpp:20:0, 
                 from src\../Configuration.hpp:34, 
                 from src\EPROMStore.cpp:6: 
src\../Configuration_local.hpp:12:6: error: #error Selected PIO environment does not match this configuration 
     #error Selected PIO environment does not match this configuration 
      ^~~~~ 
2023-10-19 13:02:20,518:ERROR:*** [.pio\build\mksgenlv1\src\Declination.cpp.o] Error 1 
2023-10-19 13:02:20,522:ERROR:*** [.pio\build\mksgenlv1\src\DayTime.cpp.o] Error 1 
2023-10-19 13:02:20,544:ERROR:*** [.pio\build\mksgenlv1\src\EPROMStore.cpp.o] Error 1 
2023-10-19 13:02:20,592:ERROR:*** [.pio\build\mksgenlv1\src\Core.cpp.o] Error 1 
2023-10-19 13:02:20,740:ERROR:========================= [FAILED] Took 28.68 seconds ========================= 
2023-10-19 13:02:20,742:INFO: 
2023-10-19 13:02:20,742:ERROR:Environment    Status    Duration 
-------------  --------  ------------ 
ramps          IGNORED 
mksgenlv21     IGNORED 
mksgenlv2      IGNORED 
mksgenlv1      FAILED    00:00:28.680 
esp32          IGNORED 
native         IGNORED 
==================== 1 failed, 0 succeeded in 00:00:28.680 ==================== 
2023-10-19 13:02:20,792:INFO:platformio build finished 
2023-10-19 13:02:20,793:ERROR:Did not exit normally 

Python exception downloading firmware on Windows

Seems to happen sometimes when the 'Download' button is hit too fast on startup? The extracted zip goes into OATFW rather than replacing it.

2023-07-23 16:16:20,784:DEBUG:C:\Users\USER\Downloads\OATFWGUI_1.0.1-dev+3e9642_Windows\.python_local\python.exe:State changed: Not running
2023-07-23 16:16:20,784:INFO:platformio refresh ports finished
2023-07-23 16:16:20,785:INFO:Normal exit
2023-07-23 16:16:20,786:DEBUG:LogicState updated: serial_ports [] -> ['COM7']
2023-07-23 16:16:20,786:DEBUG:Cleaning up external process: C:\Users\USER\Downloads\OATFWGUI_1.0.1-dev+3e9642_Windows\.python_local\python.exe. Exited with 0
2023-07-23 16:16:20,788:DEBUG:LogicState updated: upload_port None -> COM7
2023-07-23 16:16:21,059:DEBUG:Creating worker <bound method BusinessLogic.download_and_extract_fw of <gui_logic.BusinessLogic object at 0x0000027D8B7FFC40>>
2023-07-23 16:16:21,061:DEBUG:LogicState updated: release_idx None -> 0
2023-07-23 16:16:21,063:INFO:Downloading OAT FW from: https://github.com/OpenAstroTech/OpenAstroTracker-Firmware/archive/refs/heads/develop.zip
2023-07-23 16:16:21,066:DEBUG:Starting new HTTPS connection (1): github.com:443
2023-07-23 16:16:21,283:DEBUG:https://github.com:443 "GET /OpenAstroTech/OpenAstroTracker-Firmware/archive/refs/heads/develop.zip HTTP/1.1" 302 0
2023-07-23 16:16:21,286:DEBUG:Starting new HTTPS connection (1): codeload.github.com:443
2023-07-23 16:16:21,486:DEBUG:https://codeload.github.com:443 "GET /OpenAstroTech/OpenAstroTracker-Firmware/zip/refs/heads/develop HTTP/1.1" 200 None
2023-07-23 16:16:21,623:INFO:Extracting FW from C:\Users\USER\Downloads\OATFWGUI_1.0.1-dev+3e9642_Windows\OATFW.zip
2023-07-23 16:16:21,721:INFO:Rename C:\Users\USER\Downloads\OATFWGUI_1.0.1-dev+3e9642_Windows\OpenAstroTracker-Firmware-develop to C:\Users\USER\Downloads\OATFWGUI_1.0.1-dev+3e9642_Windows\OATFW
2023-07-23 16:16:21,722:INFO:Removing previously downloaded FW from C:\Users\USER\Downloads\OATFWGUI_1.0.1-dev+3e9642_Windows\OATFW
2023-07-23 16:16:22,048:INFO:Extracted FW to C:\Users\USER\Downloads\OATFWGUI_1.0.1-dev+3e9642_Windows\OATFW
2023-07-23 16:16:22,049:DEBUG:LogicState updated: fw_dir None -> C:\Users\USER\Downloads\OATFWGUI_1.0.1-dev+3e9642_Windows\OATFW
Traceback (most recent call last):
  File "C:\Users\USER\Downloads\OATFWGUI_1.0.1-dev+3e9642_Windows\OATFWGUI\qt_extensions.py", line 39, in run
    result = self.fn(*self.args, **self.kwargs)
  File "C:\Users\USER\Downloads\OATFWGUI_1.0.1-dev+3e9642_Windows\OATFWGUI\gui_logic.py", line 187, in download_and_extract_fw
    self.logic_state.pio_envs = get_pio_environments(self.logic_state.fw_dir)
  File "C:\Users\USER\Downloads\OATFWGUI_1.0.1-dev+3e9642_Windows\OATFWGUI\gui_logic.py", line 27, in get_pio_environments
    with open(ini_path.resolve(), 'r') as fp:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\USER\\Downloads\\OATFWGUI_1.0.1-dev+3e9642_Windows\\OATFW\\platformio.ini'

Also the traceback isn't logged, which is annoying.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.