1:name: STM32F746 2:description: This script runs the Zephyr echo_client sample with the Quectel BG96 modem on STM32F7 Discovery. 3 4using sysbus 5$name?="STM32F746" 6mach create $name 7 8machine LoadPlatformDescription @platforms/boards/stm32f7_discovery-bb.repl 9 10machine LoadPlatformDescriptionFromString "bg96: Network.Quectel_BG96 @ usart2" 11# PWRKEY 12machine LoadPlatformDescriptionFromString "gpioPortA: { 6 -> bg96@0 }" 13# RESET 14machine LoadPlatformDescriptionFromString "gpioPortA: { 7 -> bg96@1 }" 15 16emulation CreateEmulatedNetworkService "netEcho" "Antmicro.Renode.Peripherals.Network.EchoService" "192.0.2.1" 4242 "" 17 18# Apply modem/SIM settings 19usart2.bg96 NetworkRegistrationState RegisteredHomeNetwork 20 21showAnalyzer usart1 22 23# The binary used here has part of https://github.com/ycsin/zephyr/commit/34a778eee5b447c03495a268e98b6373e206734d applied 24# to fix data reception in the Zephyr driver for the BG96. 25# For more information, see https://github.com/zephyrproject-rtos/zephyr/issues/38654 26$bin ?= @https://dl.antmicro.com/projects/renode/stm32f746g_disco--zephyr-quectel_bg9x_echo_client.elf-s_3388084-ce2702bb742bd3e5653a60ef2ea564adad9620e6 27 28macro reset 29""" 30 sysbus LoadELF $bin 31""" 32 33runMacro $reset 34