NRF5 SDK Makefile flags during the development

Hi Team,

In SES, there are two builds debug and release. While in the armgcc Makefile there is just one type of build.

The one from the example looks like optimize for release -O3. I'm wondering what are the flags I should enable

to maximize (debugging info) during the development/debugging phase.

I have these switches flags turned on:

OPT = -O0 -g3

CFLAGS += -DDEBUG

Are there more flags I should turn on during the BLE development using softdevice?

Thanks.

Parents
  • While I'm trying to integrate the DFU buttonless service, I found an article from this forum suggested to turn these options on:

    NRF_LOG_BACKEND_RTT_ENABLED 1
    NRF_LOG_ENABLED 1
    NRF_LOG_DEFAULT_LEVEL 4
    NRF_SDH_BLE_LOG_ENABLED 1
    NRF_SDH_BLE_LOG_LEVEL 4
    NRF_SDH_LOG_ENABLED 1
    NRF_SDH_LOG_LEVEL 4

    They are super useful. I wonder if I'm missing some other switches that I should turn on. Thanks.

Reply
  • While I'm trying to integrate the DFU buttonless service, I found an article from this forum suggested to turn these options on:

    NRF_LOG_BACKEND_RTT_ENABLED 1
    NRF_LOG_ENABLED 1
    NRF_LOG_DEFAULT_LEVEL 4
    NRF_SDH_BLE_LOG_ENABLED 1
    NRF_SDH_BLE_LOG_LEVEL 4
    NRF_SDH_LOG_ENABLED 1
    NRF_SDH_LOG_LEVEL 4

    They are super useful. I wonder if I'm missing some other switches that I should turn on. Thanks.

Children
No Data
Related