mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 05:32:45 +01:00
boards/firefly: add renode configuration
This commit is contained in:
parent
09defe017f
commit
cfb771dcac
32
boards/firefly/dist/board.resc
vendored
Normal file
32
boards/firefly/dist/board.resc
vendored
Normal file
@ -0,0 +1,32 @@
|
||||
:name: Zolertia Firefly
|
||||
:description: This script runs Zolertia Firefly on RIOT.
|
||||
|
||||
$name?="Zolertia-Firefly"
|
||||
using sysbus
|
||||
mach create $name
|
||||
|
||||
machine LoadPlatformDescription @platforms/boards/zolertia-firefly.repl
|
||||
|
||||
machine PyDevFromFile @scripts/pydev/rolling-bit.py 0x400D2004 0x4 True "sysctrl"
|
||||
|
||||
showAnalyzer uart0
|
||||
|
||||
$id = `next_value 1`
|
||||
|
||||
macro reset
|
||||
"""
|
||||
#set node address. 0x00 0x12 0x4B is TI OUI
|
||||
sysbus WriteDoubleWord 0x00280028 $id
|
||||
sysbus WriteDoubleWord 0x0028002C 0x00
|
||||
sysbus WriteDoubleWord 0x00280030 0xAB
|
||||
sysbus WriteDoubleWord 0x00280034 0x89
|
||||
sysbus WriteDoubleWord 0x00280038 0x00
|
||||
sysbus WriteDoubleWord 0x0028003C 0x4B
|
||||
sysbus WriteDoubleWord 0x00280040 0x12
|
||||
sysbus WriteDoubleWord 0x00280044 0x00
|
||||
|
||||
sysbus LoadELF $image_file
|
||||
"""
|
||||
|
||||
runMacro $reset
|
||||
start
|
@ -107,6 +107,16 @@ On Linux:
|
||||
- Firefly over CP2104: `ttyUSB0`
|
||||
- Firefly over USB driver (in CDC-ACM): `ttyACMn` (n=0, 1, ....)
|
||||
|
||||
Emulator
|
||||
========
|
||||
|
||||
To emulate this board you need an updated version of
|
||||
[renode](https://github.com/renode/renode) installed, at least version 1.9.
|
||||
|
||||
```
|
||||
BOARD=firefly make all emulate
|
||||
```
|
||||
|
||||
More Reading
|
||||
============
|
||||
1. [Zolertia Firefly website][remote-site]
|
||||
|
Loading…
Reference in New Issue
Block a user