项目作者: africastalkingiotltd

项目描述 :
Africa's Talking Eris Dev Kit/Board Rev2 GSM Sample for STM32 Cube IDE
高级语言: C
项目地址: git://github.com/africastalkingiotltd/devkit_r2_gsm.git
创建时间: 2019-12-13T14:14:39Z
项目社区:https://github.com/africastalkingiotltd/devkit_r2_gsm

开源协议:GNU General Public License v3.0

下载


Africa’s Talking v1 R2 Dev Kit SIM 800C Sample for STM32CubeIDE

TLDR;

To get up and running quickly with this sample, follow the steps below:

  1. Insert the activated IoT SIM into the SIM Slot

  2. Attach the antenna

  3. Flash ./Dist/atdevkitgsm.bin in to your dev kit.

  4. Open Serial to view SIM Connection status

For a detailed write up, read below

  • See overrall config as shown below
    PinoutConfig

  • Set PB15 to GPIOOutput as shown. This will be your GSM Power Key.

  • Also set PC13 to GPIOOutput; this is the on-board LED.
    GPIOTriggerPinConfig

  • Set HSE to Crystal/Ceramic Resonator and disable LSE as shown
    ClockConfig

  • Set serial mode to Asynchronous for both USART1 and USART2 and ensure gloabl interrupt is enabled under NVIC Settings
    UARTConfig

Clock Configuration

  • See below clock configuration.

    • Toggle PLL and PLLCLK
    • Set input frequency to 8Mhz
  • You might want to set the multiplier PLLMul to 11 or above then click Resolve Clock Issues
    SysClockConfig

Project Management

  • Under Project Manager ensure Generate peripheral initialization... is checked
    CodeGenerationConfig

  • Then inside Advanced Settings Set USART driver to LL
    USARTDriverConfig

SAVE AND GENERATE PROJECT

Important

  • See the APN configuration inside ./Core/Src/main.c

  • Note that the line shown below is commented under ./Core/Src/syscalls.c

  1. 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.{*}