So I first ran python -m pip install -U hello-robot-stretch-factory
and then did REx_firmware_updater.py --install
(I also stopped xbox teleop before doing this). I got the following message:
Please run tool RE1_migrate_params.py before continuing. For more details, see forum[dot]hello-robot[dot]com/t/425
As suggested, I first ran RE1_migrate_params.py
:
output
############## Migrating stretch-re1-1039 ###############
Checking parameters at: /home/hello-robot/stretch_user/stretch-re1-1039
Migration is required for robot stretch-re1-1039. Proceed? [y/N]: y
Migration complete. Starting validationâŚ
Warning. Parameter base.contact_thresh_N dropped
Warning. Parameter base.contact_thresh_max_N dropped
Warning. Parameter robot.log_to_console dropped
Warning. Value change in hello-motor-lift.gains.pos_near_setpoint_d from 0.5 to 6.0
Warning. Value change in wrist_yaw.motion.slow.vel from 1.0 to 0.75
Warning. Value change in wrist_yaw.motion.slow.accel from 4.0 to 1.5
Warning. Value change in wrist_yaw.motion.default.vel from 3.0 to 2.0
Warning. Value change in wrist_yaw.motion.default.accel from 8.0 to 3.0
Warning. Value change in wrist_yaw.motion.max.vel from 8 to 6.0
Warning. Value change in wrist_yaw.motion.max.accel from 12 to 10
Warning. Value change in wrist_yaw.motion.fast.vel from 5.0 to 2.5
Warning. Value change in wrist_yaw.motion.fast.accel from 10.0 to 5.0
Warning. Value change in wrist_yaw.motion.trajectory_max.accel_r from 16.0 to 3.0
Warning. Value change in wrist_yaw.motion.trajectory_max.vel_r from 8.0 to 3.0
Warning. Value change in hello-motor-left-wheel.gains.pos_near_setpoint_d from 0.5 to 1.0
Warning. Value change in hello-motor-arm.gains.pos_near_setpoint_d from 0.5 to 2.0
Warning. Value change in hello-motor-right-wheel.gains.pos_near_setpoint_d from 0.5 to 1.0
Validation check: Dropped 3, Changed 14
Validation check should report 0 warnings. Reported total of 17
Use new parameters for robot stretch-re1-1039? [y/N]: y
Backing up /home/hello-robot/stretch_user/stretch-re1-1039/stretch_re1_user_params.yaml to stretch_re1_user_params.migration_backup.20220926143923.yaml
[sudo] password for hello-robot:
Backing up /home/hello-robot/stretch_user/stretch-re1-1039/stretch_re1_factory_params.yaml to stretch_re1_factory_params.migration_backup.20220926143931.yaml
Robot stretch-re1-1039 now configured to use latest parameter format
, followed up by REx_firmware_updater.py --install
to get tho following messages and errors:
Collecting informationâŚ
âŚ
WARNING:---------------------------------------------------------------------------------
WARNING: Compatible version of arduino_cli not installed.
Requires version 0.24.0. Installed version of 0.18.3
Install now? [y/N]: y
Installing in /home/hello-robot/.local/bin/
ARCH=64bit
OS=Linux
Using curl as download tool
Downloading downloads[dot]arduino[dot]cc/arduino-cli/arduino-cli_0.24.0_Linux_64bit[dot]tar[dot]gz
A new release of Arduino CLI is available: 0.24.0 â 0.27.1
arduino[dot]github[dot]io/arduino-cli/latest/installation/#latest-packages
arduino-cli Version: 0.24.0 Commit: c1b10f56 Date: 2022-06-22T10:09:11Z installed successfully in /home/hello-robot/.local/bin/
Config file already exists, use --overwrite to discard the existing one.
Error initializing instance: Error loading hardware platform: discovery builtin:mdns-discovery not found
Error initializing instance: Error loading hardware platform: discovery builtin:mdns-discovery not found
Error initializing instance: Error loading hardware platform: discovery builtin:mdns-discovery not found
Error initializing instance: Error loading hardware platform: discovery builtin:mdns-discovery not found
Platform arduino:samd@1.6.21 already installed
######################################## Recommended Firmware Updates ########################################
DEVICE | INSTALLED | RECOMMENDED | ACTION
HELLO-WACC | Wacc.v0.0.1p0 | Wacc.v0.2.2p1 | Upgrade recommended
HELLO-MOTOR-LIFT | Stepper.v0.2.5p1 | Stepper.v0.2.5p1 | At most recent version
HELLO-PIMU | Pimu.v0.0.1p0 | Pimu.v0.2.4p1 | Upgrade recommended
HELLO-MOTOR-ARM | Stepper.v0.0.4p0 | Stepper.v0.2.5p1 | Upgrade recommended
HELLO-MOTOR-LEFT-WHEEL | Stepper.v0.0.4p0 | Stepper.v0.2.5p1 | Upgrade recommended
HELLO-MOTOR-RIGHT-WHEEL | Stepper.v0.0.4p0 | Stepper.v0.2.5p1 | Upgrade recommended
########################################## UPDATING FIRMWARE TO⌠###########################################
HELLO-WACC | Upgrading to Wacc.v0.2.2p1
HELLO-MOTOR-LEFT-WHEEL | Upgrading to Stepper.v0.2.5p1
HELLO-MOTOR-RIGHT-WHEEL | Upgrading to Stepper.v0.2.5p1
HELLO-MOTOR-LIFT | Reinstalling Stepper.v0.2.5p1
HELLO-PIMU | Upgrading to Pimu.v0.2.4p1
HELLO-MOTOR-ARM | Upgrading to Stepper.v0.2.5p1
WARNING: (1) Updating robot firmware should only be done by experienced users
WARNING: (2) Do not have other robot processes running during update
WARNING: (3) Leave robot powered on during update
WARNING: (4) Ensure Lift has support clamp in place
WARNING: (5) Lift may make a loud noise during programming. This is normal.
Proceed with update?? [y/N]: y
-------- FIRMWARE FLASH hello-wacc | Wacc.v0.2.2p1 ------------
File 94-hello-usb.rules missing from UDEV. Installing now.
Resetting hello-wacc
Looking for device hello-wacc on bus
Waiting for device hello-wacc to return to bus.
Starting programming. This will take about 5sâŚ
Error initializing instance: Error loading hardware platform: discovery builtin:mdns-discovery not found
Error initializing instance: Error loading hardware platform: discovery builtin:mdns-discovery not found
Error initializing instance: Error loading hardware platform: discovery builtin:mdns-discovery not found
Success in firmware compile
Error initializing instance: Error loading hardware platform: discovery builtin:mdns-discovery not found
Error initializing instance: Error loading hardware platform: discovery builtin:mdns-discovery not found
Error initializing instance: Error loading hardware platform: discovery builtin:mdns-discovery not found
discovery builtin:serial-discovery process not started: communication out of sync, expected âhelloâ, received âerrorâ
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xb53ae6]
goroutine 1 [running]:
github[dot]com/arduino/arduino-cli/cli/arguments.(*Port).GetPort(0x16560a0, 0xc000388ea0, 0x1f)
/home/build/cli/arguments/port.go:134 +0x5c6
github[dot]com/arduino/arduino-cli/cli/arguments.CalculateFQBNAndPort(0x16560a0, 0x0, 0xc0002a7c78, 0xc0000bd480)
/home/build/cli/arguments/fqbn.go:97 +0x193
github[dot]com/arduino/arduino-cli/cli/upload.runUploadCommand(0xc00037ef00, {0xc0002c62a0, 0x1, 0x7})
/home/build/cli/upload/upload.go:105 +0x23f
github[dot]com/spf13/cobra.(*Command).execute(0xc00037ef00, {0xc0002c6230, 0x7, 0x7})
/go/pkg/mod/github.com/spf13/cobra@v1.2.1/command.go:860 +0x5f8
github[dot]com/spf13/cobra.(*Command).ExecuteC(0xc000287180)
/go/pkg/mod/github.com/spf13/cobra@v1.2.1/command.go:974 +0x3bc
github[dot]com/spf13/cobra.(*Command).Execute(âŚ)
/go/pkg/mod/github.com/spf13/cobra@v1.2.1/command.go:902
main.main()
/home/build/main.go:31 +0x77
Firmware flash. Failed to upload to ttyACM5