Building Zigbee applications on nrf5340 with nrf-FEM module

Hi,

I am building a zigbee application using a custom board with 5340 and 21540. I have the 21540 chip connected with all gpios and SPI pins to the 5340. It also has both antennas connected.

First I want to validate the configurations.

Do I need to forward all the gpios from the DTS file to the net core including the SPI pins?

How do I enable logging on the network core to validate that the 21540 works?

Should I have the config on the Net core only?

If I am doing the SPI on the APP core, and forwarding the gpio to the net core, how does that look like?


Right now, I have the FEM MPSL config on the NET core, and the DTS of the APP core forwards the including SPI  pins to the Net core, I have the netcore with SPI0 enabled with the same pins from pinctrl, and also the FEM gpio settings with that spi referenced as a sub node. I am getting  ipc endpoint bind timeout on the loggs as an error and my application hangs, and the network core outputs no logs at all.

If you have configurations on how to  do this or a skelaton app with only the configs and directions to build it you can share it and ignore all my questions. Thank you

  • Belalshinnawey said:
    I included all the configurations in google drive file, so the code is more readable.

    Ain't the code that was hard to read, but this DevZone ticket. So I took the liberty to edit your comment and add code boxes.
    Please use Insert->Code next time you post code or logs.

    Belalshinnawey said:
    The board does not have an additional uart pin exposed, and it is in a remote location.

    In that case, it can be hard to debug the remote board.
    For debugging, the first thing that we want to know is, "should this work?". To test this, I suggest that you take your test-board that you have at your location and see if you can reproduce the error on the test-board.It will give us a lot of information to see if this works on the test board or not.

Related