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!
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
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.
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