[core] Refactor families.json
This commit is contained in:
@@ -1,44 +0,0 @@
|
||||
{
|
||||
"build": {
|
||||
"family": "NATIVE",
|
||||
"mcu": "native",
|
||||
"f_cpu": "1000000000L",
|
||||
"variant": "generic-native"
|
||||
},
|
||||
"flash": {
|
||||
"bootloader": "0x000000+0x10000",
|
||||
"system": "0x010000+0x10000",
|
||||
"ota1": "0x020000+0x100000",
|
||||
"ota2": "0x120000+0x100000",
|
||||
"download": "0x220000+0x100000",
|
||||
"kvs": "0x320000+0x40000",
|
||||
"userdata": "0x360000+0xA0000"
|
||||
},
|
||||
"connectivity": [
|
||||
"wifi"
|
||||
],
|
||||
"frameworks": [
|
||||
"host-native-sdk",
|
||||
"host-native-arduino"
|
||||
],
|
||||
"upload": {
|
||||
"maximum_ram_size": 4194304,
|
||||
"flash_size": 4194304,
|
||||
"maximum_size": 1048576
|
||||
},
|
||||
"doc": {
|
||||
"params": {
|
||||
"manufacturer": "N/A",
|
||||
"series": "N/A",
|
||||
"voltage": "5V"
|
||||
},
|
||||
"extra": [
|
||||
"## Description",
|
||||
"`generic-native` is a dummy board using the `host-native` family, which also serves as a template for building new families, as well as for testing flash-related modules (i.e. Fat FS, OTA, etc)."
|
||||
]
|
||||
},
|
||||
"name": "Generic - Host-native",
|
||||
"vendor": "N/A",
|
||||
"url": "https://kuba2k2.github.io/libretuya/",
|
||||
"symbol": "Native"
|
||||
}
|
||||
@@ -1,58 +0,0 @@
|
||||
# Generic - Host-native
|
||||
|
||||
*by N/A*
|
||||
|
||||
[Product page](https://kuba2k2.github.io/libretuya/)
|
||||
|
||||
Parameter | Value
|
||||
-------------|-----------------
|
||||
Board code | `generic-native`
|
||||
MCU | NATIVE
|
||||
Manufacturer | N/A
|
||||
Series | N/A
|
||||
Frequency | 1 GHz
|
||||
Flash size | 4 MiB
|
||||
RAM size | 4 MiB
|
||||
Voltage | 5V
|
||||
|
||||
## Usage
|
||||
|
||||
**Board code:** `generic-native`
|
||||
|
||||
In `platformio.ini`:
|
||||
|
||||
```ini
|
||||
[env:generic-native]
|
||||
platform = libretuya
|
||||
board = generic-native
|
||||
framework = arduino
|
||||
```
|
||||
|
||||
In ESPHome YAML:
|
||||
|
||||
```yaml
|
||||
libretuya:
|
||||
board: generic-native
|
||||
framework:
|
||||
version: dev
|
||||
```
|
||||
|
||||
## Flash memory map
|
||||
|
||||
Flash size: 4 MiB / 4,194,304 B / 0x400000
|
||||
|
||||
Hex values are in bytes.
|
||||
|
||||
Name | Start | Length | End
|
||||
----------------|----------|-------------------|---------
|
||||
Bootloader | 0x000000 | 64 KiB / 0x10000 | 0x010000
|
||||
System Data | 0x010000 | 64 KiB / 0x10000 | 0x020000
|
||||
OTA1 Image | 0x020000 | 1 MiB / 0x100000 | 0x120000
|
||||
OTA2 Image | 0x120000 | 1 MiB / 0x100000 | 0x220000
|
||||
OTA Image | 0x220000 | 1 MiB / 0x100000 | 0x320000
|
||||
Key-Value Store | 0x320000 | 256 KiB / 0x40000 | 0x360000
|
||||
User Data | 0x360000 | 640 KiB / 0xA0000 | 0x400000
|
||||
|
||||
## Description
|
||||
|
||||
`generic-native` is a dummy board using the `host-native` family, which also serves as a template for building new families, as well as for testing flash-related modules (i.e. Fat FS, OTA, etc).
|
||||
@@ -1 +0,0 @@
|
||||
#include "variant.h"
|
||||
@@ -1,7 +0,0 @@
|
||||
/* This file was auto-generated from generic-native.json using boardgen */
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <WVariant.h>
|
||||
|
||||
// clang-format off
|
||||
Reference in New Issue
Block a user