Page 1 of 1

Uploading boot.py and main.py

Unread postPosted:Sun Apr 07, 2019 2:07 pm
by russelsher
Hi, just a small question about uploading boot.py and main.py after both have been edited:
Is the procedure to do an upload of one of then and then press STOP after that then select the other and upload that one? It seems to work, but I'm trying to make sure that is right when doing operations on the two files in a project.
How does the ide know where to separately place each file in the mcu? Is it is file name that tells it? ( boot and main)
Is there a shorter way to upload both files?
Thanks
Russell

Re: Uploading boot.py and main.py

Unread postPosted:Mon Apr 08, 2019 5:48 am
by nana.wang
Hi, thank you for your support. The command execfile("boot.py") may help you upload and call many files.
You can import files at the same time, but each will only be import for once.
E.g. If we upload two files a and b at the same time. And from a import b, b will only be imported for once. If you upload b again, it will not be uploaded until reset.

Re: Uploading boot.py and main.py

Unread postPosted:Mon Apr 08, 2019 9:10 pm
by russelsher
Hi. Thanks the information
Regards
Russell