LN-CB3S V1.0
by Unknown - product page
| Information | |
|---|---|
| Board code | ln-cb3s-v1.0 |
| MCU | Lightning LN882HK |
| Series | LN882X |
| Partition layout | Tuya default (OTA 0x11A000, KV 0x1C5000) |
| Specifications | |
| Frequency | 160 MHz |
| Flash size | 2 MiB |
| RAM size | 295 KiB |
| Voltage | 3.0V - 3.6V |
| I/O | 13x GPIO, 2x UART, 5x ADC |
| Wi-Fi | 802.11 b/g/n |
| Bluetooth | BLE v5.1 |
Usage
Board code: ln-cb3s-v1.0
In platformio.ini:
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 |
- Connect the USB-UART adapter.
- Start the flashing process.
- Connect PA09 (BOOT1) to GND.
- Power-cycle the device or briefly short CEN to GND.
Pinout
Pin functions
| Name(s) | UART | I²C | SPI | PWM | Other |
|---|---|---|---|---|---|
| PA00, ADC2 | |||||
| PA01, ADC3 | SWDIO | ||||
| PA02 | TX0 | ||||
| PA03 | RX0 | ||||
| PA04, ADC4 | SWCLK | ||||
| PA05 | |||||
| PA06 | |||||
| PA09 | |||||
| PA11 | |||||
| PB04, ADC6 | |||||
| PB05, ADC7 | |||||
| PB06 | |||||
| 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 |
| Partition Table | part_table |
0x006000 | 4 KiB / 0x1000 | 0x007000 |
| App Image | app |
0x007000 | 1.1 MiB / 0x113000 | 0x11A000 |
| OTA Image | ota |
0x11A000 | 672 KiB / 0xA8000 | 0x1C2000 |
| Lightning NV Store | ln_nvds |
0x1C2000 | 12 KiB / 0x3000 | 0x1C5000 |
| Lightning KV Store | ln_kv |
0x1C5000 | 16 KiB / 0x4000 | 0x1C9000 |
| LibreTiny Storage | kvs |
0x1C9000 | 32 KiB / 0x8000 | 0x1D1000 |
| User Data | userdata |
0x1D1000 | 188 KiB / 0x2F000 | 0x200000 |
| Tuya Storage | tuya |
0x1EB000 | 84 KiB / 0x15000 | 0x200000 |