Using the NRF52840 Zephyr applications with Renode

Hi, I am currently evaluating the NRF52840 for our applications which will be deployed in underground mines across South Africa.

I see that Nordic has a good relationship with Zephyr and Renode as shown in the post below:

     https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/developing-and-testing-ble-products-on-nrf52840-in-renode-and-zephyr 

My goal at this stage is to evaluate the Openthread protocol with the NRF52840 however when I compile the Zephyr Echo_Server/Client with the openthread overlay or the ieee802.15.4 overlay, I notice that no packets are being sent to the NRF52840 radio as shown by Wireshark on Renode.

If you have any insights as to why this is, or any suggestions on configuring the Zephyr application (Echo_Server/Client) to work on Renode (with 802.15.4 / Openthread), please advise me.

I tested the Zephyr application on 2 physical nrf52840dk devices and that was successful, i.e. Two-way communication was established using openthread or regular 802.15.4.

I need to test on Renode as this will enable me to test a large number of devices which will be required for our application.

My Zephyr Echo_Server prj.conf is as follows:

# Generic networking options
CONFIG_NETWORKING=y
CONFIG_NET_UDP=y
CONFIG_NET_TCP=n
CONFIG_NET_IPV6=y
CONFIG_NET_IPV4=n
CONFIG_NET_CONFIG_NEED_IPV4=n
CONFIG_NET_CONFIG_NEED_IPV6=y
CONFIG_NET_SOCKETS=y
CONFIG_NET_SOCKETS_POSIX_NAMES=y
CONFIG_POSIX_MAX_FDS=6
CONFIG_NET_CONNECTION_MANAGER=y
CONFIG_NET_CONNECTION_MANAGER_LOG_LEVEL_INF=y

# Kernel options
CONFIG_MAIN_STACK_SIZE=12288
CONFIG_ENTROPY_GENERATOR=y
CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_INIT_STACKS=y

# Logging
CONFIG_NET_LOG=y
CONFIG_LOG=y
CONFIG_NET_STATISTICS=y
CONFIG_PRINTK=y
CONFIG_NET_MGMT_EVENT_LOG_LEVEL_DBG=y
CONFIG_NET_CONNECTION_MANAGER_LOG_LEVEL_DBG=y
# Network buffers
CONFIG_NET_PKT_RX_COUNT=16
CONFIG_NET_PKT_TX_COUNT=16
CONFIG_NET_BUF_RX_COUNT=64
CONFIG_NET_BUF_TX_COUNT=64
CONFIG_NET_CONTEXT_NET_PKT_POOL=y

# IP address options
CONFIG_NET_IF_UNICAST_IPV6_ADDR_COUNT=6
CONFIG_NET_IF_MCAST_IPV6_ADDR_COUNT=4
CONFIG_NET_MAX_CONTEXTS=10

# Network shell
CONFIG_NET_SHELL=y
CONFIG_SHELL=y

# Network application options and configuration
CONFIG_NET_CONFIG_SETTINGS=y

CONFIG_NET_CONFIG_MY_IPV6_ADDR="fdde:ad00:beef::2"
CONFIG_NET_CONFIG_PEER_IPV6_ADDR="fdde:ad00:beef::1"


# Number of socket descriptors might need adjusting
# if there are more than 1 handlers defined.
CONFIG_POSIX_MAX_FDS=10

# How many client can connect to echo-server simultaneously
CONFIG_NET_SAMPLE_NUM_HANDLERS=2


CONFIG_FLASH=n
CONFIG_OPENTHREAD_SETTINGS_RAM=y
#~ CONFIG_OPENTHREAD_FULL_LOGS=y
CONFIG_NEWLIB_LIBC=y
CONFIG_NET_IPV6_NBR_CACHE=n
CONFIG_NET_IPV6_MLD=n
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096
# Enable OpenThread shell
CONFIG_SHELL=y
CONFIG_OPENTHREAD_SHELL=y
CONFIG_SHELL_STACK_SIZE=4096
CONFIG_NET_L2_OPENTHREAD=y
CONFIG_OPENTHREAD_DEBUG=y
CONFIG_OPENTHREAD_L2_DEBUG=y
CONFIG_OPENTHREAD_L2_LOG_LEVEL_INF=y
CONFIG_OPENTHREAD_CHANNEL=26
CONFIG_OPENTHREAD_NETWORKKEY="00:11:22:33:44:55:66:77:88:99:aa:bb:cc:dd:ee:ff"



Regards

Brenton

  • Hi Brenton

    Have you confirmed whether it is the nRF52840 not transmitting at all or if it's the Wireshark sniffer that's not picking up the data correctly? So the application is working as intended on DKs, but not on custom boards, is that correct?

    Also, I'm not too familiar with the Renode, but in the blog post you linked to the Wireshark application is only mentioning analyzing Bluetooth LE traffic, so the first thing I would make sure is that you actually log the 802.15.4 traffic and not just BLE traffic. I guess this guide should tell you how to use either: https://renode.readthedocs.io/en/latest/networking/wireshark.html 

    Best regards,

    Simon

  • Hi Simon

    Thank you for your response.

    On Renode's emulator, the nRF52840 (emulated node) is not transmitting any packets. I am sure I set up Wireshark correctly on Renode. My renode .resc file is shown below

    :name: test_nrf52840
    
    emulation CreateIEEE802_15_4Medium "wireless"
    
    ######################### UDP SERVER - begin #########################
     $bin=@/home/brenton/zephyrproject/renode_examples/renode_server/build/zephyr/zephyr.elf
    
    $name="server"
    i @scripts/single-node/nrf52840.resc
    connector Connect radio wireless
    wireless SetPosition radio 0 0 0
    mach clear
    ########################## UDP SERVER - end ##########################
    
    ######################### UDP CLIENT - begin #########################
     $bin=@/home/brenton/zephyrproject/renode_examples/renode_client/build/zephyr/zephyr.elf
     $name="client"
     i @scripts/single-node/nrf52840.resc
     connector Connect radio wireless
     wireless SetPosition radio 0 10 0
     mach clear
    ########################## UDP CLIENT - end ##########################
    
    emulation LogIEEE802_15_4Traffic

    When running the built in sample scripts in Renode (quark-c1000-zephyr), I can view 6LowPan packets off wireshark. I did configure Renode to sniff 802.15.4 and not BLE (emulation LogIEEE802_15_4Traffic - Renode)

    The application works (Zephyr Echo_Server/Client with 802.15.4 or openthread overlay) on actual dev kits, but it does not work on the Renode Emulator.

    The issue seems to be either a compatibility issue or configuration issue between Zephyr and Renode. I assume I am missing some simple config but I tried to get in touch with the renode dev team but they didn't respond and I couldn't find solutions on the internet, so that's why I am posting here.

    If you have any suggestions on how I should proceed, it will be truly appreciated.

    Regards

    Brenton

  • Hi again

    What we have is rather limited I'm afraid, but did you check out the webinar we have on our Youtube channel that explains how to use Renode with the nRF52840? I will also ask our test developers internally if they have any information on what could be causing this. Please upload any logging information from the emulated node that you think might be useful.

    Best regards,

    Simon

  • Hi Simon

    Thank you for responding again. The webinar was very interesting but sadly it did not help me to resolve my issue.

    A detailed summary of the issue was posted on the Renode github webpage:

    https://github.com/renode/renode/issues/373

    As for logging errors on the emulated node, there are 2 issues which I believe may be of concern:

    1. Unhandled write to NVIC

    2. Failed to register and unregister PPI (This seems to be a common error which normally doesn't affect the application).

    11:31:30.2243 [WARNING] sysbus: [cpu: 0x33DB0] (tag: 'FICR') ReadDoubleWord from non existing peripheral at 0x10000130, returning 0x0. (2)
    11:31:30.2246 [WARNING] sysbus: [cpu: 0x13BC8] (tag: 'FICR') ReadDoubleWord from non existing peripheral at 0x10000130, returning 0x0. (4)
    11:31:30.2246 [WARNING] sysbus: [cpu: 0x33DB0] (tag: 'FICR') ReadDoubleWord from non existing peripheral at 0x10000130, returning 0x0.
    11:31:30.2247 [WARNING] sysbus: [cpu: 0x13D16] (tag: 'FICR') ReadDoubleWord from non existing peripheral at 0x10000130, returning 0x0.
    11:31:30.2247 [WARNING] sysbus: [cpu: 0x13D40] (tag: 'PSELRESET') ReadDoubleWord from non existing peripheral at 0x10001200, returning 0x0.
    11:31:30.2250 [WARNING] sysbus: [cpu: 0x13D4C] ReadDoubleWord from non existing peripheral at 0x10001204.
    11:31:30.2309 [WARNING] nvic: Unhandled write to offset 0xD28, value 0xFFFFFFFF.
    11:31:30.2309 [WARNING] nvic: Unhandled write to offset 0xD2C, value 0xFFFFFFFF.
    11:31:30.2309 [WARNING] nvic: Unhandled write to offset 0xD94, value 0x0.
    11:31:30.2310 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x0.
    11:31:30.2310 [WARNING] nvic: Unhandled write to offset 0xD9C, value 0x10.
    11:31:30.2310 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x2020027.
    11:31:30.2310 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x1.
    11:31:30.2310 [WARNING] nvic: Unhandled write to offset 0xD9C, value 0x20000011.
    11:31:30.2311 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x110B0023.
    11:31:30.2311 [WARNING] nvic: Unhandled write to offset 0xD94, value 0x5.
    11:31:30.2317 [WARNING] sysbus: Write of value 0x1 to an unimplemented register NVMC:ICACHECNF (0x4001E540) generated from SVD.
    11:31:30.2321 [WARNING] clock: Unhandled write to offset 0x578, value 0x1.
    11:31:30.2322 [WARNING] sysbus: [cpu: 0x81CE] (tag: 'FICR') ReadDoubleWord from non existing peripheral at 0x10000130, returning 0x0.
    11:31:30.2322 [WARNING] clock: Unhandled write to offset 0x580, value 0x1.
    11:31:30.2399 [WARNING] uart1: Unhandled write to offset 0x514. Unhandled bits: [1-4, 6-31] when writing value 0x21. Tags: PIN (0x1E), RESERVED (0x1FFFFFF), CONNECT (0x1).
    11:31:30.2425 [WARNING] uart1: Unhandled write to offset 0x50C. Unhandled bits: [0, 2-4, 6-31] when writing value 0x22. Tags: PIN (0x1D), RESERVED (0x1FFFFFF), CONNECT (0x1).
    11:31:30.2428 [WARNING] gpio1: Trying to write pin #2 that is not configured as output
    11:31:30.2458 [ERROR] ppi: Failed to register PPI from 0x40028120 for channel 19
    11:31:30.2471 [WARNING] uart0: Unhandled write to offset 0x50C. Unhandled bits: [0, 3-31] when writing value 0x6. Tags: PIN (0x19), PORT (0x1), RESERVED (0x1FFFFFF), CONNECT (0x1).
    11:31:30.2471 [WARNING] gpio0: Trying to write pin #6 that is not configured as output
    11:31:30.2472 [WARNING] uart0: Unhandled write to offset 0x508. Unhandled bits: [1, 3-31] when writing value 0x5. Tags: PIN (0x1A), PORT (0x1), RESERVED (0x1FFFFFF), CONNECT (0x1).
    11:31:30.2472 [WARNING] gpio0: Trying to write pin #5 that is not configured as output
    11:31:30.2473 [WARNING] uart0: Unhandled write to offset 0x514. Unhandled bits: [0-2, 4-31] when writing value 0x8. Tags: PIN (0x17), PORT (0x1), RESERVED (0x1FFFFFF), CONNECT (0x1).
    11:31:30.2473 [WARNING] uart0: Unhandled write to offset 0x510. Unhandled bits: [3-31] when writing value 0x7. Tags: PIN (0x18), PORT (0x1), RESERVED (0x1FFFFFF), CONNECT (0x1).
    11:31:30.2473 [ERROR] ppi: Failed to register PPI from 0x40002120 for channel 18
    11:31:30.2478 [WARNING] rtc1: Unhandled write to offset 0x304. Unhandled bits: [19] when writing value 0x80000.
    11:31:30.2479 [WARNING] rtc1: Unhandled write to offset 0x304. Unhandled bits: [1] when writing value 0x2. Tags: OVRFLW (0x1).
    11:31:30.2506 [WARNING] clock: Unhandled read from offset 0x414.
    11:31:30.2528 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x2.
    11:31:30.2529 [WARNING] nvic: Unhandled write to offset 0xD9C, value 0x200119D2.
    11:31:30.2529 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x150B000B.
    11:31:30.2530 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x3.
    11:31:30.2530 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2531 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x4.
    11:31:30.2531 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2531 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x5.
    11:31:30.2532 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2532 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x6.
    11:31:30.2532 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2532 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x7.
    11:31:30.2533 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2556 [INFO] Pseudorandom Number Generator was created with seed: 2057607675
    11:31:30.2613 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x2.
    11:31:30.2614 [WARNING] nvic: Unhandled write to offset 0xD9C, value 0x200153D2.
    11:31:30.2614 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x150B000B.
    11:31:30.2614 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x3.
    11:31:30.2614 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2615 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x4.
    11:31:30.2615 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2615 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x5.
    11:31:30.2615 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2615 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x6.
    11:31:30.2616 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2616 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x7.
    11:31:30.2616 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2616 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x2.
    11:31:30.2617 [WARNING] nvic: Unhandled write to offset 0xD9C, value 0x200119D2.
    11:31:30.2617 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x150B000B.
    11:31:30.2617 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x3.
    11:31:30.2617 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2617 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x4.
    11:31:30.2618 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2618 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x5.
    11:31:30.2618 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2618 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x6.
    11:31:30.2618 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2619 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x7.
    11:31:30.2619 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2624 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x2.
    11:31:30.2624 [WARNING] nvic: Unhandled write to offset 0xD9C, value 0x20002A12.
    11:31:30.2624 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x150B000B.
    11:31:30.2625 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x3.
    11:31:30.2625 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2625 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x4.
    11:31:30.2625 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2626 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x5.
    11:31:30.2626 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2626 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x6.
    11:31:30.2627 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2627 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x7.
    11:31:30.2627 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2627 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x2.
    11:31:30.2628 [WARNING] nvic: Unhandled write to offset 0xD9C, value 0x200119D2.
    11:31:30.2628 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x150B000B.
    11:31:30.2628 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x3.
    11:31:30.2628 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2628 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x4.
    11:31:30.2629 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2629 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x5.
    11:31:30.2629 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2629 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x6.
    11:31:30.2629 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2630 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x7.
    11:31:30.2630 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2630 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x2.
    11:31:30.2631 [WARNING] nvic: Unhandled write to offset 0xD9C, value 0x20010BD2.
    11:31:30.2631 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x150B000B.
    11:31:30.2631 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x3.
    11:31:30.2631 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2631 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x4.
    11:31:30.2632 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2632 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x5.
    11:31:30.2632 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2632 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x6.
    11:31:30.2633 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2633 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x7.
    11:31:30.2633 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2634 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x2.
    11:31:30.2634 [WARNING] nvic: Unhandled write to offset 0xD9C, value 0x200119D2.
    11:31:30.2634 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x150B000B.
    11:31:30.2634 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x3.
    11:31:30.2635 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2635 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x4.
    11:31:30.2635 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2636 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x5.
    11:31:30.2636 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2636 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x6.
    11:31:30.2636 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2636 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x7.
    11:31:30.2637 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2637 [WARNING] sysbus: [cpu: 0x332AA] (tag: 'FICR') ReadDoubleWord from non existing peripheral at 0x10000060, returning 0x0.
    11:31:30.2637 [WARNING] sysbus: [cpu: 0x332AA] (tag: 'FICR') ReadDoubleWord from non existing peripheral at 0x10000064, returning 0x0.
    11:31:30.2641 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x2.
    11:31:30.2642 [WARNING] nvic: Unhandled write to offset 0xD9C, value 0x20011792.
    11:31:30.2642 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x150B000B.
    11:31:30.2642 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x3.
    11:31:30.2642 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2642 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x4.
    11:31:30.2643 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2643 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x5.
    11:31:30.2643 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2643 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x6.
    11:31:30.2643 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2644 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x7.
    11:31:30.2644 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2644 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x2.
    11:31:30.2644 [WARNING] nvic: Unhandled write to offset 0xD9C, value 0x200119D2.
    11:31:30.2645 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x150B000B.
    11:31:30.2645 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x3.
    11:31:30.2645 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2645 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x4.
    11:31:30.2645 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2646 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x5.
    11:31:30.2646 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2646 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x6.
    11:31:30.2646 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2646 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x7.
    11:31:30.2647 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2865 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x2.
    11:31:30.2866 [WARNING] nvic: Unhandled write to offset 0xD9C, value 0x2000FF92.
    11:31:30.2866 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x150B000B.
    11:31:30.2866 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x3.
    11:31:30.2866 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2867 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x4.
    11:31:30.2867 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2867 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x5.
    11:31:30.2867 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2868 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x6.
    11:31:30.2868 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2868 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x7.
    11:31:30.2868 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2868 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x2.
    11:31:30.2869 [WARNING] nvic: Unhandled write to offset 0xD9C, value 0x200119D2.
    11:31:30.2869 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x150B000B.
    11:31:30.2869 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x3.
    11:31:30.2869 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2869 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x4.
    11:31:30.2870 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2870 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x5.
    11:31:30.2870 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2870 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x6.
    11:31:30.2870 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2871 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x7.
    11:31:30.2871 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2871 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x2.
    11:31:30.2871 [WARNING] nvic: Unhandled write to offset 0xD9C, value 0x2000FF92.
    11:31:30.2871 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x150B000B.
    11:31:30.2872 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x3.
    11:31:30.2872 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2872 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x4.
    11:31:30.2872 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2873 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x5.
    11:31:30.2873 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2873 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x6.
    11:31:30.2873 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2873 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x7.
    11:31:30.2874 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2874 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x2.
    11:31:30.2874 [WARNING] nvic: Unhandled write to offset 0xD9C, value 0x200119D2.
    11:31:30.2874 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x150B000B.
    11:31:30.2874 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x3.
    11:31:30.2875 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2875 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x4.
    11:31:30.2875 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2875 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x5.
    11:31:30.2875 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2876 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x6.
    11:31:30.2876 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2876 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x7.
    11:31:30.2876 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2882 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x2.
    11:31:30.2883 [WARNING] nvic: Unhandled write to offset 0xD9C, value 0x20010F12.
    11:31:30.2883 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x150B000B.
    11:31:30.2883 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x3.
    11:31:30.2883 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2883 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x4.
    11:31:30.2884 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2884 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x5.
    11:31:30.2884 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2884 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x6.
    11:31:30.2885 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2885 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x7.
    11:31:30.2885 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2885 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x2.
    11:31:30.2885 [WARNING] nvic: Unhandled write to offset 0xD9C, value 0x200119D2.
    11:31:30.2886 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x150B000B.
    11:31:30.2886 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x3.
    11:31:30.2886 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2886 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x4.
    11:31:30.2886 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2887 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x5.
    11:31:30.2887 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2887 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x6.
    11:31:30.2887 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2888 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x7.
    11:31:30.2888 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2896 [WARNING] timer0: Unhandled write to offset 0x10, value 0x1.
    11:31:30.2898 [WARNING] timer0: Unhandled read from offset 0x508.
    11:31:30.2899 [WARNING] timer0: Unhandled write to offset 0x508, value 0x3.
    11:31:30.2903 [WARNING] radio: Unhandled write to offset 0x514. Unhandled bits: [25] when writing value 0x6000008. Tags: PLEN (0x2).
    11:31:30.2903 [WARNING] radio: Unhandled write to offset 0x650. Unhandled bits: [0, 9] when writing value 0x1. Tags: RU (0x1), DTX (0x2).
    11:31:30.2906 [WARNING] radio: Unhandled write to offset 0x66C. Unhandled bits: [8, 10-11, 13, 24-26] when writing value 0x22D2D00. Tags: CCAEDTHRES (0x2D), CCACORRCNT (0x7).
    11:31:30.2908 [WARNING] timer0: Unhandled write to offset 0x10, value 0x1.
    11:31:30.2909 [WARNING] radio: Unhandled write to offset 0x134, value 0x0.
    11:31:30.2909 [WARNING] radio: Unhandled read from offset 0x134.
    11:31:30.2914 [WARNING] radio: Unhandled write to offset 0x168, value 0x0.
    11:31:30.2914 [WARNING] radio: Unhandled read from offset 0x168.
    11:31:30.2917 [WARNING] sysbus: [cpu: 0x11BC4] WriteDoubleWord to non existing peripheral at 0x4001710C, value 0x0.
    11:31:30.2917 [WARNING] sysbus: [cpu: 0x11BC4] ReadDoubleWord from non existing peripheral at 0x4001710C.
    11:31:30.2917 [WARNING] sysbus: Write of value 0x8 to an unimplemented register EGU3:INTENSET (0x40017304) generated from SVD.
    11:31:30.2923 [WARNING] timer0: Unhandled read from offset 0x200.
    11:31:30.2923 [WARNING] timer0: Unhandled write to offset 0x200, value 0x100.
    11:31:30.2923 [WARNING] sysbus: [cpu: 0x12780] WriteDoubleWord to non existing peripheral at 0x4001713C, value 0x0.
    11:31:30.2923 [WARNING] sysbus: [cpu: 0x12780] ReadDoubleWord from non existing peripheral at 0x4001713C.
    11:31:30.2924 [ERROR] ppi: Failed to register PPI from 0x4001713C for channel 7
    11:31:30.2925 [ERROR] ppi: Failed to register PPI from 0x4001713C for channel 8
    11:31:30.2935 [WARNING] sysbus: [cpu: 0x12852] ReadDoubleWord from non existing peripheral at 0x4001713C.
    11:31:30.2942 [WARNING] timer0: Unhandled write to offset 0x10, value 0x1.
    11:31:30.2943 [WARNING] radio: Unhandled write to offset 0x134, value 0x0.
    11:31:30.2943 [WARNING] radio: Unhandled read from offset 0x134.
    11:31:30.2943 [WARNING] radio: Unhandled write to offset 0x168, value 0x0.
    11:31:30.2943 [WARNING] radio: Unhandled read from offset 0x168.
    11:31:30.2944 [WARNING] sysbus: [cpu: 0x11BC4] WriteDoubleWord to non existing peripheral at 0x4001710C, value 0x0.
    11:31:30.2944 [WARNING] sysbus: [cpu: 0x11BC4] ReadDoubleWord from non existing peripheral at 0x4001710C.
    11:31:30.2944 [WARNING] sysbus: Write of value 0x8 to an unimplemented register EGU3:INTENSET (0x40017304) generated from SVD.
    11:31:30.2944 [WARNING] timer0: Unhandled read from offset 0x200.
    11:31:30.2945 [WARNING] timer0: Unhandled write to offset 0x200, value 0x100.
    11:31:30.2945 [WARNING] sysbus: [cpu: 0x12780] WriteDoubleWord to non existing peripheral at 0x4001713C, value 0x0.
    11:31:30.2945 [WARNING] sysbus: [cpu: 0x12780] ReadDoubleWord from non existing peripheral at 0x4001713C.
    11:31:30.2945 [WARNING] sysbus: [cpu: 0x12852] ReadDoubleWord from non existing peripheral at 0x4001713C.
    11:31:30.2946 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x2.
    11:31:30.2946 [WARNING] nvic: Unhandled write to offset 0xD9C, value 0x2000FF92.
    11:31:30.2947 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x150B000B.
    11:31:30.2947 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x3.
    11:31:30.2947 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2947 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x4.
    11:31:30.2948 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2948 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x5.
    11:31:30.2948 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2949 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x6.
    11:31:30.2949 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2949 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x7.
    11:31:30.2949 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2950 [WARNING] sysbus: WriteDoubleWord to non existing peripheral at 0x4001703C, value 0x1. (2)
    11:31:30.2950 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x2.
    11:31:30.2950 [WARNING] nvic: Unhandled write to offset 0xD9C, value 0x200119D2.
    11:31:30.2951 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x150B000B.
    11:31:30.2951 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x3.
    11:31:30.2951 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2952 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x4.
    11:31:30.2952 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2952 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x5.
    11:31:30.2952 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2953 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x6.
    11:31:30.2953 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2953 [WARNING] nvic: Unhandled write to offset 0xD98, value 0x7.
    11:31:30.2953 [WARNING] nvic: Unhandled write to offset 0xDA0, value 0x0.
    11:31:30.2958 [ERROR] ppi: Failed to unregister PPI from 0x4001713C for channel 7
    11:31:30.2964 [ERROR] ppi: Failed to unregister PPI from 0x4001713C for channel 8
    11:31:30.2965 [WARNING] timer0: Unhandled read from offset 0x200.
    11:31:30.2966 [WARNING] timer0: Unhandled write to offset 0x200, value 0x0.
    11:31:30.2966 [WARNING] sysbus: Write of value 0x8 to an unimplemented register EGU3:INTENCLR (0x40017308) generated from SVD.
    11:31:30.2967 [WARNING] timer0: Unhandled write to offset 0x10, value 0x1. (2)
    11:31:30.2968 [WARNING] radio: Unhandled write to offset 0x134, value 0x0.
    11:31:30.2968 [WARNING] radio: Unhandled read from offset 0x134.
    11:31:30.2968 [WARNING] radio: Unhandled write to offset 0x168, value 0x0.
    11:31:30.2969 [WARNING] radio: Unhandled read from offset 0x168.
    11:31:30.2969 [WARNING] sysbus: [cpu: 0x11BC4] WriteDoubleWord to non existing peripheral at 0x4001710C, value 0x0.
    11:31:30.2969 [WARNING] sysbus: [cpu: 0x11BC4] ReadDoubleWord from non existing peripheral at 0x4001710C.
    11:31:30.2969 [WARNING] sysbus: Write of value 0x8 to an unimplemented register EGU3:INTENSET (0x40017304) generated from SVD.
    11:31:30.2970 [WARNING] timer0: Unhandled read from offset 0x200.
    11:31:30.2970 [WARNING] timer0: Unhandled write to offset 0x200, value 0x100.
    11:31:30.2970 [WARNING] sysbus: [cpu: 0x12780] WriteDoubleWord to non existing peripheral at 0x4001713C, value 0x0.
    11:31:30.2970 [WARNING] sysbus: [cpu: 0x12780] ReadDoubleWord from non existing peripheral at 0x4001713C.
    11:31:30.2970 [ERROR] ppi: Failed to register PPI from 0x4001713C for channel 7
    11:31:30.2971 [ERROR] ppi: Failed to register PPI from 0x4001713C for channel 8
    11:31:30.2971 [WARNING] sysbus: [cpu: 0x12852] ReadDoubleWord from non existing peripheral at 0x4001713C.
    11:31:30.2975 [WARNING] sysbus: WriteDoubleWord to non existing peripheral at 0x4001703C, value 0x1.
    

    Regards

    Brenton

  • Hi there,


    I am having similar requirements and troubles while trying to set up a reusable CI development container based on snippets from nrf-docker, zephyr-docker and renode-docker.

    What I could figure out so far:
    Building the BLE heartrate sample
    * (z) produces printk-uart output in renode with setup west init --mr "v3.1.0"
    * (n) but does not when having setup west init -m github.com/.../sdk-nrf --mr "v2.1.0" (or v2.0.2)

    Furthermore, simply building the hello_world sample produces printk output with both setups (z) and (n). But as soon as you set prj.conf -> CONFIG_BT=y then the simulated image build with (n) has no more output.

    When comparing the build outputs we get
    * (z) Zephyr version: 3.1.0-rc1 (/zephyrdev/zephyr) and
    * (n) Zephyr version: v3.1.99-ncs1 (/zephyrdev/zephyr) respectively

    So I am assuming that there might be some nRF-specific customization to the Zephyr source code which creates BLE-incompatibilities in renode.

    I'll keep you posted if I can figure out some more.

    Cheers,

    Chris

Related