Maximum size for script file #62
Replies: 4 comments 11 replies
-
Hi @Antonia-place , The external flash in PSoC has 512MB and the scripts you try to execute ideally is consuming this part. The above error message indicates you don't have enough space in your external flash. Two things to check here would be:
If you can provide us your script, we will try to reproduce the same at our end and support better. Let us know! Thanks and Regards, |
Beta Was this translation helpful? Give feedback.
-
Hi, I created the same file on RPI PIco, and I saved with success into 4MB flash; then I try to save (not run!) the same file into PSoC6 (with MicroPython v0.4.0) without success. My question is: it is an issue regarding to files with more than, let say, 500 lines on MicroPython v0.4.0 for PSoC6? Why is this difference bettween os.stat("") and os.stat("Program.pt") ( see above pictures)? Thank you, |
Beta Was this translation helpful? Give feedback.
-
Hi, The code file used for this test: Could you, please, try to reproduce this issue? Thank you, |
Beta Was this translation helpful? Give feedback.
-
Solved in #68 |
Beta Was this translation helpful? Give feedback.
-
Hello,
What is the maximum size of code (script) file supported by MicroPython for PSoC6 in this moment? Because I have a file with aprox 1000 lines of code and the when I try to save this file into PSoC, only first aprox 350 line was saved and then I see this error in Thonny:
"Could not write next block after having written 16384 bytes to /Program.py
Make sure your device's filesystem has enough free space. (When overwriting a file, the old content may occupy space until the end of the operation.)
PROBLEM IN THONNY'S BACK-END: Exception while handling 'write_file' (OSError: [WinError Traceback (most recent call last):
File "", line 1, in
File "", line 5, in __W
OSError: 28"
I know that MicroPython is in early stage of porting, but still...
Thank you,
Mihai
Beta Was this translation helpful? Give feedback.
All reactions