This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

nRF52840 and P0.24 output blinking on a PCA10056 board

Dear Team,

I'm using a custom board to test a radio module based on the nRF52840 chip, in this board the P0.24 pin is tied to a led that blink during the execution of an SAADC example written for the PCA10056 board. It is possible to know where I can found the led/button settings table for such board inside the SAADC example? There are plenty of function to follow but I need to found where this led is practically driven to understand the right purpose.

Thanks and best regards.

F.

Parents
  • Maybe the device tree that you're using can give you some more insights?

    And otherwise, check the hardware schematics of the board on which your custom board is based. What is connected to P0.24 of the reference board? Maybe it's just the UART TX pin, transmitting logs?

  • Dear Sebastiaan,

    thanks for your answer, I've followed in deep all the code and now I well understand how the framework work so I've solved just some minutes ago the trouble.

    It was simple, inside the configuration file pca10056.h there are definitions about physical leds and buttons lines.

    Inside the bsp_btn_ble.c module there are the function responsible to manage the buttons.

    About the led and the P0.24 line this is related to the LED_1 inside the LEDS_LIST and is also managed by the on_adv_evt() handler by the bsp_indication_set(BSP_INDICATE_ADVERTISING); function, follow the code inside the bsp.c module take to the bsp_led_indication() function that is where the led are configured to indicate required state.

    Thanks!

    F.

Reply
  • Dear Sebastiaan,

    thanks for your answer, I've followed in deep all the code and now I well understand how the framework work so I've solved just some minutes ago the trouble.

    It was simple, inside the configuration file pca10056.h there are definitions about physical leds and buttons lines.

    Inside the bsp_btn_ble.c module there are the function responsible to manage the buttons.

    About the led and the P0.24 line this is related to the LED_1 inside the LEDS_LIST and is also managed by the on_adv_evt() handler by the bsp_indication_set(BSP_INDICATE_ADVERTISING); function, follow the code inside the bsp.c module take to the bsp_led_indication() function that is where the led are configured to indicate required state.

    Thanks!

    F.

Children
No Data
Related