Skip to content

Commit 98d4559

Browse files
feat(rh850): update rh850-u2a16 readme files
Signed-off-by: David Cerdeira <davidmcerdeira@gmail.com>
1 parent 6f33529 commit 98d4559

File tree

3 files changed

+51
-21
lines changed

3 files changed

+51
-21
lines changed

platforms/rh850-u2a16/README.md

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,33 +4,35 @@
44

55
You can download and compile the toolchain from the official GCC repository.
66

7-
A toolchain that has been used and verified is [gcc 10.3.0](https://github.com/dkulacz/gcc-v850-elf-toolchain).
7+
A toolchain that has been used and verified is [gcc 14.2.0](https://github.com/bao-project/gcc-v850-elf-toolchain/releases/download/v14.2.0/gcc-14.2.0-v850-elf.tar.gz).
88

99

10-
## 2) Build bao.bin and baremetal.hex
10+
## 2) Download and install rfp-cli
11+
12+
You can download `rfp-cli` for linux [here](https://www.renesas.com/rfp).
13+
Add it to your PATH.
14+
15+
```
16+
rfp-cli --version
17+
Renesas Flash Programmer CLI V1.11
18+
Module Version: V3.18.00.000
19+
```
20+
21+
## 3) Build a demo
22+
For example to build the baremetal demo:
1123

1224
```sh
13-
# in bao-demos/
25+
export CROSS_COMPILE=v850-elf-
26+
export DEMO=baremetal
27+
export PLATFORM=rh850-u2a16
28+
1429
make
1530
```
1631

1732
The `bao.bin` and `baremetal.hex` is in `wrkdir/imgs/rh850-u2a16/baremetal`
1833

1934

20-
## 3) Flash bao.bin and baremetal.hex to board
21-
22-
You can use a programming tool to program these two files onto the development board.
23-
24-
For example, on macOS, the steps are as follows:
35+
## 4) Flash bao.bin and guests to board
2536

26-
```sh
27-
./rfp-cli -d RH850/U2x -t e2 -if uart \
28-
-auth id FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF \
29-
-auto -osc 20.0 \
30-
-bin 0 bao.bin -p
31-
32-
./rfp-cli -device RH850/U2x -tool e2 -if uart \
33-
-auth id FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF \
34-
-osc 20.0 \
35-
-file baremetal.hex -p
36-
```
37+
You must use the `rfp-cli` tool to program the `bao.bin` and guest images.
38+
Please take a look at the corresponding demo instructions for this platform.

platforms/rh850-u2a16/baremetal.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# RH850-U2A16 berametal DEMO
2+
After building the demo follow these steps.
3+
4+
<!--- instruction#1 -->
5+
## Generate baremetal HEX file
6+
7+
```
8+
${CROSS_COMPILE}objcopy -O ihex ${BAO_DEMOS_WRKDIR_SRC}/baremetal/build/${PLATFORM}/baremetal.elf ${BAO_DEMOS_WRKDIR_IMGS}/baremetal.hex
9+
```
10+
11+
<!--- instruction#2 -->
12+
## Flash the guest and bao binaries
13+
14+
```
15+
rfp-cli -device RH850/U2x -tool e2 \
16+
-osc 40.0 \
17+
-auth id FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF \
18+
-program -file $BAO_DEMOS_WRKDIR_IMGS/baremetal.hex
19+
20+
rfp-cli -device RH850/U2x -tool e2 \
21+
-osc 40.0 \
22+
-auth id FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF \
23+
-program -bin 0x0 $BAO_DEMOS_WRKDIR_IMGS/bao.bin -run
24+
```
25+
<!--- instruction#end -->

platforms/rh850-u2a16/make.mk

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
ARCH:=rh850
22

3-
platform:
4-
$(CROSS_COMPILE)objcopy -I binary -O ihex --change-addresses 0x7F0000 $(wrkdir_demo_imgs)/$(DEMO).bin $(wrkdir_demo_imgs)/$(DEMO).hex
3+
instuctions:=$(bao_demos)/platforms/$(PLATFORM)/$(DEMO).md
4+
5+
platform: $(bao_image)
6+
$(call print-instructions, $(instuctions), 1, false)
7+
$(call print-instructions, $(instuctions), 2, true)

0 commit comments

Comments
 (0)