Newly installed SUOTA app (Android) does not flash new firmware correctly.

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
12 posts / 0 new
Last post
Myken
Offline
Last seen:1 year 9 months ago
加入:2016-07-13 20:06
Newly installed SUOTA app (Android) does not flash new firmware correctly.

Hello,

我有一个工作系统,我可以上传新的固件到我们的设备(DA14680)使用SUOTA应用程序(从谷歌播放商店)。

然而,我安装了一个新的设备上的应用程序(旧的不再可用),现在它可以上传,但新的固件似乎没有正确的闪存。

In the SUOTA APP I can find my device, it connects. after I do "UPDATE DEVICE" and select a image I see the following settings.

SPI selected
MISO GPIO ==> P0_5
莫西人GPIO = = > P0_6
CS GPIO==>P0\U 3
SCK GPIO ==> P0_0
图像库==>0
块大小==>240

I'm not sure these settings are correct for my device (DA14680), can't find anywhere what they should be.

在“发送到设备”之后,我得到:

Enable SPOTA_SERV_STATUS notifications
Firmware CRC: 0x82
Upload size: 117493 bytes
Chunk size: 244 bytes
设置SPOTA\u MEM\u DEV:0x13000000
设置SPOTA\u GPIO\u MAP:0x05060300
设置SPOTA\u PATCH\u LENGTH:244
Update procedure started
设置SPOTA\u PATCH\u LENGTH:129
发送索塔结束命令
Upload completed
运行时间:30.279秒

然后出现一个对话框窗口:Upload completed->Reboot device?->好的

The reboot occurs but using the old firmware.

SUOTA APP version 3.190.14

有什么建议吗?谢谢。

关键词:
设备:
PM_Dialog
Offline
Last seen:1 day 8 hours ago
Staff
加入:2018-02-08 11:03
嗨,麦肯,

嗨,麦肯,

您能指出您正在使用的设备的完整版本吗?是DA14680-01吗?另外,您使用哪个SDK版本?只有DA1458x设备才需要具有SPI配置的屏幕。对于DA1468x,只需按发送到设备,因为此处的任何值都不起作用。此外,请确保第9节“软件升级”中描述的步骤UM-B-056:DA1468x软件开发人员指南have been followed.

Thanks, PM_Dialog

Myken
Offline
Last seen:1 year 9 months ago
加入:2016-07-13 20:06
Hi,

Hi,

我们使用的设备确实是DA14681\U 01
As SDK we use DA1468x_DA15xxx_SDK_1.0.12.1078

Nothing changed in our set-up. I only reinstalled the SUOTA APP.

我们能够在新设备上安装软件,如“9.1.5使用手机执行SUOTA升级”第9项所述。
But after that we are unable to update through the phone/tablet. All seams fine including the reboot ...
It worked perfectly before. We have tried different phones and tablets same result.

PM_Dialog
Offline
Last seen:1 day 8 hours ago
Staff
加入:2018-02-08 11:03
嗨,麦肯,

嗨,麦肯,

The SDK1.0.12 is an old SDK version and it is not currently supported. To do so, I would strongly recommend you to move into our latest SDK for DA1468x products which is SDK1.0.14. You can download it from our support website. Please, try it with the latest SDK and let me know if you still have the same issue.

Thanks, PM_Dialog

Myken
Offline
Last seen:1 year 9 months ago
加入:2016-07-13 20:06
Hello,

Hello,
已更新到sdk1.0.14.1081,与预期一样仍然存在相同的问题。
有办法调试这个吗?应用程序有调试模式吗?有没有可能降级SUOTA应用程序(更新后出现问题)?
对于一些设备,问题是相同的。
谢谢。

PM_Dialog
Offline
Last seen:1 day 8 hours ago
Staff
加入:2018-02-08 11:03
嗨,麦肯,

嗨,麦肯,

No, there isn’t debug mode in the mobile application. I tried in my side, but I am not able to replicate you issue, so can you please provide more inputs for what you did? Did you follow the tutorial?

Thanks, PM_Dialog

Myken
Offline
Last seen:1 year 9 months ago
加入:2016-07-13 20:06
请帮助我理解

请帮助我理解problem:
If I have a working system to generate a suota image, using SDK version X and tool-chain Y and download that with SUOTA APP version A to get a working image on my device. Then if I install a new version SUOTA APP (B or C) on a new phone/tablet (we tried both) and generate an image using SDK version X and tool-chain Y it should still work, right?

另一方面,SUOTA应用程序(最新版本)执行预期的操作,下载图像并重置设备(没有错误)。

我确实遵循了教程,但有一个例外,我在Linux机器上,所以对于每个脚本,我都使用*\u Linux变体。
So yes I did follow the tutorial (9.1.5 Performing SUOTA upgrade using a mobile phone) step-by-step, no errors. After step 9 I have a new working image in my device.
The rest of the tutorial also works great, no problems.
Only thing is the new (OTA) image doesn't boot, after step 15. For every new image I change the MAC address, that's how I check which image is active.

仅供参考:现场有几个设备,我无法执行步骤9。

如果我正确理解了第9.1.3段,唯一可能出错的地方就是引导加载程序,如果它检测到一个无效的新映像,它将不会将映像复制到执行分区。
How do I verify that (or fix that). And what does the SUOTA APP do in this scenario (problems occur after updating the APP)?

谢谢。

Myken
Offline
Last seen:1 year 9 months ago
加入:2016-07-13 20:06
如果我这样做了:

如果我这样做了:

cli_programmer /dev/ttyUSB0 read_partition_table

我得到:

Connecting to device... Sector size: 4096 bytes start #sectors offset size id name 0x00 0x1e 0x000000 0x1e000 0x01 NVMS_FIRMWARE_PART 0x1e 0x01 0x01e000 0x01000 0x13 NVMS_PRODUCT_HEADER_PART 0x1f 0x01 0x01f000 0x01000 0x14 NVMS_IMAGE_HEADER_PART 0x20 0x50 0x020000 0x50000 0x11 NVMS_FW_EXEC_PART 0x70 0x0d 0x070000 0x0d000 0x04 NVMS_LOG_PART 0x7d 0x02 0x07d000 0x02000 0x0f NVMS_PLATFORM_PARAMS_PART 0x7f 0x01 0x07f000 0x01000 0x10 NVMS_PARTITION_TABLE 0x80 0x10 0x080000 0x10000 0x02 NVMS_PARAM_PART 0x90 0x51 0x090000 0x51000 0x12 NVMS_FW_UPDATE_PART 0xe1 0x1f 0x0e1000 0x1f000 0x05 NVMS_GENERIC_PART done.
Myken
Offline
Last seen:1 year 9 months ago
加入:2016-07-13 20:06
Some how I managed to get it

Some how I managed to get it working on a new device (basically by repeating step 9). So I can program a new device and produce a valid SUOTA image which I can upload (on a new device).
The problem remains I can not upload a new SUOTA image to the devices in the field.
有没有一种方法可以在没有物理连接的情况下重置字段中设备上的分区表(因此引导加载程序生成一个新的分区表)?

PM_Dialog
Offline
Last seen:1 day 8 hours ago
Staff
加入:2018-02-08 11:03
嗨,麦肯,

嗨,麦肯,

您提到某些设备无法执行步骤9。是否有任何错误?你能给我发张截图吗?您使用的是哪个SDK示例?

Thanks, PM_Dialog

Myken
Offline
Last seen:1 year 9 months ago
加入:2016-07-13 20:06
Hi,

Hi,

Step 9 basically requires a wired connection (jtag or uart) to run the scripts. The some devices are all the devices we have in the field. The application is a wearable and they are casted/moulded, so I can't attach wires anymore. But I do need to update the software of these devices.
我用来启动这个项目的SDK示例(1年前)是projects>dk\u apps>features>ble\u peripheral。

Mind you, the over-the-air -update worked fine in the beginning.

谢谢。

PM_Dialog
Offline
Last seen:1 day 8 hours ago
Staff
加入:2018-02-08 11:03
嗨,麦肯,

嗨,麦肯,

你能请到p吗erform SUOTA with the PXP reporter application of the SDK?

Thanks, PM_Dialog