ST X-CUBE-CELLULAR Скачать руководство пользователя страница 4

3

Hardware and firmware setup

3.1

Connect hardware

To start using 

X-CUBE-CELLULAR

, the user needs:

A PC

A Type-A to Micro-B USB cable

An STM32L4-based master hardware combined to, or associated with a cellular modem
(refer to 

[2]

[3]

 or 

[4]

 for possible solutions)

The PC is used to power HW, program FW, and display STM32 FW traces and results onto a serial terminal.
The ST-LINK USB driver, available as 

STSW-LINK009

 on STMicroelectronics web site at 

www.st.com

, is

mandatory and must be installed on the PC. It is needed to program FW onto the STM32 microcontroller.
Follow the next five steps to connect the HW:
1.

If the STM32 microcontroller and modem are on separate boards, connect these boards together.

Note: On the modem board, the modem module is on the upper side.

2.

Connect the antenna.

3.

All the boards compatible with 

X-CUBE-CELLULAR

 provide a SIM slot, which makes it possible to use a

plastic SIM instead of an eSIM. If this option is selected, insert the SIM card.

4.

Connect the 

STLink

 port of the STM32 board with the PC by means of the USB cable.

5.

See that a new drive corresponding to the STM32 board is available on the PC, resulting from the previous
installation of the ST-LINK USB driver.

3.2

Activate the eSIM (optional)

Refer to 

[4]

 and the related pages for the latest information.

3.3

Program firmware into the STM32 microcontroller

This section explains how to select binary firmware and program it into the STM32 microcontroller.
Binary FW is delivered as part of the 

X-CUBE-CELLULAR

 Expansion Package, for each supported IDE:

STMicroelectronics 

STM32CubeIDE

, IAR Systems

®

 IAR Embedded Workbench

®

 or Keil

®

 MDK-ARM.

For a given board, the binaries are located in 

Projects\<Board-Name>\Demonstrations\Cellular

.

The IP mode (LwIP or modem-socket) used in the binary is part of the file name. See for instance two binaries
produced for the BG96 modem:

iar_bg96_lwip_v<x.y.z>.bin

 for the LwIP mode

iar_bg96_socket_v<x.y.z>.bin

 for the modem-socket mode

See as another example the two binaries for the Type 1SC modem:

iar_t1sc_lwip_v<x.y.z>.bin

 for the LwIP mode

iar_t1sc_socket_v<x.y.z>.bin

 for the modem-socket mode

Note:

There are two configuration modes concerning the location of the IP stack:

Either the IP stack runs on the STM32 microcontroller (LwIP mode)

Or the IP stack used is located in the modem (modem-socket mode)

Only the LwIP mode is available when the modem does not include an IP stack or no AT command is available
to expose the socket interface.
The main interests of the modem-socket mode is to reduce the STM32 memory footprint and make STM32
exchanges with the modem simpler. The main drawback of the modem-socket mode is lower performance.
Refer to the Cellular RN in 

[1]

, which presents STM32 FW size figures (Flash memory and RAM) for both IP

modes.

Note:

STM32 FW for STM32L496 devices (“L496”) can be used on the 

32L496GDISCOVERY

 Discovery board (with

screen) as well as host board of the 

P-L496G-CELL02

 Discovery kit (screenless).

UM2567

Hardware and firmware setup

UM2567

 - 

Rev 4

page 4/12

Содержание X-CUBE-CELLULAR

Страница 1: ...the X CUBE CELLULAR Expansion Package for STM32Cube Instructions to start the hardware composed of a board based on an STM32 microcontroller associated with a modem and to exchange data through a cel...

Страница 2: ...C International circuit card IDE Integrated development environment IP Internet protocol MCU Microcontroller unit PC Personal computer RN Release note STMicroelectronics document type SIM Subscriber i...

Страница 3: ...on Package for STM32Cube user manual UM2426 The UM provides the detailed information needed to use X CUBE CELLULAR and adapt it to users needs It is available from STMicroelectronics web site at www s...

Страница 4: ...program it into the STM32 microcontroller Binary FW is delivered as part of the X CUBE CELLULAR Expansion Package for each supported IDE STMicroelectronics STM32CubeIDE IAR Systems IAR Embedded Workb...

Страница 5: ...he X CUBE CELLULAR Expansion Package provides all the source files needed to build FW for the various supported IDEs 3 4 Modem firmware version The modem factory FW version in user s HW may not be com...

Страница 6: ...erminal configuration for X CUBE CELLULAR firmware Start Tera Term select the proper connection featuring the STMicroelectronics name and set the parameters the baud rate is different from the one ref...

Страница 7: ...ellularapp Cellular App commands echoclient Echo client commands ping Ping commands trace Trace management csp Power management comlib Com library commands cst Cellular service task management atcmd S...

Страница 8: ...efer to 3 to know more about the possibilities of the X CUBE CELLULAR Expansion Package Connect to 4 and the related wiki pages for regularly updated additional information UM2567 Deep dive in X CUBE...

Страница 9: ...of the X CUBE CELLULAR Expansion Package 2 May 2021 4 Focused X CUBE CELLULAR on LTE Cat M or NB IoT cellular communication with the Cellular App application Updated Introduction Updated Functional c...

Страница 10: ...ler 4 3 4 Modem firmware version 5 4 Run X CUBE CELLULAR firmware 6 4 1 Functional content of the X CUBE CELLULAR Expansion Package 6 4 2 Set the serial terminal configuration for X CUBE CELLULAR firm...

Страница 11: ...List of tables Table 1 Acronyms 2 Table 2 References 3 Table 3 Cellular App available commands 7 Table 4 Document revision history 9 UM2567 List of tables UM2567 Rev 4 page 11 12...

Страница 12: ...ts and ST assumes no liability for application assistance or the design of Purchasers products No license express or implied to any intellectual property right is granted by ST herein Resale of ST pro...

Отзывы: