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

Question when starting evaluation nRF5340-PDK

I've been developing using nRF52840 using the nRF5 SDK.   I have also been using FreeRTOS in my projects.

I recently received an nRF5340pdk to evaluate the nRF5340.     I have some questions:

  1. From reading the website, it appears that nRF5 SDK has been replaced by SDK Connect when using the nRF5340.   Is this true?
  2. I see that Zephyr is included in SDK Connect.   Will FreeRTOS be ported to nRF5340?
  3. I downloaded the "Toolchain Manager" and installed (on Windows 10) both nRF Connect SDK v1.4.0 and v1.4.99-dev and tried the sequence under "First steps to build".  Using v1.4.0
    1. I was able to download/compile/run the sample project "Blinky"
    2. I was able to download/compile/run the sample project "Hello World", but when it runs, no output appears in the Debug Terminal.  Is the output going somewhere else, or do I have to enable output to the Debug Terminal?
    3. I was able to download/compile the sample project "peripheral hr", but when I attempt Debug->Go it appears to fail at line 455 of init.c (in z_cstart).
    4. I then tried using the board "nrf5340pdk_nrf5340_cpunet (thinking that perhaps since this demo uses BLE, I needed the "net" version) and it compiled, but won't load (SES says that the CPU is still running).   I tried various things (included power cycling the board), without success.

Can you suggest what I'm doing wrong?

Thanks!

Ed Hepler

Parents
  • Hi Ed,

    What is the HW version on the withe sticker of your PDK? Is it 0.8.0 or 0.9.0?  

    1. nRF5340 is only supported by the nRF Connect SDK.
    2. See the explanation in this post
    3. b. Refer to how-to-use-rtt to add the following to the prj.conf under ncs\zephyr\samples\hello_world as:
       
      CONFIG_SERIAL=y
      CONFIG_USE_SEGGER_RTT=y
      CONFIG_RTT_CONSOLE=y
      CONFIG_UART_CONSOLE=n


      c. Press reset.  and go again. It will stop at main.c line 118 : err = bt_enable(NULL);
      d. The application sample like peripheral hr only can run with nrf5340pdk_nrf5340_cpuapp or  nrf5340pdk_nrf5340_cpuappns. If you want to run the sample with nrf5340pdk_nrf5340_cpunet, please see network-sample
       

    -Amanda H.

  • Hi Amanda,

    One other thing...    I tried the bluetooth/peripheral_hr sample and had the same issue.   So I tried it on the nRF52840-DK board I had and it worked.    So there seems to be an issue running some of these sample programs on the 0.8.0 version of the nRF5340-PDK.

    Since I'm using these as a primer on using the nRF5340 and Zephyr, I notice that Zephyr provides drivers for many peripherals (I2C, SPI, etc.) but these are also provided in the nrfx library from Nordic.    Which set is recommended by Nordic (I assume that nrfx is more complete and will work better!)?

    Thanks!

Reply
  • Hi Amanda,

    One other thing...    I tried the bluetooth/peripheral_hr sample and had the same issue.   So I tried it on the nRF52840-DK board I had and it worked.    So there seems to be an issue running some of these sample programs on the 0.8.0 version of the nRF5340-PDK.

    Since I'm using these as a primer on using the nRF5340 and Zephyr, I notice that Zephyr provides drivers for many peripherals (I2C, SPI, etc.) but these are also provided in the nrfx library from Nordic.    Which set is recommended by Nordic (I assume that nrfx is more complete and will work better!)?

    Thanks!

Children
No Data
Related