Skip to main content
Lorenzo Pecci
Associate II
June 28, 2017
Question

Python on SPWF04S

  • June 28, 2017
  • 1 reply
  • 817 views
Posted on June 28, 2017 at 17:12

Hi, I have a problem with SPWF04S.

When send command 'AT+S.PYTHON' the answer is 'AT-S.ERROR:16:Cannot switch to Python shell'

I tried to look something in datasheet, but nothing. I dont know how go over. Any idea?

#python #spwf04sa
    This topic has been closed for replies.

    1 reply

    Elio Cometti
    Visitor II
    June 29, 2017
    Posted on June 29, 2017 at 09:06

    Hi,

    please check the value of 'console_enabled' configuration variable. It must be '2' to enable uPython and '3' to boot from the python script specified in the 'python_script' configuration variable.

    You can find these and more details in the application note 'AN4964: MicroPython scripting language over SPWF04S'

    Lorenzo Pecci
    Associate II
    July 3, 2017
    Posted on July 03, 2017 at 09:43

    As I said, I followed the istructions in the application note. Therefore, I set 'console_enabled' to '2' but the answer is like this:

    0690X00000603s6QAA.jpg

    And I checked the value of 'console_enabled':

    0690X00000603vJQAQ.jpg
    Lorenzo Pecci
    Associate II
    July 3, 2017
    Posted on July 03, 2017 at 10:01

    I found a solution. After change 'console_enabled' to 2, I need to save the configuration variable to no volatile storage (AT&W).

    Restart the module and now shell started.

    Thanks for the support.