How to add the SUOTA build configuration?

4 posts / 0 new
Last post
yingfen
Offline
Last seen: 21 hours 43 min ago
Joined: 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 50 min ago
Staff
Joined: 2018-02-08 11:03
Hi yingfen,

Hi yingfen,

Please read section 9.1.5 Performing SUOTA upgrade using a mobile phone from UM-B-056: DA1468x Software Developer's Guide in 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: 21 hours 43 min ago
Joined: 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 50 min ago
Staff
Joined: 2018-02-08 11:03
Hi yingfen,

Hi yingfen,

Yes, in case of SUOTA, all the custom 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