Hello there,
I'm working with the PXP-Reporter-demo (with SUOTA enabled) and currently experiencing some strange behaviour.
We've implemented a new GATT-Service; it works as expected when the Controller is running in debug-mode. However, in normal operation, the controller is unable to process our GATT-service properly and crashes.
Do you know if there are differences between running the controller in debug vs. normal operation?
Also, it seems to me that it doesn't matter whether I compile the Project as release or debug, or if I define dg_configIMAGE_SETUP as PRODUCTION_MODE or DEVELOPMENT_MODE. Is there some documentation that elaborates the differences?
Thank you very much in advance
Philipp
Device:
Hi dsandbue,
Can you please let me know what exactly you mean by debug mode ? You mean that you build the project in Debug and Release and you see differences ?
If that is what you mean, if there are differences in Debug build configurations or Release build configuration, yes there are, the actual code generated from the GCC is larger not optimized and includes extra debugging information.
Regarding the value in the dg_configIMAGE_SETUP the PRODUCTION_MODE and DEVELOPMENT_MODE is just 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.
Thanks MT_dialog