2900 views|6 replies

305

Posts

0

Resources
The OP
 

[Ultra-low power STM32U5 IoT Discovery Kit] - 4: wifi-1 [Copy link]

Inspired by the content of this post ( ST U5 development board evaluation and programming related issues (official sharing) ), I thought of doing the same thing with the WIFI module to see if it works.

Refer to this example - "README" in B-U585I-IOT02A compiled demo binary - The EMW3080B MXCHIP Wi-Fi module firmware used version is V2.1.11 and the way to update your board with it
are available at [x-wifi-emw3080b ](https://www.st.com/en/development-tools/x-wifi-emw3080b.html).

Here are three ways to download and upgrade the wifi firmware - file:///E:/Projects/B-U585I-IOT02A%20-%20Discovery%20kit%20for%20IoT%20node%20with%20STM32U5%20series/x-wifi-emw3080b/Release_notes.html

Try the third method (* on Windows 10):

The first step is to install Python - https://www.python.org/

The second step is to use pip3 to download and install MXCHIP-Flash:

pip3 install mflash -i https://pypi.tuna.tsinghua.edu.cn/simple

Step 3: Install the required USB driver - https://zadig.akeo.ie/

According to the tutorial, after the installation is complete, right-click the file and "" should appear, but I don't have it here. I restarted the machine and it still doesn't exist, so I came here to download it - https://pypi.tuna.tsinghua.edu.cn/simple/mflash/. After downloading, it still doesn't work. It seems that I can't find the installation file or the executable file, so I turned to Ubuntu 20.04.

pip3 install mflash -i https://pypi.tuna.tsinghua.edu.cn/simple

The installation went smoothly:

Moreover, the command prompts are very standardized, which really makes it clear to the viewer:

By the way, executing the above command line will open the homepage of the "MXCHIP" company at the same time:

This is the first time to see an important domestically produced module on such an important board.

This post is from stm32/stm8

Latest reply

Very good, very detailed introduction!   Details Published on 2021-10-19 13:29

赞赏

1

查看全部赞赏

Personal signature

“Everyone wants the project to be good, fast, and cheap... pick two.”

- Unknown

 

305

Posts

0

Resources
2
 

Let's go back to the demonstration example provided on the ST website - "B-U585I-IoT02A_Demo". The idea of this example is to configure the B-U585I-IoT02A Exploration Office as a web server based on the HTTP protocol, and use the user's browser as a web client to access an existing WiFi hotspot, so that users can browse the data collected by the sensors on the board on their own web browsers, such as Android mobile phones.

The "README" in this example should be read together with the "README" in the example "WiFIBasics" in STM32CubeIDE, because the contents of the two are not completely repeated, but complement each other. For example, the latter does not mention the item of entering the WIFI username and password, but the latter proposes that the user should set these two items in advance in the "main.h" file.

This post is from stm32/stm8
 
Personal signature

“Everyone wants the project to be good, fast, and cheap... pick two.”

- Unknown

 

305

Posts

0

Resources
3
 

When testing on Windows 10, only one of the following two processes can be run:

    -   Network Interface starting
    -   Network Interface ready
        - Device Name : MXCHIP-WIFI
        - Device ID   : EMW3080B
        - Device Version : Vx.y.z
        - MAC address: x.y.z.a.b.c
    -   Network Interface connecting
    -   Network Interface connected
        - IP address :  x.y.z.w

After that, you will be prompted to enter a command, but as mentioned in the previous post ( [Ultra-low power STM32U5 IoT Discovery Kit] - 2: wifi ), no matter how you enter the command, it will not work, so the second stage of work will not be carried out:

    -   *** Create TCP socket
    -   *** TCP socket created
    -   *** Set port and bind socket
    -   *** Port and socket binded
    -   *** Listen for incoming connections
    -   *** Listening started

Therefore, it is not possible to browse the sensor data on the phone.

This post is from stm32/stm8
 
Personal signature

“Everyone wants the project to be good, fast, and cheap... pick two.”

- Unknown

 

305

Posts

0

Resources
4
 

In Windows, firmware upgrade is a two-step process:

(Notes are here: file:///home/mianqi/Downloads/en.x-wifi-emw3080b_v1.0.0/x-wifi-emw3080b/Release_notes.html)

The first step is to drag the "EMW3080updateV2.1.11RevC.bin" file provided in the demo to the drive letter displayed on the board when the "BOOT" of SW1 is in the default "NC" position.

The second step is to push the "BOOT" of SW1 from the default "NC" position to the opposite "0" position, and then press the "RST" button on the board. After about 20 seconds, the MCU (U585I) on the board will write the file dragged in the previous step to the WIFI module. When you see the prompt, push the "BOOT" of SW1 back to the default "NC" position.

The first step above can also be done through a hyperterminal, here try PuTTY.

This post is from stm32/stm8
 
Personal signature

“Everyone wants the project to be good, fast, and cheap... pick two.”

- Unknown

 
 

305

Posts

0

Resources
5
 
This post was last edited by MianQi on 2021-10-19 13:14

However, these three sentences here (file:///home/mianqi/Documents/Projects/B-U585I-IOT02A/en.x-wifi-emw3080b_v1.0.0/x-wifi-emw3080b/Release_notes.html):

Connect the board to your laptop through USB

Start an hyperterminal on your PC: speed 115200, 8 bit data, no parity, 1 stop bit, no flow control

Download “EMW3080updateV2.1.11RevC.bin” binary file to the board

It seems to mislead the user - thinking that the program "EMW3080updateV2.1.11RevC.bin" is downloaded to the board in the HyperTerminal:

In fact, in Ubuntu 20.04, you can copy the above files to the board by dragging:

The file dragged up will not be displayed:

The next things to do are:

1. Open the HyperTerminal (115200, 8N1, NONE).

2. Turn the BOOT button of SW1 on the board to "0" - this actually sets the MXCHIP chip to BOOT mode.

3. Press the "RST" button on the board.

4. The document says to enter "flash", but during the experiment it was found that you can press the blue key instead of entering "flash".

5. Observe in the HyperTerminal that the waiting time depends on the performance of the machine. The document says it is about 20 seconds, but it took less than 3 seconds in the experiment.

6. According to the prompt in the HyperTerminal, turn the BOOT key of SW1 back to "NC".

The following is a demonstration video of the whole process (in the video, there is a TYPE-C cable plugged into the board, which is not used in this step and will be used for ground in the next step. But at this time, pay attention to adjusting the jumper cap at JP4, which should be: 5V_USB_STLK):


This post is from stm32/stm8
 
Personal signature

“Everyone wants the project to be good, fast, and cheap... pick two.”

- Unknown

 
 

1942

Posts

2

Resources
6
 

Very good, very detailed introduction!

This post is from stm32/stm8
 
 
 

305

Posts

0

Resources
7
 

I want to try this method - programming the WIFI module directly through SWD:

no:

Change to this conventional method (JP4 power interface needs to be changed back):

After compiling and running the example "WiFiBasics" in STM32CubeIDE, view it in PuTTY:

This post is from stm32/stm8
 
Personal signature

“Everyone wants the project to be good, fast, and cheap... pick two.”

- Unknown

 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list