BLE_APP_UART does not work when add twi_sensor

Hello everyone, currently I am writing a program to read the SCD41(I2C) sensor and then use BLE to transmit information. With a separate program in twi_sensor, I see that the sensor is working, then I add the necessary files and edit a few files like sdk_config, add nrf_twi.c. Finally, when building, everything says completed.

However, I discovered a problem: the advertising part doesn't seem to work (the light on the board doesn't flash and when using nrf connect on the phone, it doesn't find device name to connect). Then I tried using the ble_app_uart file (without the sensor), I added a line of code printf("Hello") and I realized the same situation, the advertising part also didn't work although all reported a successful build.

Hope everyone can help me?

Parents
  • Hi

    Jonathan asked me if I could take a look at this case as he's busy with a few other things. Your logging here seems to be returning error message 3. I'm not able to find what this error message regturns, but if you're using the nRF driver errors from nrf_error.h in the nRF5 SDK, it is an internal error. What pins on the nRF52840 are you using for serial here, as incorrect pin configs I think could result in this internal error.

    Best regards,

    Simon

Reply
  • Hi

    Jonathan asked me if I could take a look at this case as he's busy with a few other things. Your logging here seems to be returning error message 3. I'm not able to find what this error message regturns, but if you're using the nRF driver errors from nrf_error.h in the nRF5 SDK, it is an internal error. What pins on the nRF52840 are you using for serial here, as incorrect pin configs I think could result in this internal error.

    Best regards,

    Simon

Children
No Data
Related