How to test 802.15.4 radio with the lowest code size

Hi,

I am trying to create an ad-hoc network with several nrf5340 boards using 802154 radio, e.g. whenever each node transmits, others can receive the transmitted packets. First, I started with an example from your company such as the multiprotocol_rpmsg project to understand how it works. But the code size is very large after compiling without debugging features as follows:

Memory region Used Size Region Size %age Used
FLASH: 243768 B 256 KB 92.99%
SRAM: 64444 B 64 KB 98.33%
SRAM1: 0 GB 64 KB 0.00%
IDT_LIST: 0 GB 2 KB 0.00%

I did not know to continue without a debugging feature. Or I doubt that if we add several code lines, FLASH is overloaded. Would you please suggest which sample I can start with to check 802.15.4 radio for nrf5340 using Visual Studio Code?

I also try to use other examples such as 802154_phy_test, radio_test. But there are various errors when I compile the new created project. I try to search for the reason on the forum but a few mentioned that it is not compatible board for nrf5340. I do not know why it does not work with nrf5340.

I am happy with a simple example without threads first. If it is possible, would you please suggest to me how to check 802.15.4 radio of nrf5340 communicating with other nrf5340 boards using sequential code and ISR first? Which examples for Visual Studio Code I should start?

Thank you very much.

Lan

  • Hi,

    Thank you for your time. This is exactly what I mentioned in the title of this topic. But you can not do anything for us. The reason is very simple as "We don't really have a lot of examples for doing proprietary 802.15.4 based protocols unfortunately, you probably need to start out with the 802154_phy_test sample. "

    So now, I will try to find out a way to fix this by myself.

    BR,

    Lan

  • Hi Lan

    landao said:
    Thank you for your time. This is exactly what I mentioned in the title of this topic.

    My apologies, you mentioned the debugging issue specifically for the hci_rpmsg sample, I didn't realize the build issues for 802154_phy_test was related to the same problem. 

    The network core of the nRF5340 has considerably less memory available than the application core, and these samples are apparently so close to the limit that there is no room for the additional debugging capabilities. 

    It's important to note that you can still debug code without the debug options set, but you won't have access to the same amount of information through the debugger. 

    landao said:
    So now, I will try to find out a way to fix this by myself.

    The best of luck Slight smile

    Best regards
    Torbjørn

Related