Hi,
I want to use shared memory between A72 、c66、r5f .
(1) How to change share memory size? Need to 1Gb.
(2) Can you tell me a demof of shared memory ?
(3) Shared memory is cached or not ?
(4) I do a test between A72 and c71:
In c71 sysbios side :
diff --git a/rtos_automotive_06_01_00_05/dji/psdk_rtos_auto_j7_06_01_00_15/vision_apps/apps/basic_demos/app_tirtos/tirtos_linux/c7x_1/main.c b/rtos_automotive_06_01_00_05/dji/psdk_rtos_auto_j7_06_01_00_15/vision_apps/apps/basic_demo
index 594c1c3..edc6690 100755
--- a/rtos_automotive_06_01_00_05/dji/psdk_rtos_auto_j7_06_01_00_15/vision_apps/apps/basic_demos/app_tirtos/tirtos_linux/c7x_1/main.c
+++ b/rtos_automotive_06_01_00_05/dji/psdk_rtos_auto_j7_06_01_00_15/vision_apps/apps/basic_demos/app_tirtos/tirtos_linux/c7x_1/main.c
@@ -73,6 +73,19 @@
#include <app_ipc_rsctable.h>
#include <ti/csl/soc.h>
#include <ti/csl/csl_clec.h>
+#include <ti/sysbios/hal/Cache.h>
+
+static Void shared_memory_test(Void)
+{
+ volatile uint32_t* testPtr = (uint32_t*)0xBC000000;
+ uint32_t counter = 0U;
+ while(1)
+ {
+ *testPtr = counter++;
+ Cache_wb((Ptr)testPtr, (SizeT)4, (Bits16)Cache_Type_ALL, (Bool)TRUE);
+ appLogWaitMsecs(1000u);; // 1sec
+ }
+}
static Void appMain(UArg arg0, UArg arg1)
{
@@ -82,6 +95,7 @@ static Void appMain(UArg arg0, UArg arg1)
while(1)
{
appLogWaitMsecs(100u);
+ shared_memory_test();
}
#else
appDeInit();
In A72 linux side:
root@j7-evm:/opt/vision_apps# devmem2 0xbc000000
/dev/mem opened.
Error at line 90, file devmem2.c (1) [Operation not permitted]
root@j7-evm:/opt/vision_apps# devmem2 0xbc000000
/dev/mem opened.
Error at line 90, file devmem2.c (1) [Operation not permitted]
devmem2 get data failed, why ?
Thanks & Regards,
Lei


