Skip to main content
Mutlu.Mert
Associate II
February 7, 2017
Question

About SPWF01SA connection

  • February 7, 2017
  • 3 replies
  • 4068 views
Posted on February 07, 2017 at 07:41

Hi i want to use SPWF01SA wifi module, but i'm confused about connections. 

 I want to control SPWF01S with another mcu and in my schematic i've connected only rx,tx, vcc and gnd also one connector like jtag. But i did not understand how to program module ? My jtag connections right ?  In SPWF01SA with nucleo board schematics, there is a connector like a jtag. (Below

en.x-nucleo-idw01m1_schematic.pdf

) I need help about connections with my mcu and also RTS and CTS pins. I write details below pictures. My design is

SPWF_wifi.PDF.

  I'm sure that, there are forgotten connections. 

With warmest regards.

    This topic has been closed for replies.

    3 replies

    Gerardo GALLUCCI
    ST Employee
    February 8, 2017
    Posted on February 08, 2017 at 13:59

    Hi,

    JTAG is not the official way to update the module. Use UART (STM32 Flashloader) or OverTheAir feature (AT command). Do not write module's flash @ 0x8000000 address.

    CTS and RTS are not needed for update, but can help on module's life. Other useful pins are GPIO0 (for factory reset), GPIO7 (for miniAP startup via HW), Reset (always a good idea), and status GPIOs (GPIO10, 13 and 14).

    For module's output pins (Tx, RTS, and status GPIOs), do not forget that high level is 2V5. Pay attention to external mcu's input levels.

    Ciao

    jerry

    Mutlu.Mert
    Associate II
    February 8, 2017
    Posted on February 08, 2017 at 14:03

    Okay i'll take care what you said. Thanks a lot

    tabekb
    Associate III
    April 14, 2017
    Posted on April 14, 2017 at 10:45

    Hi Gerardo!

    You say that JTAG is not the official way to update, but what is the official way then? Because UART update takes about 3 minutes and 30 seconds to update, and JTAG takes about 35 seconds...Think if you have to update 5000 modules....the time is money...so what is the best way for production? Why the serial update takes such a lot of time?

    Thanks

    Gerardo GALLUCCI
    ST Employee
    April 14, 2017
    Posted on April 14, 2017 at 21:39

    Hi,

    UART takes 40 seconds. Which baudrate are you using? Please check also your USB2UART interface (double check with another one)

    tabekb
    Associate III
    April 19, 2017
    Posted on April 19, 2017 at 15:40

    I am talking about firmware update, so the baudrate is 115200bps. You can change the baudrate of the bootloader? How?

    I am using an FTDI adapter for communication, just TX and RX without the control lines (checked with 2 different adapters and the time is the same ~ 3 minutes and 30 seconds).

    I tried with 1203flash.exe provided with the module, and also with the GUI FlashLoader demonstrator, but the result is the same: 3 minutes and 30 seconds.

    Gerardo GALLUCCI
    ST Employee
    April 19, 2017
    Posted on April 19, 2017 at 23:43

    STM32F1 bootloader works fine also with higher baudrates than 115200 (1203flash.exe contains an hardcoded 115200). I usually set 921600 on Linux environment, even if it's not really used so high. As USB2UART adapter, I use STEVAL-PCC018V1:

    http://www.st.com/en/evaluation-tools/steval-pcc018v1.html

    3.5 minutes are too much!!!

    - set higher baudrate on flashloader demonstrator

    - change adapter

    - change USB port

    - change PC/OS

    j

    Tesla DeLorean
    Guru
    April 20, 2017
    Posted on April 20, 2017 at 00:40

    Does seem rather long. The System Loader auto-bauds the connection with 8E1 framing, the ceiling is 1.5Mbaud as I recall.

    Heck, if you don't like the protocol, push a small loader into RAM and execute your own.

    The thing with serial is that it scales very cheaply, I've seen a lot of places using old scrap PC hardware for test stations as people get new kit, and a 4-port USB serial adapter might run $35-40

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..