Skip to content

Commit 4aea2a1

Browse files
committed
Update README to add SEGGER_RTT control block
1 parent 8445e66 commit 4aea2a1

1 file changed

Lines changed: 28 additions & 6 deletions

File tree

IDE/Renesas/e2studio/RA6M4/README.md

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -127,15 +127,37 @@ The wolfssl Project Summary is listed below and is relevant for every project.
127127
SEGGER_RTT_Conf.h\
128128
SEGGER_RTT_printf.c
129129

130-
+ To connect RTT block, you can configure RTT viewer configuration based on where RTT block is in map file\
131-
e.g.\
130+
+ To connect RTT block, you can configure RTT viewer configuration based on where RTT block is in a map file.
131+
+ To place RTT block specific area, you can add the following line to `fsp.ld`:
132+
133+
```
134+
.bss :
135+
{
136+
. = ALIGN(4);
137+
__bss_start__ = .;
138+
*(.bss*)
139+
*(COMMON)
140+
KEEP(*(.rtt_block)) /* <-- for SEGGER_RTT control block */
141+
. = ALIGN(4);
142+
__bss_end__ = .;
143+
} > RAM
144+
```
145+
Also, adding the following line to `SEGGER_RTT.c`:
146+
147+
```
148+
SEGGER_RTT_CB _SEGGER_RTT __attribute__((section(".rtt_block")));
149+
```
150+
151+
As the result, you can find the following similar line in the map file.
152+
e.g.
132153
[test_RA6M4.map]
133154
```
134-
COMMON 0x200232a8 0xa8 ./src/SEGGER_RTT/SEGGER_RTT.o\
155+
.rtt_block 0x20023648 0xa8 ./src/SEGGER_RTT/SEGGER_RTT.o
156+
0x20023648 _SEGGER_RTT
135157
````
136-
you can specify "RTT control block" to 0x200232a8 by Address\
137-
OR\
138-
you can specify "RTT control block" to 0x20020000 0x10000 by Search Range
158+
you can specify "RTT control block" to 0x20023648 by Address
159+
OR
160+
you can specify "RTT control block" to 0x20023000 0x1000 by Search Range
139161
140162
## Run Client
141163
1.) Enable TLS_CLIENT definition in wolfssl_demo.h of test_RA6M4 project

0 commit comments

Comments
 (0)