Skip to content

Commit 13d1103

Browse files
Aswathi Rashwin-ti
authored andcommitted
am261x: infra: port examples
- update project_am261x.js to have coremark_benchmark and dhrystone_benchmark - port mathlib_benchmark for am261x - add generated files to commit - update the example documentation for am261x Fixes: MCUSDK-14369 Signed-off-by: Aswathi R <a-r1@ti.com>
1 parent 148b59c commit 13d1103

45 files changed

Lines changed: 2872 additions & 117 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.metadata/.tirex/am261x.content.tirex.json

Lines changed: 194 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,132 @@
11
[
2+
{
3+
"resourceType": "project.ccs",
4+
"resourceClass": [
5+
"example"
6+
],
7+
"resourceSubClass": [
8+
"example.general"
9+
],
10+
"description": "A Coremark Benchmark Example. CPU is R5FSS0-0 running NORTOS.",
11+
"name": "coremark_benchmark",
12+
"location": "../../examples/benchmarks/coremark_benchmark/am261x-som/r5fss0-0_nortos/ti-arm-clang/example.projectspec",
13+
"devtools": [
14+
"AM261-SOM-EVM"
15+
],
16+
"kernel": [
17+
"nortos"
18+
],
19+
"compiler": [
20+
"ticlang"
21+
],
22+
"subCategories": [
23+
"benchmarks",
24+
"coremark_benchmark",
25+
"r5fss0-0_nortos"
26+
],
27+
"mainCategories": [
28+
[
29+
"Examples",
30+
"Development Tools"
31+
]
32+
]
33+
},
34+
{
35+
"resourceType": "project.ccs",
36+
"resourceClass": [
37+
"example"
38+
],
39+
"resourceSubClass": [
40+
"example.general"
41+
],
42+
"description": "A Coremark Benchmark Example. CPU is R5FSS0-0 running NORTOS.",
43+
"name": "coremark_benchmark",
44+
"location": "../../examples/benchmarks/coremark_benchmark/am261x-lp/r5fss0-0_nortos/ti-arm-clang/example.projectspec",
45+
"devtools": [
46+
"LP-AM261"
47+
],
48+
"kernel": [
49+
"nortos"
50+
],
51+
"compiler": [
52+
"ticlang"
53+
],
54+
"subCategories": [
55+
"benchmarks",
56+
"coremark_benchmark",
57+
"r5fss0-0_nortos"
58+
],
59+
"mainCategories": [
60+
[
61+
"Examples",
62+
"Development Tools"
63+
]
64+
]
65+
},
66+
{
67+
"resourceType": "project.ccs",
68+
"resourceClass": [
69+
"example"
70+
],
71+
"resourceSubClass": [
72+
"example.general"
73+
],
74+
"description": "A Dhrystone Benchmark Example. CPU is R5FSS0-0 running NORTOS.",
75+
"name": "dhrystone_benchmark",
76+
"location": "../../examples/benchmarks/dhrystone_benchmark/am261x-som/r5fss0-0_nortos/ti-arm-clang/example.projectspec",
77+
"devtools": [
78+
"AM261-SOM-EVM"
79+
],
80+
"kernel": [
81+
"nortos"
82+
],
83+
"compiler": [
84+
"ticlang"
85+
],
86+
"subCategories": [
87+
"benchmarks",
88+
"dhrystone_benchmark",
89+
"r5fss0-0_nortos"
90+
],
91+
"mainCategories": [
92+
[
93+
"Examples",
94+
"Development Tools"
95+
]
96+
]
97+
},
98+
{
99+
"resourceType": "project.ccs",
100+
"resourceClass": [
101+
"example"
102+
],
103+
"resourceSubClass": [
104+
"example.general"
105+
],
106+
"description": "A Dhrystone Benchmark Example. CPU is R5FSS0-0 running NORTOS.",
107+
"name": "dhrystone_benchmark",
108+
"location": "../../examples/benchmarks/dhrystone_benchmark/am261x-lp/r5fss0-0_nortos/ti-arm-clang/example.projectspec",
109+
"devtools": [
110+
"LP-AM261"
111+
],
112+
"kernel": [
113+
"nortos"
114+
],
115+
"compiler": [
116+
"ticlang"
117+
],
118+
"subCategories": [
119+
"benchmarks",
120+
"dhrystone_benchmark",
121+
"r5fss0-0_nortos"
122+
],
123+
"mainCategories": [
124+
[
125+
"Examples",
126+
"Development Tools"
127+
]
128+
]
129+
},
2130
{
3131
"resourceType": "project.ccs",
4132
"resourceClass": [
@@ -15765,6 +15893,70 @@
1576515893
]
1576615894
]
1576715895
},
15896+
{
15897+
"resourceType": "project.ccs",
15898+
"resourceClass": [
15899+
"example"
15900+
],
15901+
"resourceSubClass": [
15902+
"example.general"
15903+
],
15904+
"description": "A Mathlib Benchmark Example. CPU is R5FSS0-0 running NORTOS.",
15905+
"name": "mathlib_benchmark",
15906+
"location": "../../examples/mathlib/benchmark/am261x-som/r5fss0-0_nortos/ti-arm-clang/example.projectspec",
15907+
"devtools": [
15908+
"AM261-SOM-EVM"
15909+
],
15910+
"kernel": [
15911+
"nortos"
15912+
],
15913+
"compiler": [
15914+
"ticlang"
15915+
],
15916+
"subCategories": [
15917+
"mathlib",
15918+
"benchmark",
15919+
"r5fss0-0_nortos"
15920+
],
15921+
"mainCategories": [
15922+
[
15923+
"Examples",
15924+
"Development Tools"
15925+
]
15926+
]
15927+
},
15928+
{
15929+
"resourceType": "project.ccs",
15930+
"resourceClass": [
15931+
"example"
15932+
],
15933+
"resourceSubClass": [
15934+
"example.general"
15935+
],
15936+
"description": "A Mathlib Benchmark Example. CPU is R5FSS0-0 running NORTOS.",
15937+
"name": "mathlib_benchmark",
15938+
"location": "../../examples/mathlib/benchmark/am261x-lp/r5fss0-0_nortos/ti-arm-clang/example.projectspec",
15939+
"devtools": [
15940+
"LP-AM261"
15941+
],
15942+
"kernel": [
15943+
"nortos"
15944+
],
15945+
"compiler": [
15946+
"ticlang"
15947+
],
15948+
"subCategories": [
15949+
"mathlib",
15950+
"benchmark",
15951+
"r5fss0-0_nortos"
15952+
],
15953+
"mainCategories": [
15954+
[
15955+
"Examples",
15956+
"Development Tools"
15957+
]
15958+
]
15959+
},
1576815960
{
1576915961
"resourceType": "project.ccs",
1577015962
"resourceClass": [
@@ -21071,8 +21263,8 @@
2107121263
"name": "User Guide",
2107221264
"location": "../../docs/api_guide_am261x/index.html",
2107321265
"devtools": [
21074-
"LP-AM261",
21075-
"AM261-SOM-EVM"
21266+
"AM261-SOM-EVM",
21267+
"LP-AM261"
2107621268
],
2107721269
"mainCategories": [
2107821270
[

.project/device/project_am261x.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ const device_defines = {
4848
};
4949

5050
const example_file_list = [
51+
"examples/benchmarks/coremark_benchmark/.project/project.js",
52+
"examples/benchmarks/dhrystone_benchmark/.project/project.js",
5153
"examples/benchmarks/sram_overlay_benchmark/.project/project.js",
5254
"examples/drivers/adc/adc_alternate_dma_trigger/.project/project.js",
5355
"examples/drivers/adc/adc_burst_mode_epwm/.project/project.js",
@@ -260,7 +262,7 @@ const example_file_list = [
260262
"examples/kernel/freertos/task_switch/.project/project.js",
261263
"examples/kernel/nortos/basic_smart_placement/.project/project_nortos.js",
262264
// "examples/kernel/nortos/wfi_standby_demo/.project/project.js",
263-
// "examples/mathlib/benchmark/.project/project.js",
265+
"examples/mathlib/benchmark/.project/project.js",
264266
"source/networking/enet/core/examples/enet_cpsw_est/.project/project.js",
265267
"examples/benchmarks/ocmc_benchmarking/.project/project_freertos_am261x.js",
266268
"examples/real_time_debug/.project/project.js",

docs_src/docs/api_guide/components/tools/ti_uniflash.md

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -131,38 +131,11 @@ After setting up one of the above session launch type, Click the Start button to
131131

132132
3. Flash Address Table:
133133
- The table below shows the flash addresses accepted by the ROM/SBL to load programs onto the target:
134-
\if SOC_AM261X
135-
<table>
136-
<tr>
137-
<th> Board
138-
<th> Program
139-
<th> Start Address
140-
</tr>
141-
<tr>
142-
<td rowspan=2> AM261x-LP
143-
<td> SBL
144-
<td> 0x60000000
145-
</tr>
146-
<tr>
147-
<td> Application
148-
<td> 0x60081000
149-
</tr>
150-
<tr>
151-
<td rowspan=2> AM261x-SOM
152-
<td> SBL
153-
<td> 0x60000000
154-
</tr>
155-
<tr>
156-
<td> Application
157-
<td> 0x60080000
158-
</tr>
159-
</table>
160-
\else
161134
| Program | Start Address |
162135
|-------------|---------------|
163136
| SBL | 0x60000000 |
164137
| Application | 0x60081000 |
165-
\endif
138+
166139
- Edit the application offset field only, if your sbl is configured with custom application offset
167140
4. Initiating Programming:
168141
- After clicking "Load Image," UniFlash starts the programming process, and the console displays a log of each operation. **[SUCCESS] Program Load completed successfully** will get printed in the console, if the program loads into the target successfully.

docs_src/docs/api_guide/examples/benchmarks/coremark_benchmark.md

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Coremark is an industry standard benchmark used for testing processor's core fea
77
Read more about Coremark here: https://www.eembc.org/coremark/
88

99
# Supported Combinations {#EXAMPLES_COREMARK_COMBOS}
10-
\cond SOC_AM243X || SOC_AM263X || SOC_AM263PX
10+
\cond SOC_AM243X || SOC_AM263X || SOC_AM263PX || SOC_AM261X
1111
Parameter | Value
1212
---------------|-----------
1313
CPU + OS | r5fss0-0 nortos
@@ -60,6 +60,13 @@ AM263Px-CC | 3.769163
6060
AM263Px-LP | 3.769089
6161
\endcond
6262

63+
\cond SOC_AM261X
64+
Device | Coremark/MHz
65+
----------------|-----------
66+
AM261x-SOM | 3.664148
67+
AM261x-LP | 4.581006
68+
\endcond
69+
6370
\cond SOC_AM273X
6471
Device | Coremark/MHz
6572
----------------|-----------
@@ -181,6 +188,29 @@ BENCHMARK END
181188
\endcode
182189
\endcond
183190

191+
\cond SOC_AM261X
192+
\code
193+
BENCHMARK START - ARM R5F - COREMARK
194+
2K performance run parameters for coremark.
195+
CoreMark Size : 666
196+
Begin tick : 57
197+
End tick : 8186031
198+
Total ticks : 8185974
199+
Total time (secs): 8.185974
200+
Iterations/Sec : 1832.402595
201+
Iterations : 15000
202+
Memory location : STACK
203+
seedcrc : 0xe9f5
204+
[0]crclist : 0xe714
205+
[0]crcmatrix : 0x1fd7
206+
[0]crcstate : 0x8e3a
207+
[0]crcfinal : 0x65c5
208+
CoreMark 1.0 : 1832.402595
209+
CoreMark/MHz :4.581006 / STACK
210+
BENCHMARK END
211+
\endcode
212+
\endcond
213+
184214
\cond SOC_AM273X
185215
\code
186216
BENCHMARK START - ARM R5F - COREMARK

docs_src/docs/api_guide/examples/benchmarks/dhrystone_benchmark_r5f.md

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Dhrystone is a synthetic benchmark that measures and compares processor performa
77
Read more about Dhrystone benchmark here:
88

99
# Supported Combinations {#EXAMPLES_DHRYSTONE_COMBOS}
10-
\cond SOC_AM243X || SOC_AM263X || SOC_AM263PX
10+
\cond SOC_AM243X || SOC_AM263X || SOC_AM263PX || SOC_AM261X
1111
Parameter | Value
1212
---------------|-----------
1313
CPU + OS | r5fss0-0 nortos
@@ -53,6 +53,13 @@ AM263Px-CC | 1.9610
5353
AM263Px-LP | 1.9610
5454
\endcond
5555

56+
\cond SOC_AM261X
57+
Device | Normalised MIPS/MHz
58+
----------------|-----------
59+
AM261x-SOM | 1.9412
60+
AM261x-LP | 1.9412
61+
\endcond
62+
5663
\cond SOC_AM273X
5764
Device | Normalised MIPS/MHz
5865
----------------|-----------
@@ -156,6 +163,25 @@ BENCHMARK END
156163
\endcode
157164
\endcond
158165

166+
\cond SOC_AM261X
167+
\code
168+
BENCHMARK START - ARM R5F - DHRYSTONE
169+
status 0
170+
171+
Dhrystone Benchmark, Version 2.1 (Language: C)
172+
173+
- BEGIN cycle count: 30
174+
- END Cycle count: 146600012
175+
- USER cycle count: 146599982
176+
- Usertime in sec: 0.293200
177+
- Microseconds for one run through Dhrystone: 0.6
178+
- Dhrystones per Second: 1705320.9
179+
180+
Normalized MIPS/MHz: 1.9412
181+
BENCHMARK END
182+
\endcode
183+
\endcond
184+
159185
\cond SOC_AM273X
160186
\code
161187
BENCHMARK START - ARM R5F - DHRYSTONE

docs_src/docs/api_guide/examples/drivers/sbl_can_uniflash.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,18 @@ In this application, the CAN settings are:
213213
--file=C:/ti/mcu_plus_sdk_am263x_08_05_00_13/examples/drivers/ipc/ipc_rpmsg_echo/am263x-lp/system_freertos_nortos/ipc_rpmsg_echo_system.debug.appimage --operation=flash --flash-offset=0x80000
214214
\endcode
215215
\endif
216+
\if SOC_AM263PX
217+
For AM263Px, Default Flash Offset is at 0x81000.
218+
\code
219+
--file={SDK_PATH}/examples/drivers/ipc/ipc_rpmsg_echo/am263px-lp/system_freertos_nortos/ipc_rpmsg_echo_system.debug.appimage --operation=flash --flash-offset=0x81000
220+
\endcode
221+
\endif
222+
\if SOC_AM261X
223+
For AM261x, Default Flash Offset is at 0x81000.
224+
\code
225+
--file={SDK_PATH}/examples/drivers/ipc/ipc_rpmsg_echo/am261x-lp/system_freertos_nortos/ipc_rpmsg_echo_system.debug.appimage --operation=flash --flash-offset=0x81000
226+
\endcode
227+
\endif
216228
\if SOC_AM273X
217229
For AM273x, Default Flash Offset is at 0xA0000.
218230
\code

0 commit comments

Comments
 (0)