looking for an example for running codes on ddr of 4 harts (bare metal) "mpfs-hal-run-from-ddr-u54-1-u54-2 -u54-3 -u54_4" #256
-
I found a design example called mpfs-hal-run-from-ddr-u54-1-u54-2. Two programs (u54_1.c and u54_2.c) are running on u_54_1 and u54_2 from ddr. It is successful for running on ddr memory after generating payload with yaml configuration file. Thanks for help |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hey @kevinwen2000 You can create four separate payloads as you described and set the MPFS_HAL_FIRST_HART and MPFS_HAL_LAST_HART values to be the same, for example to only run on U54_1: MPFS_HAL_FIRST_HART = 1 to only run on U54_2: MPFS_HAL_FIRST_HART = 2 There are a few yaml examples in the HSS, this one would probably be the most useful |
Beta Was this translation helpful? Give feedback.
-
Hello hughbreslin, It works. I do what you said and 4 harts is running. But I think it is not easy to debug since it is coming from 4 independent projects. I had tried to use single project for running 4 harts but failed. So far, I can run 3 harts with one project from ddr. Thanks |
Beta Was this translation helpful? Give feedback.
Hey @kevinwen2000
You can create four separate payloads as you described and set the MPFS_HAL_FIRST_HART and MPFS_HAL_LAST_HART values to be the same, for example to only run on U54_1:
MPFS_HAL_FIRST_HART = 1
MPFS_HAL_LAST_HART = 1
to only run on U54_2:
MPFS_HAL_FIRST_HART = 2
MPFS_HAL_LAST_HART = 2
There are a few yaml examples in the HSS, this one would probably be the most useful