:/DA1468x_DA15xxx_SDK_1.0.14.1081/sdk/bsp/startup/startup_ARMCM0.S:38:2: error: #warning "Building Production image with MAGIC V

6 posts / 0 new
Last post
mahmed106
Offline
Last seen:1 month 2 weeks ago
加入:2019-05-03所
:/DA1468x_DA15xxx_SDK_1.0.14.1081/sdk/bsp/startup/startup_ARMCM0.S:38:2: error: #warning "Building Production image with MAGIC V

I am building my project but i am getting this error. I can't understand the meaning of this. Can someone explain it to me what i did wrong.

:/DA1468x_DA15xxx_SDK_1.0.14.1081/sdk/bsp/startup/startup_ARMCM0.S:38:2: error: #warning "Building Production image with MAGIC Value check enabled! Possible security risk..." [-Werror=cpp]
#warning "Building Production image with MAGIC Value check enabled! Possible security risk..."
^
cc1.exe: all warnings being treated as errors
make: *** [startup/startup_ARMCM0.o] Error 1

Keywords:
Device:
PM_Dialog
Offline
Last seen:53 min 50 sec ago
工作人员
加入:2018-02-08 11:03
Hi mahmed106,

Hi mahmed106,

Could you please indicate which project of the SDK you are trying to build and if you have down any modifications?

Thanks, PM_Dialog

mahmed106
Offline
Last seen:1 month 2 weeks ago
加入:2019-05-03所
SDK_1.0.14.1081

SDK_1.0.14.1081

Project Pxp Reporter

PM_Dialog
Offline
Last seen:53 min 50 sec ago
工作人员
加入:2018-02-08 11:03
Hi mahmed106,

Hi mahmed106,

你运行pxp_reporter in Development or in Production mode? Which is the value of the dg_configIMAGE_SETUP macro? Is it defined in the custom_config_qspi.h ? Regarding the value in the dg_configIMAGE_SETUP the PRODUCTION_MODE and DEVELOPMENT_MODE is to eliminate the warning assertions during the production mode. In the code there are scattered some warnings in order to notify the developer if something goes wrong or something is suspicious, if the dg_configIMAGE_SETUP is set to PRODUCTION_MODE those assertions are eliminated, and the code doesn't assert when those conditions occur. Please check startup_

Thanks, PM_Dialog

mahmed106
Offline
Last seen:1 month 2 weeks ago
加入:2019-05-03所
I am using dg_configIMAGE

I am using dg_configIMAGE_SETUP in PRODUCTION_MODE.

"Building Production image with MAGIC Value check enabled! Possible security risk" . This error only comes in production mode not in development mode.

PM_Dialog
Offline
Last seen:53 min 50 sec ago
工作人员
加入:2018-02-08 11:03
Hi mahmed106

Hi mahmed106

It is the recommended this check and set the dg_configSKIP_MAGIC_CHECK_AT_START macro to 1. The check at the beginning is for development mainly to verify there is nothing wrong with the startup. In final product supposed there are no such issues.

Thanks, PM_Dialog