AnsweredAssumed Answered

SPWF04S WiFi on x-Nucleo-IDW04A1

Question asked by Suresh Vakati on Aug 31, 2017

MicroPython Scripting Language over SPWF04S document says, module has some built-in python example codes. 

When I am trying to execute those programs, I am getting errors in those programs.

EX:

at+s.python=RL_UDP_CL.py
AT-S.Launching script:3:RL_UDP_CL.py
AT-S.OK
START
run
Traceback (most recent call last):
File "3:RL_UDP_CL.py", line 82, in <module>
File "3:RL_UDP_CL.py", line 46, in run
OSError: 60

Its hard to read the script using AT commands, is there any other way to read files from USER FLASH memory? Any USB+MSC option?

I have activated the REPL using AT+s.python command, how can I import python script which is located in SD card. 

 

MicroPython v1.6.2-84-g7f202fb on 2016-07-13; SPWF04Sx with STM32F439
>>> import WLAN_Test.py
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: no module named 'WLAN_Test'
>>>

 

Document says, Run offline PC tool to create .img file from .py file and use AT+s.FSUPDATE command to update filesystem, can someone suggest which tool are you using? 

 

Current Micropython Version is 1.9.X, with so many improvements from 1.6, is there anyway that I can update Micropython? 

Outcomes