
3
Hardware and firmware setup
3.1
Connect hardware
To start using
, 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
or
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
on STMicroelectronics web site at
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
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
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
Expansion Package, for each supported IDE:
®
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
, 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
Discovery board (with
screen) as well as host board of the
UM2567
Hardware and firmware setup
UM2567
-
Rev 4
page 4/12