To get up and running quickly with this sample, follow the steps below:
-
Insert the activated IoT SIM into the SIM Slot
-
Attach the antenna
-
Flash
./Dist/atdevkitgsm.bin
in to your dev kit. -
Open Serial to view SIM Connection status
For a detailed write up, read below
-
Set
PB15
toGPIOOutput
as shown. This will be yourGSM Power Key
. -
Set
HSE
toCrystal/Ceramic Resonator
and disableLSE
as shown -
Set serial mode to
Asynchronous
for bothUSART1
andUSART2
and ensuregloabl interrupt
is enabled underNVIC Settings
-
See below clock configuration.
- Toggle
PLL
andPLLCLK
- Set input frequency to
8Mhz
- Toggle
-
You might want to set the multiplier
PLLMul
to 11 or above then clickResolve Clock Issues
SAVE AND GENERATE PROJECT
-
See the APN configuration inside
./Core/Src/main.c
-
Note that the line shown below is commented under
./Core/Src/syscalls.c
extern int __io_putchar(int ch) __attribute__((weak));
-
Also note that an IRQ handler is required for USART1; see
./Core/Src/stm32f1xx_it.c
. -
Note the differences under
./Core/{*}/usart.{*}