Skip to content

LN-02 Wi-Fi/BLE Module

by Unknown - product page

Information  
Board code ln-02
MCU Lightning LN882HK
Series LN882X
Specifications  
Frequency 160 MHz
Flash size 2 MiB
RAM size 295 KiB
Voltage 3.0V - 3.6V
I/O 9x GPIO, 2x UART, 3x ADC
Wi-Fi 802.11 b/g/n
Bluetooth BLE v5.1

Usage

Board code: ln-02

In platformio.ini:

[env:ln-02]
platform = libretiny
board = ln-02
framework = arduino

Quick flashing guide

Pin Connection
PA03 / RX0 TX of USB-UART adapter
PA02 / TX0 RX of USB-UART adapter
PA09 / BOOT1 (strapping pin) GND to enter download mode
CEN (Chip-Enable) GND to reset the chip
  1. Connect the USB-UART adapter.
  2. Start the flashing process.
  3. Connect PA09 (BOOT1) to GND.
  4. Power-cycle the device or briefly short CEN to GND.

Pinout

Pinout

Pin functions

Name(s) UART I²C SPI PWM Other
PA00, ADC2
PA01, ADC3 SWDIO
PA02 TX0
PA03 RX0
PA09
PA11
PB03, ADC5
PB08 RX1
PB09 TX1

Flash memory map

Flash size: 2 MiB / 2,097,152 B / 0x200000

Hex values are in bytes.

Name Code Start Length End
Boot Image boot 0x000000 24 KiB / 0x6000 0x006000
part_tab part_tab 0x006000 4 KiB / 0x1000 0x007000
App Image app 0x007000 1.2 MiB / 0x12C000 0x133000
ota ota 0x133000 680 KiB / 0xAA000 0x1DD000
nvds nvds 0x1DD000 12 KiB / 0x3000 0x1E0000
kv kv 0x1E0000 16 KiB / 0x4000 0x1E4000
LibreTiny Storage kvs 0x1E4000 32 KiB / 0x8000 0x1EC000
user user 0x1EC000 80 KiB / 0x14000 0x200000