How to add the SUOTA build configuration?

⚠️
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.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
4 posts / 0 new
Last post
yingfen
Offline
Last seen:1 year 3 months ago
加入:2019-08-07 00:10
How to add the SUOTA build configuration?

Hi,

I want to use the SUOTA feature on my project. But my project does not include relevant build configuration (screenshot attached)

https://user-images.githubusercontent.com/32470088/65524792-0a4feb00-deb...

I don't find any related manual about how to include a new build configuration. So I try to import it from pxp_reporter, as the demo for SUOTA. (screenshot attached)

https://user-images.githubusercontent.com/32470088/65525274-df19cb80-deb...

But it does not work. Using this configuration, it jumps out an error:

D:/Documents/DiaSemi_Workspace/sdk/bsp/startup/config.c:468:3: error: #error "Production mode build: Please define an appropriate code location!"

What's the possible reason for it? And how I can include other build configurations properly? Thanks!

Device:
PM_Dialog
Offline
Last seen:8 hours 24 min ago
工作人员
加入:2018-02-08 11:03
Hi yingfen,

Hi yingfen,

Please read section 9.1.5 Performing SUOTA upgrade using a mobile phone fromUM-B-056: DA1468x Software Developer's Guidein order to find steps for SUOTA functionality. If the dg_configIMAGE_SETUP is set to PRODUCTION_MODE, this error will be occurred. In development the dg_configIMAGE_SETUP should be set as DEVELOPMENT_MODE.

Thanks, PM_Dialog

yingfen
Offline
Last seen:1 year 3 months ago
加入:2019-08-07 00:10
Thanks! I've set it in custom

Thanks! I've set it in custom_config_qspi.h, but seems by default it recognizes custom_config_qspi_suota.h. I put the config in custom_config_qspi_suota.h and now it works.

PM_Dialog
Offline
Last seen:8 hours 24 min ago
工作人员
加入:2018-02-08 11:03
Hi yingfen,

Hi yingfen,

是的,在SUOTA,所有的成本m configurations should be placed on custom_config_qspi_suota.h header file. Thanks for accepting my answer and glad that it is working.

Thanks, PM_Dialog