Skip to content

Commit

Permalink
ReadME Update, minor voltage adjust, version bump (#49)
Browse files Browse the repository at this point in the history
* readme update

Signed-off-by: Adam BZH <[email protected]>

* power management voltage minor adjust, version bump

Signed-off-by: Adam BZH <[email protected]>

---------

Signed-off-by: Adam BZH <[email protected]>
  • Loading branch information
424778940z authored Aug 7, 2024
1 parent 96bb143 commit b723ef0
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 3 deletions.
43 changes: 42 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,42 @@
OneKey Pro Bluetooth Firmware
# OneKey Pro Bluetooth Firmware

This repo contains bluetooth firmware for OneKey Pro

The firmware is based on NRF5 SDK 16.0.0, and build with CMake

## How to build

```shell
# make sure you have cmake, Python 3, amd aarm-none-eabi toolchain available in PATH

# export your OWN key for firmware signing
export BT_SIG_PK=$(cat <<EOF
-----BEGIN EC PRIVATE KEY-----
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
-----END EC PRIVATE KEY-----
EOF
)

# export toolchain prefix
export TOOL_CHAIN_PREFIX="arm-none-eabi"

# call build script
./build.sh
```

## CMake Build Targets

```shell
# ota image
OnekeyProBTFW_OTA_BIN

# full HEX image
OnekeyProBTFW_FACTORY_HEX

# flash full HEX image with jlink
OnekeyProBTFW_FLASH_FACTORY
```

## License

Please check License.md for details
2 changes: 1 addition & 1 deletion app/firmware_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
0xEEBBEE /**< DUMMY Organisation Unique ID. Will be passed to Device Information Service. You shall use the \
Organisation Unique ID relevant for your Company */
#define HW_REVISION "1.0.0"
#define FW_REVISION "2.3.1"
#define FW_REVISION "2.3.2"
#define SW_REVISION "s132_nrf52_7.0.1"
#define BT_REVISION "1.0.1"

Expand Down
2 changes: 1 addition & 1 deletion drivers/pmu/axp2101.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ static bool axp2101_config_voltage(void)
// ALDO1 -> RAIL_1V8 1.8V
EC_E_BOOL_R_BOOL(axp2101_reg_write(AXP2101_ALDO1_CFG, 0x0D));
// DCDC1 -> RAIL_3V3 3.3V
EC_E_BOOL_R_BOOL(axp2101_reg_write(AXP2101_DCDC1_CFG, 0x14));
EC_E_BOOL_R_BOOL(axp2101_reg_write(AXP2101_DCDC1_CFG, 0x12));

return true;
}
Expand Down

0 comments on commit b723ef0

Please sign in to comment.