mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 05:12:57 +01:00
board/cc2538dk: Restore renode config
This commit is contained in:
parent
500bb83d16
commit
50874c53fb
30
boards/cc2538dk/dist/board.resc
vendored
Normal file
30
boards/cc2538dk/dist/board.resc
vendored
Normal file
@ -0,0 +1,30 @@
|
||||
mach create
|
||||
using sysbus
|
||||
machine LoadPlatformDescription @platforms/cpus/cc2538.repl
|
||||
|
||||
machine PyDevFromFile @scripts/pydev/rolling-bit.py 0x400D2004 0x4 True "sysctrl"
|
||||
|
||||
# show the UART output
|
||||
showAnalyzer uart0
|
||||
|
||||
# get an id value starting with 1
|
||||
$id = `next_value 1`
|
||||
|
||||
macro reset
|
||||
"""
|
||||
# set node address based on the $id variable. 0x00 0x12 0x4B is TI OUI
|
||||
sysbus WriteByte 0x00280028 $id
|
||||
sysbus WriteByte 0x0028002C 0x00
|
||||
sysbus WriteByte 0x00280030 0xAB
|
||||
sysbus WriteByte 0x00280034 0x89
|
||||
sysbus WriteByte 0x00280038 0x00
|
||||
sysbus WriteByte 0x0028003C 0x4B
|
||||
sysbus WriteByte 0x00280040 0x12
|
||||
sysbus WriteByte 0x00280044 0x00
|
||||
sysbus LoadBinary @http://antmicro.com/projects/renode/cc2538_rom_dump.bin-s_524288-0c196cdc21b5397f82e0ff42b206d1cc4b6d7522 0x0
|
||||
sysbus LoadELF $image_file
|
||||
cpu VectorTableOffset 0x200000
|
||||
"""
|
||||
|
||||
runMacro $reset
|
||||
start
|
Loading…
Reference in New Issue
Block a user