Problem running code in release mode when NRF_LOG_BACKEND_UART_ENABLED and NRF_LOG are disabled

Hello,

I am having an issue with running my application in release mode. It will only run when NRF_LOG_ENABLED = 1 and NRF_LOG_BACKEND_UART_ENABLED = 1. I can run my debug configuration with both of these disabled. I would like to disable them as it reduces power consumption of my device. I can run the debugger in the release config and the device will advertise and i can connect to it but it doesn't work when i flash the hex file.

I've tried setting optimization level to 'none' for release build and I've tried disabling and enabling the logs and uart.

Any help with this is appreciated.

Thanks

Parents
  • Hi Jonathan, 
    Please let us know what issue you have when you disable the log ? 
    Could you debug, either using a debugger or using an GPIO to check where the code get to ? 

    For me it could be an HFCLK issue. (both UART and debugger will keep HFCLK running) so you may want to check how you keep/use the HFCLK. Please give more information about your application. 

Reply
  • Hi Jonathan, 
    Please let us know what issue you have when you disable the log ? 
    Could you debug, either using a debugger or using an GPIO to check where the code get to ? 

    For me it could be an HFCLK issue. (both UART and debugger will keep HFCLK running) so you may want to check how you keep/use the HFCLK. Please give more information about your application. 

Children
No Data
Related