Skip to content
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

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

Closed
CHRISCHIERE opened this issue Jan 22, 2024 · 4 comments
Closed

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

CHRISCHIERE opened this issue Jan 22, 2024 · 4 comments

Comments

@CHRISCHIERE
Copy link

CHRISCHIERE commented Jan 22, 2024

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
@ClutchplateDude
Copy link
Member

Please use our Discord server for troubleshooting support. Issues on Github are for confirmed problems with the software.

@MateKristof
Copy link

I had the same problem, but it worked with xLoader:

https://github.com/binaryupdates/xLoader

  1. Build firmware with OAT firmware GUI

  2. find the .hex file in this folder: \OATFWGUI_1.0.5\OATFW\.pio\build\mksgenlv21

  3. burn it with xloader (the device should be atmega2560 and the baud rate is 115200)

@CHRISCHIERE
Copy link
Author

CHRISCHIERE commented Feb 12, 2024 via email

@julianneswinoga
Copy link
Member

This should be fixed with #43

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants