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,

我有一个工作系统,我能够使用Suota App(从Google Play Store)上传到我们的设备(DA14680)上传新固件。

但是,我在新设备上安装了应用程序(旧的设备不再可用),现在我可以上传的接缝,但新固件不会似乎无法正确闪烁。

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_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
set spota_mem_dev:0x13000000
set spota_gpio_map:0x05060300
set spota_patch_length:244
Update procedure started
set spota_patch_length:129
发送Suota End命令
Upload completed
经过时间:30.279秒

然后一个对话框窗口:上传已完成 - >重启设备?- >好的

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
嗨myken,

嗨myken,

您能否注明您正在使用的设备的完整版本?它是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_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使用手机”项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
嗨myken,

嗨myken,

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,
更新到SDK 1.0.14.1081,正如预期的那样仍然存在相同的问题。
有没有办法调试这件事?该应用程序是否有调试模式?是否有可能降级Suota应用程序(更新后问题)?
多个设备的问题是相同的。
谢谢。

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

嗨myken,

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 App(最新版本)是假设要做的,下载图像并重置设备(没有错误)。

我确实遵循一个例外的教程,我在一个Linux机器上,所以对于我使用* _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.

FYI:我们在该字段中有几个设备,我无法执行步骤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
嗨myken,

嗨myken,

您提到有些设备无法执行步骤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年前)是项目> DK_APPS>功能> BLE_PERITELAL。

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
嗨myken,

嗨myken,

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

Thanks, PM_Dialog