Search found 86 matches

by smhodge
Fri May 29, 2020 3:09 pm
Forum: MicroPython pyboard
Topic: /sd gone
Replies: 5
Views: 3058

/sd gone

I now have 2 pyboard v1.1's that /sd has vanished from: rshell gives a "cannot access /sd" message and sure enough code that used to boot just fine from the /sd card no longer does (the code is still there if I look at it with a PC). I can copy copy to /flash with rshell and it will boot and run jus...
by smhodge
Fri May 22, 2020 4:52 pm
Forum: MicroPython pyboard
Topic: bytecode not possible for boot.py & main.py?
Replies: 4
Views: 3415

Re: bytecode not possible for boot.py & main.py?

I have a python (not microPython) pre-processor script that ends up compiling all files in a project to bytecode (and then uses rshell to sync all of them to the board, reset the board, and open a PuTTY connection to stdout). To deal with the aforementioned complication yesterday I added a workaroun...
by smhodge
Fri May 22, 2020 3:27 pm
Forum: MicroPython pyboard
Topic: bytecode not possible for boot.py & main.py?
Replies: 4
Views: 3415

Re: bytecode not possible for boot.py & main.py?

Thanks. So much for boot.py. But tests I did also seem to indicate that even if boot.py exists, changing the line in it that starts main.py won't work either if changed to

pyb.main('main.mpy') # main script to run after this one

won't work either.
by smhodge
Thu May 21, 2020 11:59 pm
Forum: MicroPython pyboard
Topic: bytecode not possible for boot.py & main.py?
Replies: 4
Views: 3415

bytecode not possible for boot.py & main.py?

It seems like boot.py and main.py cannot be bytecode (mpy files). Is that correct?

Pyboard 1.1, firmware 1.12
by smhodge
Sun May 17, 2020 6:10 pm
Forum: General Discussion and Questions
Topic: does mpy take precedence over py?
Replies: 1
Views: 1334

does mpy take precedence over py?

If you have both a x.py and x.mpy file on /flash or /sd, does the x.mpy file take precedence and get loaded, and the x.py file ignored?
by smhodge
Sat May 02, 2020 4:56 pm
Forum: MicroPython pyboard
Topic: rsync timeout
Replies: 18
Views: 9629

Re: rsync timeout

Saga conclusion. As my code has continued to grow in size I have had to deal with this issue more and more. It has finally reached the point where it *always* happens and I simply cannot use rshell/rsync to update files on /flash. It always fails with the message <timed out or error in transfer to r...
by smhodge
Fri Apr 17, 2020 4:54 pm
Forum: MicroPython pyboard
Topic: rsync timeout
Replies: 18
Views: 9629

Re: rsync timeout

So is there any way to test the hardware to verify that?
by smhodge
Fri Apr 17, 2020 4:41 pm
Forum: MicroPython pyboard
Topic: rsync timeout
Replies: 18
Views: 9629

Re: rsync timeout

I've tried the mass erase & firmware reload many times. So many times, in fact, that I made a batch file to do it.
by smhodge
Fri Apr 17, 2020 3:21 pm
Forum: MicroPython pyboard
Topic: rsync timeout
Replies: 18
Views: 9629

Re: rsync timeout

Well that was short-lived. I have 3 pyboards I am programming and it turns out I mistook the one that was having the problems with a good one, so that's the reason for the last "all is fixed" post. With the bad board the issue is still there, both with the updated rshell and/or switching to LittleFS...
by smhodge
Thu Apr 16, 2020 4:39 pm
Forum: MicroPython pyboard
Topic: rsync timeout
Replies: 18
Views: 9629

Re: rsync timeout

Well, so far, knock on wood, the update to rshell appears to be working. I'll update this update if it starts failing again. If it does I'll try littleFs. Thanks for all your help (and the update to rshell!).