Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TMO Shell: Fix DFU and update URL after directory changes. #142

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions dfu_gecko/dfu_gecko_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,25 +31,25 @@ const struct dfu_file_t dfu_files_mcu[] = {
{
"Gecko MCU 1/4",
"/tmo/zephyr.slot0.bin",
"tmo_shell.tmo_dev_edge.slot0.bin",
"tmo_shell/pg12b/latest/tmo_shell.tmo_dev_edge.slot0.bin",
{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }
},
{
"Gecko MCU 2/4",
"/tmo/zephyr.slot1.bin",
"tmo_shell.tmo_dev_edge.slot1.bin",
"tmo_shell/pg12b/latest/tmo_shell.tmo_dev_edge.slot1.bin",
{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }
},
{
"Gecko MCU 3/4",
"/tmo/zephyr.slot0.bin.sha1",
"tmo_shell.tmo_dev_edge.slot0.bin.sha1",
"tmo_shell/pg12b/latest/tmo_shell.tmo_dev_edge.slot0.bin.sha1",
{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }
},
{
"Gecko MCU 4/4",
"/tmo/zephyr.slot1.bin.sha1",
"tmo_shell.tmo_dev_edge.slot1.bin.sha1",
"tmo_shell/pg12b/latest/tmo_shell.tmo_dev_edge.slot1.bin.sha1",
{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }
},

Expand Down
2 changes: 1 addition & 1 deletion samples/tmo_shell/src/tmo_dfu_download.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ struct fs_dirent* my_finfo;
static char base_url_s[MAX_BASE_URL_LEN];
static char user_base_url_s[MAX_BASE_URL_LEN] =
"https://raw.githubusercontent.com/tmobile/DevEdge"
"-IoTDevKit-Binaries/main/tmo/tmo_shell/silabs_pg12b/";
"-IoTDevKit-Binaries/main/";
static char dfu_auth_key[42];

static int iface_s = WIFI_ID; // Default iface is wifi
Expand Down
2 changes: 1 addition & 1 deletion samples/tmo_shell/src/tmo_shell.c
Original file line number Diff line number Diff line change
Expand Up @@ -1805,7 +1805,7 @@ int cmd_dfu_download(const struct shell *shell, size_t argc, char **argv)
}

if (argc <= 2 && target == 2) { // have wifi
return tmo_dfu_download(shell, target, "rs9116w/RS9116W.2.7.0.0.39", argv[3]);
return tmo_dfu_download(shell, target, "rs9116w/RS9116W.2.7.1.0.8", argv[3]);
}

#ifndef BOOT_SLOT
Expand Down