nrf5340dk and samples

I am looking at the "mesh_shell" example project. I was able to build the sample for nrf5340 dk this way:

- create a new build configuration for "nrf5340dk_nrf5340_cpuapp"

- create a subfolder "child_image" and a "hci_rpmsg.conf" file in it

- copy all the "CONFIG_BT_*" settings from "prj.conf" to "hci_rpmsg.conf"

- build and flash

This very "scientific" procedure seems to work, but:

Are there any guidelines on how to convert samples to support nrf5340 dk? Specifically, which config options need to be moved, what are the pitfalls, ...?

Also, I was not able to build for _ns (TrustZone) this way. Do you have any gudelines for this?

Regards,

Marko

Related