DA14583 SUOTA Second bootloader

12 posts / 0 new
Last post
Birenpeter.
Offline
Last seen:4年6个月前
加入:2015-03-25 07:41
DA14583 SUOTA Second bootloader

Hi all,
I am trying to realize OTA on DA14583,and generate fw_1.img,fw_2.img,multi_part.bin as the "AN-B-10" stated step by step.But,after I burning the

multi_part.bin into DA14583 internal flash. It does not advertise(Only burnning fw_1.bin or fw_2.bin,DA14583 works fine).I have enabled SPI_FLASH_SUPPORTED

&support_an_b_001在boot_loader.h中。烧焦闪光灯时,SmartSniper询问时尝试“是”和“否”。

For DA14583,What else need I do?

Device:
Birenpeter.
Offline
Last seen:4年6个月前
加入:2015-03-25 07:41
I have figured it out,because

I have figured it out,because the second bootloader project did not defeine the __DA14583__,so the SPI IO confiuer is not right!

May I request you to send the SUOTA source code for Andriod and IOS? I want to realize the OTA function in our app.thanks, may e-mail iskb502zjh@163.com.

MT_dialog
Offline
Last seen:2 months 4 weeks ago
Staff
加入:2015-06-08 11:34
Hi birenpeter,

Hi birenpeter,

Thanks for the indication, i can only send a mail to the registered email account and not to the one you are indicating, if your info are changed please correct your mail in your dialog account.

Thanks MT_dialog

Birenpeter.
Offline
Last seen:4年6个月前
加入:2015-03-25 07:41
The registered email is still

注册电子邮件仍在使用中,请发送到我的帐户电子邮件.Bye,请告诉我什么IDE和IDE版本用于开发App.thanks!

Mutahir(未经验证)
Hi,

Hi,

We are also trying to realize SUOTA in our device using 14583.
源代码是否可直接提供某处,或者您能寄给我应用程序侧的源代码吗?

谢谢,
Mutahir

MT_dialog
Offline
Last seen:2 months 4 weeks ago
Staff
加入:2015-06-08 11:34
Hi birenpeter,

Hi birenpeter,

一封邮件已发送到注册的电子邮件帐户,关于智能手机应用程序的IDE是Android和Xcode的IOS的IOS,用于IOS的IOS,我不认为这真的很重要,但它为1.5.1 for Android Studio亚博国际官网平台网址和7.3.1对于Xcode。

Thanks MT_dialog

Birenpeter.
Offline
Last seen:4年6个月前
加入:2015-03-25 07:41
Many thanks!

Many thanks!

Birenpeter.
Offline
Last seen:4年6个月前
加入:2015-03-25 07:41
Hi,

Hi,
I replied the E-mail with "I accept the terms and conditions of this SLA",but have not received the source code yet.Can you kindly help me to check what is wrong?

uta_lc
Offline
Last seen:1 year 1 month ago
加入:2016-05-03 07:39
Hi guys,

Hi guys,

I tried to use 14583 as well but cannot make it working with dual image mode so far - on pro kit.

My understanding is that if you use DA14583, given you want to user internal FLASH, you keep the Jumper J6 to the UART side, right? Otherwise I would think the external & internal SPI flash will have conflict?

The other question is the boot loader working mode, 14583 has already got boot loader burnt in OTP, so the secondary boot loader mentioned here must reside in the internal flash for 14583? Hence it is using the SUOTA scheme 1, i.e., using the following command to generate the multi_part.bin:

mkimage.exe多spi secondary_bootloader.bin fw_1.img 0x8000 fw_2.img 0x13000 0x1F000 multi_part.bin

here is the boot_loader.h
************** Encrypted Image Support section**************/
#define aes_encrypted_image_supported 1
#undef aes_encrypted_image_supported.

/************** UART Booter section**************/
#undef UART_SUPPORTED

/************** Flash memory section **************/
#define SPI_FLASH_SUPPORTED
#undef eeprom_flash_supported.

#if defined (SPI_FLASH_SUPPORTED ) && defined ( EEPROM_FLASH_SUPPORTED )
#error "Both SPI_FLASH_SUPPORTED and EEPROM_FLASH_SUPPORTED configuration flags are defined."
#endif

/************** AN-B-001 based image /fast bootloader section **************/
// Define it if
// if AN-B-001 based image is burned in SPI flash and the bootloader is running from the OTP
#undef SUPPORT_AN_B_001 //Enable it for the secondary bootloader
#define SUPPORT_AN_B_001 //Enable it for the secondary bootloader

// Define ALLOW_NO_HEADER to enable loading 0x7f00 bytes from memory offset 0
// in case no valid AN-B-001 header is found.
#define allow_no_header.

#if defined (SUPPORT_AN_B_001) && AES_ENCRYPTED_IMAGE_SUPPORTED == 1
#warning“二级引导加载程序不支持加密”
#endif
#define AN001_SPI_HEADER_SIZE 8
#define an001_spi_startcode_position 8.
#define an001_eeprom_header_size 8.
#define an001_eeprom_startcode_position 32.

竞标,我在UM-B-012的评论中疑惑,第10页,第3段:
“二级引导程序应用程序被配置为通过拒绝通过双重图像模式操作
option SUPPORT_AN_B_001 in the header file bootloader.h."
We are using dual image mode here and trying to define SUPPORT_AN_B_001, is it something wrong?

谢谢,
uta_lc

MT_dialog
Offline
Last seen:2 months 4 weeks ago
Staff
加入:2015-06-08 11:34
嗨Uta_lc,

嗨Uta_lc,

The SUOTA application on the 583 uses the internal flash and the pins for the external flash are tottally different (P20/P23/P24/P29 and the external is P00/P03/P05/P06). Regarding the bootloader, you are right, the secondary bootloader should reside in the FLASH. The secondary bootloader should have the define __14583__ in order for the pins to be set correctly and if you are using encryption you should use the appropriate command in order to encrypt your image when creating it, please check the secondary bootloader document UM-B-012 in appendix A to see how to use the mkimage with encryption. The secondary bootloader as is, has the SUPPORT_AN_B_001 definition undefined so it operates as a dual image bootloader for the SUOTA why you want to define it since you want to use dual image functionallity?

Thanks MT_dialog

uta_lc
Offline
Last seen:1 year 1 month ago
加入:2016-05-03 07:39
谢谢mt的反馈。

谢谢mt的反馈。

Yes, by using the "#undef SUPPORT_AN_B__001" line I got it working.

As to why I tried to define the "SUPPORT_AN_B__001", see the first post of this thread "I have enabled SPI_FLASH_SUPPORTED & SUPPORT_AN_B_001 in the boot_loader.h.". and the whole context gave me the impression that I need to define the macro.

MT_dialog
Offline
Last seen:2 months 4 weeks ago
Staff
加入:2015-06-08 11:34
嗨Uta_lc,

嗨Uta_lc,

只需澄清,您可以拥有support_an_b_001或双重映像引导,您不能拥有它们,因为通过支持AN_B_001,引导加载程序将搜索FW中的引导标题,不会转到产品标题搜索活动FW。

Thanks MT_dialog