仿真平台内核初版 -tlib库 包含<sparc arm riscv powerPC>

This commit is contained in:
liuwb
2026-02-07 20:43:43 +08:00
parent de61f9e2b0
commit b3117648be
9748 changed files with 4309137 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
This demo shows integration with an external BLE controller through the HCI UART protocol, for details see `the relevant chapter in the Renode docs <https://renode.readthedocs.io/en/latest/tutorials/ble-hci-integration.html>`_.
There are two pre-built samples available that you can select in the ``.resc`` file (uncomment the proper line or set the ``$bin`` variable before loading the script).
``zephyr-hci-uart-ble-peripheral_hr.elf`` is used in a tutorial presenting integration with Android Emulator.
``zephyr-hci-uart-ble-mesh.elf`` is used in a tutorial presenting BLE Mesh networking.
``$port`` variable must be set before loading ``.resc`` file, which will allow to connect Zephyr BLE host stack running in Renode to BLE controller.
You can use the following command to set it at startup:
```
renode -e "$port=3456; $bin=@/home/user/zephyrproject/zephyr/hci_peripheral_hr/zephyr/zephyr.elf; i @scripts/complex/hci_uart/hci_uart.resc"
```

View File

@@ -0,0 +1,23 @@
:name: hci_uart
:description: This script prepares a machine for integration with an external BLE controller.
using sysbus
mach create
machine LoadPlatformDescription @platforms/boards/nrf52840dk_nrf52840.repl
# mesh sample
$bin?=@https://dl.antmicro.com/projects/renode/nrf52840dk_nrf52840--zephyr-hci-uart-ble-mesh.elf-s_6254428-ea0b067773adeed92a659394967e05e741b76d09
# heart rate peripheral sample
#$bin?=@https://dl.antmicro.com/projects/renode/nrf52840dk_nrf52840--zephyr-hci-uart-ble-peripheral_hr.elf-s_3387816-be92be9edccf6cc83bfadf8b77146041666272b5
emulation CreateServerSocketTerminal $port "hci" false
connector Connect sysbus.uart1 hci
showAnalyzer uart0
macro reset
"""
sysbus LoadELF $bin
"""
runMacro $reset