Raspberry Pi 5
The Raspberry Pi 5 is a BCM2712 evaluation board.
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:
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
- J-Link software: V8.36
- Embedded Studio: V8.16
- Hardware: Raspberry Pi 5 with BCM2712
- Link: File:BCM2712 HelloWorld.zip
Instructions
- Unzip the project archive linked above
- Copy the contents of the "SD_Card" directory to an empty FAT32 formatted SD Card and put that card into the Raspberry Pi 5.
- Setup JLink as explained above and powerup the board
- Open BCM2712_HelloWorld.emProject in Embedded Studio (File -> Open Solution...)
- Press F5 to start the application. You should see the output "Hello World" in the Debug Terminal followed by the numbers 0 up to 99.