# m500 VOXL Flight sdk update to v1.1.x

Source: https://forum.modalai.com/topic/3068/m500-voxl-flight-sdk-update-to-v1-1-x
Category: VOXL SDK and Software (https://forum.modalai.com/category/47/voxl-sdk-and-software)
Tags: voxl-sdk
Posted: 2024-01-30 03:29:18 UTC by Darshit Desai
Replies: 25 · Views: 10244

## Darshit Desai · 2024-01-30 03:29:18 UTC

I just updated my m500 voxl flight sdk to v1.1.x. In the documentation it says to update the flight core separately. But the documentation redirects it to this webpage https://docs.modalai.com/flight-core-v2-firmware/ which only has instructions of upgrading flight core v2. I am a bit confused here what is the difference between flight core v2 and voxl flight and do I need to upgrade the flight core of voxl flight after the sdk upgrade?

## Reply by Moderator (ModalAI staff) · 2024-01-30 04:03:00 UTC

@Darshit-Desai You are correct, you should use Flight Core v1 instructions for the Flight Core portion of VOXL Flight.

https://docs.modalai.com/flight-core-firmware/#px4-v114

## Reply by Darshit Desai · 2024-01-30 04:33:21 UTC (in reply to Moderator)

@Moderator Is the update procedure the same as this one for v1.14 firmware?

https://docs.modalai.com/update-flight-core-firmware/#update-procedure

Also since I dont have the desired cable if I want to fallback to v0.9.5 I don't need to change anything in the firmware right?

Also when I try to go back v0.9.5 sdk and configure my qvio it always shows this error.
```BASH
/ # voxl-configure-qvio
Starting Wizard
 
Do you want to reset the config file to factory defaults?
1) yes
2) no
#? 1
wiping old config file
loading config file
Creating new config file: /etc/modalai/voxl-qvio-server.conf
 
Do you want to enable the voxl-qvio-server service to allow
visual inertial odometry?
1) yes
2) no
#? 1
 
Now we are going to do a preliminary configuration of /etc/modalai/voxl-qvio-server.conf
 
Which config voxl-qvio-server use?

imu0_tracking          for VOXL Flight all-in-one board, M500
imu1_tracking          for VOXL1 and VOXL-CAM, Seeker V1
imu_px4_tracking       for RB5 Flight 5G
imu_apps_tracking      for VOXL2, Sentinel
imu_apps_stereo_lower  for Starling V2 stereo version

1) imu0_tracking	  3) imu_px4_tracking	    5) imu_apps_stereo_lower
2) imu1_tracking	  4) imu_apps_tracking
#? 1
enabling  voxl-qvio-server systemd service
starting  voxl-qvio-server systemd service
Done configuring voxl-qvio-server
/ # voxl-inspect-qvio 
waiting for server

 dt(ms) |    T_imu_wrt_vio (m)   |Roll Pitch Yaw (deg)|features|quality| state| error_codes |
   30.2 |    0.00    0.00    0.00|   0.0   -0.0    0.0|     0  |   -1% | FAIL | IMU_MISSING STALLED ^C
received SIGINT Ctrl-C

closing and exiting
/ #
```

## Reply by Moderator (ModalAI staff) · 2024-01-30 15:13:43 UTC (in reply to Darshit Desai)

@Darshit-Desai your firmware should match what was used in the SDK, they are paired together

why would you go to SDK 0.9.5? It is really old and no longer supported

## Reply by Darshit Desai · 2024-01-30 17:30:54 UTC (in reply to Moderator)

@Moderator I don't have the usb-jst connector for the firmware update and I think 0.95 that was the original factory sdk version

## Reply by Darshit Desai · 2024-01-30 22:15:02 UTC (in reply to Darshit Desai)

@Moderator 

@Moderator said in [m500 VOXL Flight sdk update to v1\.1\.x](/post/14415):
> your firmware should match what was used in the SDK, they are paired together

What firmware matches the voxl-1 sdk 1.1.2 version

## Reply by Darshit Desai · 2024-01-30 22:37:49 UTC (in reply to Darshit Desai)

@Moderator I have got the cable for flight core update, I upgraded the sdk to 1.1.2 again but then I am following the instructions as shown in the below but nothing shows up in the firmware tab

https://docs.modalai.com/update-flight-core-firmware/#update-using-qgroundcontrol---mainline-builds

![944c8d72-c319-474a-8141-a5e41b310c75-image.png](https://forum.modalai.com/assets/uploads/files/1706654221738-944c8d72-c319-474a-8141-a5e41b310c75-image.png)

## Reply by tom (ModalAI staff) · 2024-01-30 22:45:04 UTC (in reply to Darshit Desai)

@Darshit-Desai The .px4 file is in the SDK release zip:

for FCv1: `voxl_SDK_1.1.2/flight-core/modalai_fc-v1_1.14.0-2.0.63.px4`

Follow the instructions here (ModalAI Build) with the above .px4 file: 

https://docs.modalai.com/update-flight-core-firmware/#update-using-qgroundcontrol---modalai-build

## Reply by Darshit Desai · 2024-01-30 22:48:03 UTC (in reply to tom)

@tom Yes but in the firmware page nothing shows up in QGC

@tom said in [m500 VOXL Flight sdk update to v1\.1\.x](/post/14426):
> https://docs.modalai.com/update-flight-core-firmware/#update-using-qgroundcontrol---modalai-build

## Reply by tom (ModalAI staff) · 2024-01-30 22:55:30 UTC (in reply to Darshit Desai)

@Darshit-Desai Did you unplug power and re-connect power while keeping USB attached?

## Reply by Darshit Desai · 2024-01-30 23:30:34 UTC (in reply to tom)

@tom I was able to finish the upgrade, but in QGC it shows something about actuators, when I open it opens the esc calibration related page, Do I need to calibrate esc again?

![7010e546-8d10-4fd0-ab00-f75e514611fc-image.png](https://forum.modalai.com/assets/uploads/files/1706657421831-7010e546-8d10-4fd0-ab00-f75e514611fc-image.png) 

![d038d013-92ff-4af5-b96e-6b71e8e685ad-image.png](https://forum.modalai.com/assets/uploads/files/1706657432448-d038d013-92ff-4af5-b96e-6b71e8e685ad-image.png)

Edit: I found this page (https://docs.modalai.com/modal-esc-px4-user-guide/) on ESCs and added the parameters accordingly, the only ones I don't know are the min and max RPM, I am using the voxl 1 m500 with holybro 2216-920kv motors. Also I don't think the motors rotate when I try to using the sliders

![e4a13997-c405-42af-a8a5-4b56e84ccb89-image.png](https://forum.modalai.com/assets/uploads/files/1706659202249-e4a13997-c405-42af-a8a5-4b56e84ccb89-image.png)

## Reply by tom (ModalAI staff) · 2024-01-31 18:14:15 UTC (in reply to Darshit Desai)

@Darshit-Desai ~~Can you try loading the FCv1 m500 params from here: https://gitlab.com/voxl-public/voxl-sdk/utilities/voxl-px4-params/-/blob/master/params/v1.14/platforms/M500_FCV1.param~~s

## Reply by Darshit Desai · 2024-01-31 18:24:36 UTC (in reply to tom)

@tom V1 or V2? Because when I flash firmware it detects v2

![6bee05a3-cd22-4d3d-b67e-858f5c631c3b-image.png](https://forum.modalai.com/assets/uploads/files/1706725475274-6bee05a3-cd22-4d3d-b67e-858f5c631c3b-image.png)

## Reply by tom (ModalAI staff) · 2024-01-31 18:26:40 UTC (in reply to Darshit Desai)

@Darshit-Desai Sorry yes v2 https://gitlab.com/voxl-public/voxl-sdk/utilities/voxl-px4-params/-/blob/master/params/v1.14/platforms/M500_FCV2.params

## Reply by tom (ModalAI staff) · 2024-01-31 18:30:49 UTC (in reply to tom)

@tom It's hard for me to follow which hardware you have, so whichever one you have v1 or v2

## Reply by Darshit Desai · 2024-01-31 18:33:33 UTC (in reply to tom)

@tom Yes I am also not sure what came with m500 I recently bought because the earlier ones had v1

Edit: The motor issue was resolved with this and I can spin the motors, I will have a flight with the propellers and confirm it

## Reply by Darshit Desai · 2024-01-31 18:41:07 UTC (in reply to Darshit Desai)

@tom On the next reboot it's showing esc failure in the logs

[13:38:12.651] Info: Kill-switch engaged
[13:38:13.768] Info: Kill-switch disengaged
[13:39:33.963] Info: Armed by RC
[13:39:34.096] Info: logging: opening log file sess114/log100.ulg
[13:39:34.296] Critical: Failsafe activated, triggering disarm
ESC failure
[13:39:34.296] Info: Disarmed by failsafe
[13:39:36.780] Info: Armed by RC
[13:39:36.781] Info: logging: opening log file sess114/log101.ulg
[13:39:37.131] Critical: Failsafe activated, triggering disarm
[13:39:37.131] Info: Disarmed by failsafe
[13:39:39.424] Info: Armed by RC
[13:39:39.465] Info: logging: opening log file sess114/log102.ulg
[13:39:39.787] Critical: Failsafe activated, triggering disarm
[13:39:39.787] Info: Disarmed by failsafe

And the motors try to spin up for a few seconds when arming and then instantly stop

When I move this sliders now the motors rotate but when I try to arm the drone using RC it shows the ESC failure error

![a646b685-77d0-4ba3-8d65-72af8e7870ae-image.png](https://forum.modalai.com/assets/uploads/files/1706727387278-a646b685-77d0-4ba3-8d65-72af8e7870ae-image.png)

## Reply by tom (ModalAI staff) · 2024-01-31 21:20:46 UTC (in reply to Darshit Desai)

@Darshit-Desai If you upload the px4 log someone on our team can analyze it

## Reply by Darshit Desai · 2024-01-31 21:31:15 UTC (in reply to tom)

@tom By px4 log you mean the one mentioned in the post earlier, How can I access the log file which is mentioned here in the QGC log?

@Darshit-Desai said in [m500 VOXL Flight sdk update to v1\.1\.x](/post/14462):
> [13:38:12.651] Info: Kill-switch engaged
> [13:38:13.768] Info: Kill-switch disengaged
> [13:39:33.963] Info: Armed by RC
> [13:39:34.096] Info: logging: opening log file sess114/log100.ulg
> [13:39:34.296] Critical: Failsafe activated, triggering disarm
> ESC failure
> [13:39:34.296] Info: Disarmed by failsafe
> [13:39:36.780] Info: Armed by RC
> [13:39:36.781] Info: logging: opening log file sess114/log101.ulg
> [13:39:37.131] Critical: Failsafe activated, triggering disarm
> [13:39:37.131] Info: Disarmed by failsafe
> [13:39:39.424] Info: Armed by RC
> [13:39:39.465] Info: logging: opening log file sess114/log102.ulg
> [13:39:39.787] Critical: Failsafe activated, triggering disarm
> [13:39:39.787] Info: Disarmed by failsafe

## Reply by tom (ModalAI staff) · 2024-01-31 22:02:21 UTC (in reply to Darshit Desai)

@Darshit-Desai The logs can be downloaded through QGroundControl: https://docs.px4.io/v1.11/en/getting_started/flight_reporting.html#downloading-logs-from-the-flight-controller

## Reply by Darshit Desai · 2024-01-31 23:40:38 UTC (in reply to tom)

@tom Here's the ulog file link,

https://drive.google.com/file/d/1vuy_Ut0h_rEZDWseDgeywE093CISo9RB/view?usp=sharing

## Reply by coreyazion · 2024-02-01 02:20:09 UTC (in reply to Darshit Desai)

@Darshit-Desai Our m500 also showed something needed to be done with the acutator after updgrade to 1.14. But after loading the [parameters](https://gitlab.com/voxl-public/voxl-sdk/utilities/voxl-px4-params/-/blob/master/params/v1.14/platforms/M500_FCV2.params?ref_type=heads) (assuming you are using fcv2) **and then reboot** and it is okay.

p.s. I vaguely rember having to do "loading parameters and rebooting" twice to get everything done. But I'm not very sure about this just I have this impression.

## Reply by Darshit Desai · 2024-02-01 23:54:21 UTC (in reply to coreyazion)

@coreyazion @tom  This didn't work for me, although the drone esc and the drone functionality overall does work on an older sdk and flight core params, so its the newer version that's causing bugs for me

## Reply by Darshit Desai · 2024-02-05 16:11:40 UTC (in reply to Darshit Desai)

@tom any updates on this?

## Reply by Darshit Desai · 2024-02-07 01:23:30 UTC (in reply to Darshit Desai)

@tom any update on this?

## Reply by Moderator (ModalAI staff) · 2024-02-07 03:08:36 UTC (in reply to Darshit Desai)

@Darshit-Desai Can you try the v1.13 PX4 for the Flight Core? https://docs.modalai.com/flight-core-v2-firmware/
