index.rst 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. .. _dalzentwo_nrf9151:
  2. DalzenTwo
  3. ##########
  4. Overview
  5. ********
  6. The nRF9151 DK (PCA10171) is a single-board development kit for evaluation and
  7. development on the nRF9151 SiP for DECT NR+ and LTE-M/NB-IoT with GNSS. The ``nrf9151dk/nrf9151``
  8. board configuration provides support for the Nordic Semiconductor nRF9151 ARM
  9. Cortex-M33F CPU with ARMv8-M Security Extension and the following devices:
  10. * :abbr:`ADC (Analog to Digital Converter)`
  11. * CLOCK
  12. * FLASH
  13. * :abbr:`GPIO (General Purpose Input Output)`
  14. * :abbr:`I2C (Inter-Integrated Circuit)`
  15. * :abbr:`MPU (Memory Protection Unit)`
  16. * :abbr:`NVIC (Nested Vectored Interrupt Controller)`
  17. * :abbr:`PWM (Pulse Width Modulation)`
  18. * :abbr:`RTC (nRF RTC System Clock)`
  19. * Segger RTT (RTT Console)
  20. * :abbr:`SPI (Serial Peripheral Interface)`
  21. * :abbr:`UARTE (Universal asynchronous receiver-transmitter with EasyDMA)`
  22. * :abbr:`WDT (Watchdog Timer)`
  23. * :abbr:`IDAU (Implementation Defined Attribution Unit)`
  24. More information about the board can be found at the `nRF9151 website`_.
  25. Hardware
  26. ********
  27. nRF9151 DK has two external oscillators. The frequency of
  28. the slow clock is 32.768 kHz. The frequency of the main clock
  29. is 32 MHz.
  30. Supported Features
  31. ==================
  32. The ``nrf9151dk/nrf9151`` board configuration supports the following
  33. hardware features:
  34. +-----------+------------+----------------------+
  35. | Interface | Controller | Driver/Component |
  36. +===========+============+======================+
  37. | ADC | on-chip | adc |
  38. +-----------+------------+----------------------+
  39. | CLOCK | on-chip | clock_control |
  40. +-----------+------------+----------------------+
  41. | FLASH | on-chip | flash |
  42. +-----------+------------+----------------------+
  43. | FLASH | external | spi |
  44. +-----------+------------+----------------------+
  45. | GPIO | on-chip | gpio |
  46. +-----------+------------+----------------------+
  47. | GPIO | external | i2c |
  48. +-----------+------------+----------------------+
  49. | I2C(M) | on-chip | i2c |
  50. +-----------+------------+----------------------+
  51. | MPU | on-chip | arch/arm |
  52. +-----------+------------+----------------------+
  53. | NVIC | on-chip | arch/arm |
  54. +-----------+------------+----------------------+
  55. | PWM | on-chip | pwm |
  56. +-----------+------------+----------------------+
  57. | RTC | on-chip | system clock |
  58. +-----------+------------+----------------------+
  59. | RTT | nRF53 | console |
  60. +-----------+------------+----------------------+
  61. | SPI(M/S) | on-chip | spi |
  62. +-----------+------------+----------------------+
  63. | SPU | on-chip | system protection |
  64. +-----------+------------+----------------------+
  65. | UARTE | on-chip | serial |
  66. +-----------+------------+----------------------+
  67. | WDT | on-chip | watchdog |
  68. +-----------+------------+----------------------+
  69. .. _nrf9151dk_additional_hardware:
  70. Other hardware features have not been enabled yet for this board.
  71. See the `nRF9151 website`_ for more information.
  72. Connections and IOs
  73. ===================
  74. LED
  75. ---
  76. * LED1 (green) = P0.0
  77. * LED2 (green) = P0.1
  78. * LED3 (green) = P0.4
  79. * LED4 (green) = P0.5
  80. Push buttons and Switches
  81. -------------------------
  82. * BUTTON1 = P0.8
  83. * BUTTON2 = P0.9
  84. * SWITCH1 = P0.18
  85. * SWITCH2 = P0.19
  86. * BOOT = SW5 = boot/reset
  87. Security components
  88. ===================
  89. - Implementation Defined Attribution Unit (`IDAU`_). The IDAU is implemented
  90. with the System Protection Unit and is used to define secure and non-secure
  91. memory maps. By default, all of the memory space (Flash, SRAM, and
  92. peripheral address space) is defined to be secure accessible only.
  93. - Secure boot.
  94. Programming and Debugging
  95. *************************
  96. ``nrf9151dk/nrf9151`` supports the Armv8m Security Extension, and by default boots
  97. in the Secure state.
  98. Building Secure/Non-Secure Zephyr applications with Arm |reg| TrustZone |reg|
  99. =============================================================================
  100. The process requires the following steps:
  101. 1. Build the Secure Zephyr application using ``-DBOARD=nrf9151dk/nrf9151`` and
  102. ``CONFIG_TRUSTED_EXECUTION_SECURE=y`` in the application project configuration file.
  103. 2. Build the Non-Secure Zephyr application using ``-DBOARD=nrf9151dk/nrf9151/ns``.
  104. 3. Merge the two binaries together.
  105. When building a Secure/Non-Secure application, the Secure application will
  106. have to set the IDAU (SPU) configuration to allow Non-Secure access to all
  107. CPU resources utilized by the Non-Secure application firmware. SPU
  108. configuration shall take place before jumping to the Non-Secure application.
  109. Building a Secure only application
  110. ==================================
  111. Build the Zephyr app in the usual way (see :ref:`build_an_application`
  112. and :ref:`application_run`), using ``-DBOARD=nrf9151dk/nrf9151``.
  113. Flashing
  114. ========
  115. Follow the instructions in the :ref:`nordic_segger` page to install
  116. and configure all the necessary software. Further information can be
  117. found in :ref:`nordic_segger_flashing`. Then build and flash
  118. applications as usual (see :ref:`build_an_application` and
  119. :ref:`application_run` for more details).
  120. Here is an example for the :zephyr:code-sample:`hello_world` application.
  121. First, run your favorite terminal program to listen for output.
  122. .. code-block:: console
  123. $ minicom -D <tty_device> -b 115200
  124. Replace :code:`<tty_device>` with the port where the nRF9151 DK
  125. can be found. For example, under Linux, :code:`/dev/ttyACM0`.
  126. Then build and flash the application in the usual way.
  127. .. zephyr-app-commands::
  128. :zephyr-app: samples/hello_world
  129. :board: nrf9151dk/nrf9151
  130. :goals: build flash
  131. Debugging
  132. =========
  133. Refer to the :ref:`nordic_segger` page to learn about debugging Nordic boards with a
  134. Segger IC.
  135. Testing the LEDs and buttons in the nRF9151 DK
  136. **********************************************
  137. There are 2 samples that allow you to test that the buttons (switches) and LEDs on
  138. the board are working properly with Zephyr:
  139. * :zephyr:code-sample:`blinky`
  140. * :zephyr:code-sample:`button`
  141. You can build and flash the examples to make sure Zephyr is running correctly on
  142. your board. The button and LED definitions can be found in
  143. :zephyr_file:`boards/nordic/nrf9151dk/nrf9151dk_nrf9151_common.dtsi`.
  144. References
  145. **********
  146. .. target-notes::
  147. .. _IDAU:
  148. https://developer.arm.com/docs/100690/latest/attribution-units-sau-and-idau
  149. .. _nRF9151 website: https://www.nordicsemi.com/Products/nRF9151
  150. .. _Nordic Semiconductor TechDocs: https://docs.nordicsemi.com/
  151. .. _Trusted Firmware M: https://www.trustedfirmware.org/projects/tf-m/