Micropython Main file corrupt
Posted: Wed Mar 18, 2020 12:57 pm
Dear Forum members,
We are working on the STM32F407 DISCO board.
https://www.st.com/en/evaluation-tools/ ... overy.html
We followed the instructions here: https://medium.com/@circuit4us/setup-mi ... 5e0f9d875e
to load our board with the micropython v1.12 and were able to get our REPL prompt as well. Everytime we update the main.py file we first press the Blue button and then the black button. So the board get reset and we see the pyboard USB flash drive come back up.
We are working on communicating with another board over UART using UART 2.
We face the following challenges:
1) At times we get this error called: 'Runtime Error: name too long' and then we get the micropython REPL prompt while we log in to the device using putty. So we went ahead and checked the main.py file and found that it was filled with some garbage characters. This has happened to us multiple times. We have been able to recreate this. Such a file is also attached here.
2) At times we get this error called: 'Runtime Error: name too long' and we notice that the main.py file is totally empty. See attachment.
Has anyone else faced the same issue? Can someone help resolve the issue?
Attaching screenshots with this post for the runtime error as well as the data corruption.
Thanks in advance.
We are working on the STM32F407 DISCO board.
https://www.st.com/en/evaluation-tools/ ... overy.html
We followed the instructions here: https://medium.com/@circuit4us/setup-mi ... 5e0f9d875e
to load our board with the micropython v1.12 and were able to get our REPL prompt as well. Everytime we update the main.py file we first press the Blue button and then the black button. So the board get reset and we see the pyboard USB flash drive come back up.
We are working on communicating with another board over UART using UART 2.
We face the following challenges:
1) At times we get this error called: 'Runtime Error: name too long' and then we get the micropython REPL prompt while we log in to the device using putty. So we went ahead and checked the main.py file and found that it was filled with some garbage characters. This has happened to us multiple times. We have been able to recreate this. Such a file is also attached here.
2) At times we get this error called: 'Runtime Error: name too long' and we notice that the main.py file is totally empty. See attachment.
Has anyone else faced the same issue? Can someone help resolve the issue?
Attaching screenshots with this post for the runtime error as well as the data corruption.
Thanks in advance.