1$name?="RT595"
2mach create $name
3machine LoadPlatformDescription @platforms/cpus/imxrt500.repl
4
5$bin?=@https://dl.antmicro.com/projects/renode/mimxrt595_evk--shell_module.elf-s_2471248-db5ac4a6c0ea5bfbfbde39a708b267114f693a63
6
7macro reset
8"""
9    sysbus LoadELF $bin
10    # jump right away from the OTP_FUSE_READ_API function stored in OTP
11    # this address is hardcoded in Zephyr:
12    # https://github.com/zephyrproject-rtos/zephyr/blob/e801f1a9ad6ae0d60362ec0f576ce130659360ee/boards/nxp/mimxrt595_evk/board.c#L21
13    sysbus WriteWord 0x1300805c 0x4770 # "bx lr"
14    cpu0 VectorTableOffset `sysbus GetSymbolAddress "_vector_table"`
15"""
16
17showAnalyzer flexcomm0
18
19runMacro $reset
20