Different behaviour between Debugging and normal operation

⚠️
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.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
2 posts / 0 new
Last post
dsandbue
Offline
Last seen:1年9个月s ago
加入:2017-02-15 14:09
Different behaviour between Debugging and normal operation

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:
MT_dialog
Offline
Last seen:2 months 1 week ago
工作人员
加入:2015-06-08 11:34
Hi dsandbue,

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