Skip to content

Commit

Permalink
Merge pull request #4 from LexxPluss/feature/out_of_tree_v2.7.5
Browse files Browse the repository at this point in the history
Feature/out of tree v2.7.5
  • Loading branch information
shujima authored Feb 20, 2024
2 parents 1267b0d + eb95738 commit f2ee758
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 17 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ $ west zephyr-export
### Build bootloader (MCUboot)

```bash
$ ZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb west build -b lexxpluss_mb02 bootloader/mcuboot/boot/zephyr -d build-mcuboot
$ ZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb west build -b lexxpluss_mb02 bootloader/mcuboot/boot/zephyr -d build-mcuboot -- -DBOARD_ROOT=$(pwd)/extra
```
### Build firmware

```bash
$ ZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb west build -b lexxpluss_mb02 lexxpluss_apps
$ ZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb west build -b lexxpluss_mb02 lexxpluss_apps -- -DBOARD_ROOT=$(pwd)/extra -DZEPHYR_EXTRA_MODULES=$(pwd)/extra
```
```bash
$ cp ./build/zephyr/zephyr.signed.confirmed.bin LexxHard-SensorControlBoard-Firmware-Update-?.?.?.bin
Expand All @@ -47,7 +47,7 @@ $ cat bl_with_ff.bin build/zephyr/zephyr.signed.bin > LexxHard-SensorControlBoa
### Build firmware ( enable interlock )

```bash
$ ZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb west build -b lexxpluss_mb02 lexxpluss_apps -- -DENABLE_INTERLOCK=1
$ ZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb west build -b lexxpluss_mb02 lexxpluss_apps -- -DENABLE_INTERLOCK=1 -DBOARD_ROOT=$(pwd)/extra -DZEPHYR_EXTRA_MODULES=$(pwd)/extra
```

---
Expand Down Expand Up @@ -95,19 +95,19 @@ export GNUARMEMB_TOOLCHAIN_PATH=/Applications/ARM
### Build bootloader (MCUboot)

```bash
$ west build -b lexxpluss_mb02 bootloader/mcuboot/boot/zephyr -d build-mcuboot
$ west build -b lexxpluss_mb02 bootloader/mcuboot/boot/zephyr -d build-mcuboot -- -DBOARD_ROOT=$(pwd)/extra
```

### Build firmware

```bash
$ west build -p auto -b lexxpluss_mb02 lexxpluss_apps
$ west build -p auto -b lexxpluss_mb02 lexxpluss_apps -- -DBOARD_ROOT=$(pwd)/extra -DZEPHYR_EXTRA_MODULES=$(pwd)/extra
```

### Build firmware ( enable interlock )

```bash
$ west build -p auto -b lexxpluss_mb02 lexxpluss_apps -- -DENABLE_INTERLOCK=1
$ west build -p auto -b lexxpluss_mb02 lexxpluss_apps -- -DENABLE_INTERLOCK=1 -DBOARD_ROOT=$(pwd)/extra -DZEPHYR_EXTRA_MODULES=$(pwd)/extra
```
---
## Program of the built firmware
Expand Down
1 change: 0 additions & 1 deletion extra/boards/arm/lexxpluss_mb02/lexxpluss_mb02.dts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
zephyr,sram = &sram0;
zephyr,flash = &flash0;
zephyr,dtcm = &dtcm;
/* zephyr,can-primary = &can2; */
zephyr,can-primary = &can1;
zephyr,can-secondary = &can2;
};
Expand Down
2 changes: 2 additions & 0 deletions lexxpluss_apps/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,5 @@ CONFIG_MCUBOOT_GENERATE_CONFIRMED_IMAGE=y
CONFIG_FLASH=y
CONFIG_FLASH_MAP=y
CONFIG_REBOOT=y
CONFIG_MAXBOTIX=y
CONFIG_ADIS16470=y
6 changes: 3 additions & 3 deletions lexxpluss_apps/src/rosserial_bmu.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class ros_bmu {
if (message.mod_status1 & 0b00100000 ||
message.bmu_status == 0x07 ||
message.bmu_status == 0x09 ||
message.bmu_alarm1 == 0b10000010)
message.bmu_alarm1 & 0b10000010)
msg.state.power_supply_health = sensor_msgs::BatteryState::POWER_SUPPLY_HEALTH_OVERHEAT;
else if (message.mod_status1 & 0b00011000)
msg.state.power_supply_health = sensor_msgs::BatteryState::POWER_SUPPLY_HEALTH_OVERVOLTAGE;
Expand All @@ -67,8 +67,8 @@ class ros_bmu {
message.mod_status2 & 0b00000001 ||
message.bmu_status == 0xf0 ||
message.bmu_status == 0xf1 ||
message.bmu_alarm1 == 0b01111101 ||
message.bmu_alarm2 == 0b00000001)
message.bmu_alarm1 & 0b01111101 ||
message.bmu_alarm2 & 0b00000001)
msg.state.power_supply_health = sensor_msgs::BatteryState::POWER_SUPPLY_HEALTH_UNSPEC_FAILURE;
else
msg.state.power_supply_health = sensor_msgs::BatteryState::POWER_SUPPLY_HEALTH_GOOD;
Expand Down
10 changes: 3 additions & 7 deletions lexxpluss_apps/west.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,13 @@
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

manifest:
remotes:
- name: lexxpluss
url-base: https://github.com/LexxPluss
projects:
- name: zephyr
remote: lexxpluss
revision: lexxpluss/main
url: https://github.com/zephyrproject-rtos/zephyr.git
revision: refs/tags/v2.7.5
import: true
- name: ros_msgs
remote: lexxpluss
url: https://github.com/LexxPluss/ros_msgs.git
revision: main
path: ros_msgs
self:
path: lexxpluss_apps

0 comments on commit f2ee758

Please sign in to comment.