Copyright © https://mongoose-os.com

Mongoose OS Forum

frame
ATTENTION! This forum has moved to:

https://community.mongoose-os.com

Do not post any new messages.

Problems upgrading firmware locally on CC3220 platform

When upgrading the firmware locally on my old CC3200 board I used the following script:

# Perform the update.
echo "Firmware update..."
curl -v -F file=@build/fw.zip -F commit_timeout=300 http://$1/update

# Give it 15 seconds to reboot.
echo "Waiting 15 seconds..."
sleep 15

# Perform the commit.
echo "Commiting..."
curl -v http://$1/update/commit

# Get boot state after commit.
echo "Check boot state..."
mos call --port ws://$1/rpc OTA.GetBootState

That doesn't work when trying to upgrade the firmware locally on my new CC3220-based board (or one of the CC3220-based TI Launchpads).

It seems that the OTA.GetBootState doesn't work.
mos --port ws://192.168.1.216/rpc call OTA.GetBootState
returns Error: remote error -1:

The command mos --port ws://192.168.1.216/rpc call RPC.List

returns the following list, so it seems the OTA.GetBootState is indeed there.

[
  "Wifi.Scan",
  "OTA.SetBootState",
  "OTA.GetBootState",
  "OTA.CreateSnapshot",
  "OTA.Revert",
  "OTA.Commit",
  "OTA.Update",
  "I2C.WriteRegW",
  "I2C.WriteRegB",
  "I2C.ReadRegW",
  "I2C.ReadRegB",
  "I2C.Write",
  "I2C.Read",
  "I2C.Scan",
  "GPIO.RemoveIntHandler",
  "GPIO.SetIntHandler",
  "GPIO.Toggle",
  "GPIO.Write",
  "GPIO.Read",
  "FS.Umount",
  "FS.Mount",
  "FS.Mkfs",
  "FS.Remove",
  "FS.Put",
  "FS.Get",
  "FS.ListExt",
  "FS.List",
  "Config.Save",
  "Config.Set",
  "Config.Get",
  "Sys.SetDebug",
  "Sys.GetInfo",
  "Sys.Reboot",
  "RPC.Ping",
  "RPC.Describe",
  "RPC.List"
]

Comments

  • ulsoulso Stockholm

    I also tried this with an ESP32 board, and there everything still works perfect. So, it can't be my development setup either. It must be something weird going on with the CC3220, either in the mos tool or the mongoose-os.

  • leongcyleongcy Singapore

    I am having the same issue here, OTA.GetBootState doesn't work. I am using CC3220SF TI LaunchPad.

    mos --port ws://192.168.1.3/rpc call OTA.GetBootState
    returns Error: remote error -1:

    Anyone managed to perform firmware upgrade on CC3220SF LaunchPad?

Sign In or Register to comment.