Raspberry Pi 5

From SEGGER Knowledge Base
Jump to navigation Jump to search

The Raspberry Pi 5 is a BCM2712 evaluation board.

rpi5.jpg

Minimum requirements

J-Link software V8.36 or later

Preparing for J-Link

Configuration File

The ports used for debugging are disabled by default. To enable them, the following line must be added to the config.txt file of the SD Card or eMMC memory that is used as boot device:

 enable_jtag_gpio=1

Wiring

An adapter cable is needed to access the JST SH port J16 (between the HDMI connectors) via jumper wires. Pin 1 (3V3) of the GPIO header J8 is also needed. Connect them to the J-Link as follows:

Raspberry Pin J-Link Pin Signal
J8 Pin 1 (3V3) 1 VTref
J16 Pin 1 9 SWCLK
J16 Pin 2 4 GND
J16 Pin 3 7 SWDIO

Note: For a more reliable, simpler solution, the SEGGER Flying Wire Adapter is recommended.

Summary

  • Connect the J-Link to J16 of the evaluation board, using jumper wires as described above.
  • Power the board via USB (J1)
  • Verify the Connection with J-Link Commander. The output should look as follows:

BCM2712 Connect.png

Example Projects

Hello World

The following example project was created with the SEGGER Embedded Studio project wizard and runs out-of-the-box on the BCM2712 of the Raspberry Pi 5. It outputs "Hello World!" to the Debug Terminal in a loop.

Setup