This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF9160 DK board controller SourceCode

Dear, 

I am using nrf9160 DK, we can download hex fiel for boardcontroller 

nRF9160 DK board controller firmware 

https://www.nordicsemi.com/Software-and-Tools/Development-Kits/nRF9160-DK/Download#infotabs

nRF9160_DK_board_controller_FW.hex 

It will be programmed for nRF52 to control nRF9160 DK board

Can you share the source code?

Thanks, 

Regards, 

hng

  • Hi,

    The board controller fw is currently not available in source code. But as mentioned at this link, it's possible to route some pins differently from what is done in the preprogrammed firmware.

  • Dear Sigurd, 

    For example: the LED1234  control 

    the info from the backside of nrf9160 DK pcb

    GPIO  Function
    P0.02 LED 1
    P0.03 LED 2
    P0.04 LED 3
    P0.05 LED 4
    P0.06 Button 1
    P0.07 Button 2
    P0.08 Button 3
    P0.09 Button 4
    P0.26 CTS
    P0.27 RTS
    P0.28 RxD
    P0.29 TxD

    On the schematic, Switches are used for selection 

    example: pin P0.02 (from nRF91) will select LED1 or D2 (P0.02 on the PCB-P14), and the control pin nRF52_P1.05 (from nRF52)

    So, we need one program for nRF52 to control for GPIO: 

    nRF9160_DK_board_controller_FW.hex 

    Currently, the pin P0.02 will connect LED1 so pin D2 (P0.02 on the PCB-P14) is floating

    Do we have any option ( for example :  CONFIG_GPIO=y in  prj.conf ) to enable pin D2  (P0.02 on the PCB-P14) ?

    then I can use it as normal gpio 

    regards, 

    thanks

    hng

  • The nRF9160 DK User Guide v0.7.2 states: «Configurable code examples for the nRF52840 allowing to change the board routing can be found in the nRF Connect SDK».

    I've looked in the applications and samples folder, but I can't find it. Is it still not available? Is there a trace on the PCB I can cut to use P0.02-P0.09 from the pin headers?

  • Hi gregers,

    Take a look at this post. It covers routing UART pins, but the same method is used for the LEDs and buttons. The board controller can be found here. (it's included when you build e.g. hello_world sample for target nrf52840_pca10090, and configurable with kconfig/menuconfig)

Related