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

Getting a timeout error when uploading boot.py #37

Open
nio101 opened this issue Apr 8, 2023 · 8 comments
Open

Getting a timeout error when uploading boot.py #37

nio101 opened this issue Apr 8, 2023 · 8 comments

Comments

@nio101
Copy link

nio101 commented Apr 8, 2023

Thanks for the app, it's great, but I'm getting this error and I can't upload or save boot.py on my device :
image

Uploading other files works.

@jczic
Copy link
Owner

jczic commented Apr 8, 2023

Hello @nio101 and thank you for using this software :)
It's strange that only this file doesn't want to upload.
I see that you are on a LOLIN S2 MINI board and that it has a MicroPython firmware by default.
Can you make a screenshot of the "System" page in the tool, so I can see the versions please?
Maybe the boot.py file is protected...
Also, what happens if you open it with the IDE and save it with Ctrl+S instead of using the "Upload" button?

@nio101
Copy link
Author

nio101 commented Apr 8, 2023

Here is the system info :
image
When trying to save directly, I get the 'an error occured' message...
I can upload a boot.py using other tools (thonny for example).
I'm on windows 10, I will switch to ubuntu to see if it changes anything.

@jczic
Copy link
Owner

jczic commented Apr 8, 2023

Thank you for feedback, indeed the versions seem good, why only boot.py and not the others...
Maybe a problem of opening the local file and not the one on the device.

Can you try the 2 commands below in the terminal to see what it returns on your side?

import os; os.stat('/boot.py')

and

with open('/boot.py', 'rb') as f : print(f.readlines())

@nio101
Copy link
Author

nio101 commented Apr 8, 2023

The result is : '(32768, 0, 0, 0, 0, 0, 3359, 734295654, 734295654, 734295654)' for the first command.
The second command print successfully each line of boot.py.
I have the same issue with the ubuntu version.

@jczic
Copy link
Owner

jczic commented Apr 8, 2023

Ok thanks, I don't see any particular problem, especially if it does exactly the same thing under Ubuntu :'(
I confess I don't understand why only this file is a problem...

Can you help me with 3 other questions please:

  1. How big is the boot.py you are trying to send?
  2. If you rename your local boot.py to another name (toto.py for example) and send it, is there still an error?
  3. If you send another test file named boot.py instead, does it work?

Not easy to diagnose, I'm curious to understand!

@jczic
Copy link
Owner

jczic commented Apr 11, 2023

Did you find anything?

@nio101
Copy link
Author

nio101 commented Apr 12, 2023

Yes, it seems to be size-related.
Original file was 3.2kB.
I managed to upload a tiny boot.py file, and I had the same error trying to send another big file (not using the boot.py filename).

@jczic
Copy link
Owner

jczic commented Apr 12, 2023

@nio101, you may not have enough space in the flash memory to write a large file.
Have you had time to see the progress bar?
No one seems to have this problem and multi-meg files can get through (on SD card as well) depending on the space available.

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

2 participants