Skip to content

Commit b723ef0

Browse files
authored
ReadME Update, minor voltage adjust, version bump (#49)
* readme update Signed-off-by: Adam BZH <adam@onekey.so> * power management voltage minor adjust, version bump Signed-off-by: Adam BZH <adam@onekey.so> --------- Signed-off-by: Adam BZH <adam@onekey.so>
1 parent 96bb143 commit b723ef0

File tree

3 files changed

+44
-3
lines changed

3 files changed

+44
-3
lines changed

README.md

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,42 @@
1-
OneKey Pro Bluetooth Firmware
1+
# OneKey Pro Bluetooth Firmware
2+
3+
This repo contains bluetooth firmware for OneKey Pro
4+
5+
The firmware is based on NRF5 SDK 16.0.0, and build with CMake
6+
7+
## How to build
8+
9+
```shell
10+
# make sure you have cmake, Python 3, amd aarm-none-eabi toolchain available in PATH
11+
12+
# export your OWN key for firmware signing
13+
export BT_SIG_PK=$(cat <<EOF
14+
-----BEGIN EC PRIVATE KEY-----
15+
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
16+
-----END EC PRIVATE KEY-----
17+
EOF
18+
)
19+
20+
# export toolchain prefix
21+
export TOOL_CHAIN_PREFIX="arm-none-eabi"
22+
23+
# call build script
24+
./build.sh
25+
```
26+
27+
## CMake Build Targets
28+
29+
```shell
30+
# ota image
31+
OnekeyProBTFW_OTA_BIN
32+
33+
# full HEX image
34+
OnekeyProBTFW_FACTORY_HEX
35+
36+
# flash full HEX image with jlink
37+
OnekeyProBTFW_FLASH_FACTORY
38+
```
39+
40+
## License
41+
42+
Please check License.md for details

app/firmware_config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
0xEEBBEE /**< DUMMY Organisation Unique ID. Will be passed to Device Information Service. You shall use the \
1212
Organisation Unique ID relevant for your Company */
1313
#define HW_REVISION "1.0.0"
14-
#define FW_REVISION "2.3.1"
14+
#define FW_REVISION "2.3.2"
1515
#define SW_REVISION "s132_nrf52_7.0.1"
1616
#define BT_REVISION "1.0.1"
1717

drivers/pmu/axp2101.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ static bool axp2101_config_voltage(void)
2222
// ALDO1 -> RAIL_1V8 1.8V
2323
EC_E_BOOL_R_BOOL(axp2101_reg_write(AXP2101_ALDO1_CFG, 0x0D));
2424
// DCDC1 -> RAIL_3V3 3.3V
25-
EC_E_BOOL_R_BOOL(axp2101_reg_write(AXP2101_DCDC1_CFG, 0x14));
25+
EC_E_BOOL_R_BOOL(axp2101_reg_write(AXP2101_DCDC1_CFG, 0x12));
2626

2727
return true;
2828
}

0 commit comments

Comments
 (0)