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

nRF5340 Hello World Tutorial

Hi all,

I was going through the nRF Connect SDK tutorial and was trying to get the "Hello World" example running on a nRF5340-PDK (PCA10095, 0.8.0).

Before that I was already able to flash and test the "peripheral_lbs" example successfully. After erasing both chips with

  • nrfjprog --eraseall
  • nrfjprog -f NRF53 --coprocessor CP_NETWORK --eraseall

I followed the steps in the tutorial, created the needed files and started a project with:

  • nrf5340pdk_nrf5340_cpuappns
  • nRF Connect SDK Release V1.4.0
  • Toolchain V1.4.0

My first question is, if it is correct, that I see 3 JLink CDC Uart Ports when I only connect one HW?

When building and running the example from SES V5.10d or when i manually build and flash it with west, I get the same result.

In the one terminal I can see the following that is repeatedly printed:

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
*** Booting Zephyr OS build v2.4.0-ncs1 ***
Flash regions Domain Permissions
00 01 0x00000 0x08000 Secure rwxl
02 63 0x08000 0x100000 Non-Secure rwxl
Non-secure callable region 0 placed in flash region 1 with size 32.
SRAM region Domain Permissions
00 03 0x00000 0x08000 Secure rwxl
04 63 0x08000 0x80000 Non-Secure rwxl
Peripheral Domain Status
00 NRF_P0 Non-Secure OK
01 NRF_CLOCK Non-Secure OK
02 NRF_RTC0 Non-Secure OK
03 NRF_RTC1 Non-Secure OK
04 NRF_NFCT Non-Secure OK
05 NRF_NVMC Non-Secure OK
06 NRF_UARTE1 Non-Secure OK
07 NRF_UARTE2 Secure SKIP
08 NRF_TWIM2 Non-Secure OK
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Comparing it to the expected output below, I can see that my Zephyr OS seems to be a newer version and that "Hello World" isn't printed on my output.

Fullscreen
1
2
*** Booting Zephyr OS build v2.1.99-ncs1 ***
Hello World!
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Do you have an idea what could be going wrong?

Is the PDK too old or am I supposed to see this output on the not assembled USB J3?

Thank you in advance!

Regards,

Pascal